problem adding a new thread in a forum

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.
11/4/2010 3:39:10 PM
Gravatar
Total Posts 4

problem adding a new thread in a forum

Hi There !!!

 

I just installed mojoforum, and created a forum - but i am having this problem:

When creating a new thread and submitting it this happens:

I an transferred to this Page that displays Service Unavailable.

I think this is making my IIS reset because it takes some time until i can access the page again

when i can reenter my site i can see that the thread is create 5 times ?

 

This problem occurs on a webhotel - whan i run it local against the same sql server i works perfect


 

11/4/2010 3:54:21 PM
Gravatar
Total Posts 550

Re: problem adding a new thread in a forum

Hi,

Using Isolated Application Pool may be correct the problem. You can do it via your web site control panel.

Hope helps,

Asad

11/5/2010 3:22:47 AM
Gravatar
Total Posts 4

Re: problem adding a new thread in a forum

Hi Asad !!!

thanks, but i dont think i have that option at my webhotel (Cpanel)

Kim 

11/9/2010 6:31:27 AM
Gravatar
Total Posts 18439

Re: problem adding a new thread in a forum

Hi Kim,

You should look in the mojoPortal log for any related errors that may give a clue about what is happening.

Administration > System Log

see also Basic Troubleshooting

Hope it helps,

Joe

11/9/2010 7:22:29 AM
Gravatar
Total Posts 4

Re: problem adding a new thread in a forum

Hi Joe !

The Log returned the following:

System.InvalidOperationException: Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\uhtppnse.0.cs' could not be found

I found out that this Line in code what causing an error:

task.SerializedTaskObject = SerializationHelper.SerializeToString(this);

I host my website at a webhotel where i dont have write permission  to c:\windows\temp 

I found out that by adding this entry in web.config  the problem disappears

<add key="IsSearchIndexingNode" value="false"/>

I guess my forum will not be indexed then, is there any other way i can solve this

 

kim

11/9/2010 8:01:27 AM
Gravatar
Total Posts 18439

Re: problem adding a new thread in a forum

Hi Kim,

Nothing directly in mojoPortal code is trying to write to the windows/temp folder, things like that may be done by the .NET runtime or ASP.NET compiler, but we are just using framework classes to serialize to xml.

You are correct that if you use that config setting it disables the indexing of content into the search index, it disables it for all features not just the forums. I would expect it to happen when you edit any content that is indexed.

Googleing for this error I find this

http://support.microsoft.com/kb/908158

It seems only your host can solve this problem.

Hope it helps,

Joe

11/10/2010 3:29:34 AM
Gravatar
Total Posts 4

Re: problem adding a new thread in a forum

Hi Joe !!

Yes i found out you were right about this : "it disables it for all features not just the forums"

so i started googling again and found out the following :

this line of code in mojoportal will try to generate a temporary class file

task.SerializedTaskObject = SerializationHelper.SerializeToString(this);

In my case it will try to write a class file to c:\windows\temp and it will fail because i am unable to write to that directory due to the fact i am on a webhotel.

I found out that by adding this to the web.comfig file the class will use the specified directory instead of the temp directory

<system.xml.serialization>
<xmlSerializer tempFilesLocation="E:\webroots\LocalUser\xxxxxx\public_html\c\temp"/>
</system.xml.serialization>

when i first added this i diden't know the path to that folder, but by adding an invalid path the log in mojoportal reported the correct path to me

http://support.microsoft.com/?kbid=934529

so now everything is working :-)

Love the CMS,,,,,,

kim

 

11/10/2010 8:08:12 AM
Gravatar
Total Posts 18439

Re: problem adding a new thread in a forum

Hi Kim,

That is a good solution I did not know about. I will add that to Web.config but commented out and with comments about what it is for so we can remember it easy if this issue is reported again. It is too bad it requires a file system path instead of a virtual path like ~/Data/ if it worked like that I could solve it for everyone easily.

Best,

Joe

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