HTML Content control save error

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.
9/17/2009 10:38:29 PM
Gravatar
Total Posts 11

HTML Content control save error

Hello,

 

When using the HTML content control, the saving of the content always produces an error. In the System Log I am seeing this error:
 2009-09-12 22:21:03,091 ERROR mojoPortal.Web.WebTaskManager - System.Data.SqlClient.SqlException: Could not find stored procedure 'mp_TaskQueue_DeleteCompleted'.

 

The server is Windows 2003 server using SQL Server 2005 and the Mojo version is 2.3.1.7.

The changes are saved. i can bring up the original page and the changes are saved, but this error always occurs during the save process. Just annoying, but currently no loss of data.  Overall, this has been a great portal app!


Thanks

Harold

9/18/2009 5:27:31 AM
Gravatar
Total Posts 18439

Re: HTML Content control save error

Hi Harold,

I don't know why you would be missing that procedure, it is created in the first installation script when a new installation is made it starts with the script 2.2.7.8.config located in the /Setup/applications/mojoportal-core/SchemaInstallScripts/mssql folder and for sites upgrading from much older versions its also created in the script for version 2.2.4.6.

I would look for it in the 2.2.7.8 script and run it manually to create the procedure.

Hope it helps,

Joe

9/21/2009 6:08:42 PM
Gravatar
Total Posts 11

Re: HTML Content control save error

Hi Joe,

Here is some more detail on that error. I cleaned out the system log, and reran the post operation. The following error seems to be the main issue.

Any idea?

Thanks

Harold

 

2009-09-21 19:04:35,989 ERROR mojoPortal.Web.Global - 71.234.245.71-en-US - /HtmlEdit.aspx?mid=11&pageid=5

System.InvalidOperationException: Unable to generate a temporary class (result=1).

error CS2001: Source file 'C:\WINDOWS\TEMP\4bjqhj7a.0.cs' could not be found

error CS2008: No inputs specified

 

at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)

at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)

at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)

at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)

at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)

at System.Xml.Serialization.XmlSerializer..ctor(Type type)

at mojoPortal.Business.SerializationHelper.SerializeToString(Object obj)

at mojoPortal.Business.WebHelpers.IndexWriterTask.QueueTask()

at mojoPortal.Web.SiteUtils.QueueIndexing()

at mojoPortal.Web.ContentUI.EditHtml.SaveHtml(Boolean draft)

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)

 

9/21/2009 6:49:51 PM
Gravatar
Total Posts 11

Re: HTML Content control save error

Hi Joe,

After posting my last update to this, I realized I should check permissions. When I assigned R/W permissions to the c:\windows\temp directory to the IIS_WPG, it worked with no errors. So it was a permissions issue. However, is this the correct location for these files and the correct solution?

 

Thanks

Harold

9/22/2009 6:11:36 AM
Gravatar
Total Posts 18439

Re: HTML Content control save error

I don't see any problem with that solution. I think the xmlserializer must create a temporary file there, though I would have expected it might use windows\Microsoft.NET\Framework\version\ASP.NET Temporary Files.

Some relevant links:

http://msdn.microsoft.com/en-us/library/ms366723.aspx

http://stackoverflow.com/questions/542312/asp-net-access-to-the-temp-directory-is-denied

Hope it helps,

Joe

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