Unable to generate a temporary class

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
2/2/2011 11:44:33 PM
Gravatar
Total Posts 7

Unable to generate a temporary class

I keep getting this error message whenever I am trying to update any content. I am using latest version of mojoportal, I see on few posts that this can be resolved by giving permissions to temp folder.

What temp folder is it? I am not sure if I can do it because I am using a shared hosting, can someone please give more info on this?

Server Error in '/mojoPortal' Application.
--------------------------------------------------------------------------------

Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\Windows\TEMP\k0xceymv.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\k0xceymv.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\k0xceymv.0.cs' could not be found
error 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() +569
   mojoPortal.Web.SiteUtils.QueueIndexing() +112
   mojoPortal.Web.ContentUI.EditHtml.SaveHtml(Boolean draft) +1124
   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.1 

2/3/2011 3:32:00 AM
Gravatar
Total Posts 108
Community Expert

Re: Unable to generate a temporary class

First of all be sure you are using the rigth web.config file, this change if you are using a medium trust hosting service. The folders that need the writable access are /App_Data and  /Data you can change this in the file manager that come with your hosting control panel.

 

Please read carefully the documentation, all this is commented there  http://www.mojoportal.com/installation-quick-start.aspx

2/3/2011 10:47:58 AM
Gravatar
Total Posts 18439

Re: Unable to generate a temporary class

This problem has been reported before with a workaround. See this thread for a solution.

Hope it helps,

Joe

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