Error When Updating Pages

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/20/2012 9:05:38 AM
Gravatar
Total Posts 4

Error When Updating Pages

Operating System: Windows Server 2003

Database Platform: MSSQL 2005

mojoPortal Version: 2.3.6.6

After changing and/or modify text, then hitting the update key.

 

When I am updating to a content instance the following error occurs:

Server Error in '/' Application.

Unable to generate a temporary class (result=1). error CS2001: Source file 'C:\WINDOWS\TEMP\zigdkwhn.0.cs' could not be found error CS2008: No inputs specified

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Unable to generate a temporary class (result=1). error CS2001: Source file 'C:\WINDOWS\TEMP\zigdkwhn.0.cs' could not be found error CS2008: No inputs specified
Source Error:An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:[InvalidOperationException: Unable to generate a temporary class (result=1).error CS2001: Source file 'C:\WINDOWS\TEMP\zigdkwhn.0.cs' could not be founderror CS2008: No inputs specified] System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence) +1024 System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies) +1997 System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace) +149 System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace) +549 mojoPortal.Business.SerializationHelper.SerializeToString(Object obj) +87 mojoPortal.Business.WebHelpers.IndexWriterTask.QueueTask() +409 mojoPortal.Web.SiteUtils.QueueIndexing() +112 mojoPortal.Web.ContentUI.EditHtml.SaveHtml(Boolean draft) +868 mojoPortal.Web.ContentUI.EditHtml.btnUpdate_Click(Object sender, EventArgs e) +7 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

8/20/2012 10:40:05 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Error When Updating Pages

See if this article on the Microsoft Knowledge Base helps you out.

Jamie

8/20/2012 3:44:56 PM
Gravatar
Total Posts 18439

Re: Error When Updating Pages

Based on the stack trace this error is happening when a task object used to write to the search index for the site is serialized to xml.

This is most likely due to file system permissions preventing access to files under windows\temp which is the default location where temporary classes for serialized xml objects are created by the asp.net runtime.

Look for this commented out in Web.config, or if you can't find it in your older version you can add it uncommented. This setting can be used to make it generate the temporary class in a folder beneath your web site instead of in windows\temp and that may solve the problem. The only thing is you have to know the actual file system path to your /Data folder and put it in this setting before you uncomment it.

<!-- the below example can be useful if you encounter the error described in this post
http://www.mojoportal.com/Forums/Thread.aspx?thread=6741&mid=34&pageid=5&ItemID=3&pagenumber=1#post27613
-->
<!--
<system.xml.serialization>
<xmlSerializer tempFilesLocation="D:\__projects\mojoportal\__code\joedev\Web\Data"/>
</system.xml.serialization>
-->

Hope that helps,

Joe

8/21/2012 7:18:13 AM
Gravatar
Total Posts 30

Re: Error When Updating Pages

Joe - Thanks for the great information.

I decided to give the worker process modify permissions on the Temp folder and that worked.

Thanks again.

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