Problem with HtmlContent

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
5/4/2008 2:43:14 PM
Gravatar
Total Posts 10
Tiago Jesus

Problem with HtmlContent

My configuration: Win server 2003(in a hosting), last mojoportal update, mysql 5

Hi guys,

I will be very happy if you guys could help me with this problem.

Every time I edit some HtmlContent I get 1 error as follow, buy I dont find the reference for 'C:\WINDOWS\TEMP' in the project. Could be some configuration?

OBS: Sorry,my english  is not so good yet.

 

--------------------------------------------------------------------------

We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

--------------------------------------------------------------------------

And the log error is :

--------------------------------------------------------------------------

2008-05-04 16:36:17,082 [8596] ERROR mojoPortal.Web.mojoBasePage [(null)] - 201.55.122.220-pt-BR - /HtmlEdit.aspx?mid=2&pageid=2
System.UnauthorizedAccessException: Access to the path 'C:\WINDOWS\TEMP' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
at System.IO.Directory.GetFileSystemEntries(String path, String searchPattern, SearchOption searchOption)
at System.IO.Directory.GetFileSystemEntries(String path)
at Lucene.Net.Store.FSDirectory.Create()
at Lucene.Net.Store.FSDirectory.Init(FileInfo path, Boolean create)
at Lucene.Net.Store.FSDirectory.GetDirectory(FileInfo file, Boolean create)
at Lucene.Net.Index.IndexWriter..ctor(String path, Analyzer a, Boolean create)
at mojoPortal.Business.WebHelpers.IndexHelper.RebuildIndex(IndexItem indexItem, String indexPath)
at mojoPortal.Business.WebHelpers.IndexHelper.RebuildIndex(IndexItem indexItem)
at mojoPortal.Business.WebHelpers.HtmlContentIndexBuilderProvider.IndexItem(HtmlContent content)
at mojoPortal.Business.WebHelpers.HtmlContentIndexBuilderProvider.ContentChangedHandler(Object sender, ContentChangedEventArgs e)
at mojoPortal.Business.HtmlContent.OnContentChanged(ContentChangedEventArgs e)
at mojoPortal.Business.HtmlContent.Update()
at mojoPortal.Business.HtmlContent.Save()
at mojoPortal.Web.ContentUI.EditHtml.btnUpdate_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2008-05-04 16:36:17,113 [8596] ERROR mojoPortal.Web.Global [(null)] - 201.55.122.220-pt-BR - /HtmlEdit.aspx?mid=2&pageid=2
System.UnauthorizedAccessException: Access to the path 'C:\WINDOWS\TEMP' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
at System.IO.Directory.GetFileSystemEntries(String path, String searchPattern, SearchOption searchOption)
at System.IO.Directory.GetFileSystemEntries(String path)
at Lucene.Net.Store.FSDirectory.Create()
at Lucene.Net.Store.FSDirectory.Init(FileInfo path, Boolean create)
at Lucene.Net.Store.FSDirectory.GetDirectory(FileInfo file, Boolean create)
at Lucene.Net.Index.IndexWriter..ctor(String path, Analyzer a, Boolean create)
at mojoPortal.Business.WebHelpers.IndexHelper.RebuildIndex(IndexItem indexItem, String indexPath)
at mojoPortal.Business.WebHelpers.IndexHelper.RebuildIndex(IndexItem indexItem)
at mojoPortal.Business.WebHelpers.HtmlContentIndexBuilderProvider.IndexItem(HtmlContent content)
at mojoPortal.Business.WebHelpers.HtmlContentIndexBuilderProvider.ContentChangedHandler(Object sender, ContentChangedEventArgs e)
at mojoPortal.Business.HtmlContent.OnContentChanged(ContentChangedEventArgs e)
at mojoPortal.Business.HtmlContent.Update()
at mojoPortal.Business.HtmlContent.Save()
at mojoPortal.Web.ContentUI.EditHtml.btnUpdate_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2008-05-04 16:36:17,129 [8596] ERROR mojoPortal.Web.Global [(null)] - 201.55.122.220-pt-BR - /HtmlEdit.aspx?mid=2&pageid=2
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.UnauthorizedAccessException: Access to the path 'C:\WINDOWS\TEMP' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
at System.IO.Directory.GetFileSystemEntries(String path, String searchPattern, SearchOption searchOption)
at System.IO.Directory.GetFileSystemEntries(String path)
at Lucene.Net.Store.FSDirectory.Create()
at Lucene.Net.Store.FSDirectory.Init(FileInfo path, Boolean create)
at Lucene.Net.Store.FSDirectory.GetDirectory(FileInfo file, Boolean create)
at Lucene.Net.Index.IndexWriter..ctor(String path, Analyzer a, Boolean create)
at mojoPortal.Business.WebHelpers.IndexHelper.RebuildIndex(IndexItem indexItem, String indexPath)
at mojoPortal.Business.WebHelpers.IndexHelper.RebuildIndex(IndexItem indexItem)
at mojoPortal.Business.WebHelpers.HtmlContentIndexBuilderProvider.IndexItem(HtmlContent content)
at mojoPortal.Business.WebHelpers.HtmlContentIndexBuilderProvider.ContentChangedHandler(Object sender, ContentChangedEventArgs e)
at mojoPortal.Business.HtmlContent.OnContentChanged(ContentChangedEventArgs e)
at mojoPortal.Business.HtmlContent.Update()
at mojoPortal.Business.HtmlContent.Save()
at mojoPortal.Web.ContentUI.EditHtml.btnUpdate_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.htmledit_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 

5/4/2008 3:02:50 PM
Gravatar
Total Posts 18439

Re: Problem with HtmlContent

Looks like you are running in medium trust or some other configuration besides full trust.

You need to configure the lucene search engine to use the /Data/Sites/1/index folder (instead of the temp folder), however, the setting needs to be in file path format like c:\pathtoyourweb\Data\Sites\1\index

Visiting your /Setup/Default.aspx page should tell you the path or you may be able to figure it out from info in your web hosting control panel.

See the notes on this page.

You need to set this in Web.confi or user.config

<add key="Lucene.Net.lockdir" value="C:\devprojects\mojoportal\mojodev\Web\Data\Sites\1\index" />

but of course it has to  be the correct path for your installation, this is just an example.

Hope it helps,

Joe

5/4/2008 3:49:02 PM
Gravatar
Total Posts 10
Tiago Jesus

Re: Problem with HtmlContent

Thank you Joe.

It`s working now.

You must sign in to post in the forums. This thread is closed to new posts.