sporadic error message, refresh and its gone.....

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.
4/23/2010 11:40:44 AM
Gravatar
Total Posts 108

sporadic error message, refresh and its gone.....

I've installed the latest version of mojoportal.

I've used the medium trust web.config.

I've requsted app_data and data folder to have full read write permissions (though im asking them to double check this, but i dont think this is an issue)

The site sporadically throws this error, when i refresh the page its gone. I've never experienced this before in previous installations. The site functions fine, i can upload images, create new pages, but if i get this error, i refresh and its gone. Bizarre.

anyhelp would be great as to what it could be, the error below was when i refreshed the error log to see if any errors had occured, so i got the security execption, refreshed the page and this  is whats in the log

2010-04-23 12:27:52,707 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2010-04-23 12:33:58,973 ERROR mojoPortal.Web.Global - 95.149.122.143-en-US - /Admin/ServerLog.aspx
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e)
The action that failed was:
LinkDemand
The type of the first permission that failed was:
System.Security.Permissions.SecurityPermission
The Zone of the assembly that failed was:
MyComputer
 

4/23/2010 11:58:31 AM
Gravatar
Total Posts 18439

Re: sporadic error message, refresh and its gone.....

The error indicates the url is /Admin/ServerLog.aspx and it looks like that is the first page being accessed right when the application is being restarted.

Does it happen on other pages?

I would keep an eye on the application_start and application_end events being logged, maybe the application is being recycled too frequently.

There is some code in application_start event that is expected to fail under medium trust but it is in an error handler whereas the posted error does not appear to be a handled error. Possibly if the app is recycling repeatedly the error handler fails to catch it.

Hope it helps,

Joe

4/23/2010 12:14:47 PM
Gravatar
Total Posts 108

Re: sporadic error message, refresh and its gone.....

It happens on all pages.

not sure how i keep an eye on application start and application end events.

I get the error on 2 other fresh installs ,  i dont get it on the other old installs, its bizarre.

4/24/2010 9:07:52 AM
Gravatar
Total Posts 18439

Re: sporadic error message, refresh and its gone.....

You keep an eye on it by checking the log often and seeing how many times a day is the app restarting, if you see it recycling every few minutes or repeatedly it indicates a problem. There are settings the host can make to force your app to recycle at various times of the day or after a number of requests or a certain number of errors or if a memory use threshold is reached. If the host sets the memory threshold too low it can cause the app to recycle over and over.

Hope it helps,

Joe

4/27/2010 5:53:47 AM
Gravatar
Total Posts 108

Re: sporadic error message, refresh and its gone.....

Cheers joe, 

I'll pass on the info.

Thanks

T

4/29/2010 12:29:12 PM
Gravatar
Total Posts 108

Re: sporadic error message, refresh and its gone.....

Hi Joe,

You mention in the new release you fixed some bugs that were reported in the forum but didnt specify which bugs you fixed, were any of the bugs related to the problem im experiencing at the moment.

My hosting company is looking into the errors at the moment, but as ive never had this issue with previous versions then I can only assume its a issue with version 2.3.4.2 or my hosting company has changed something on their hosting environment, im just waiting to hear back from them about this.

Cheers

Tim

4/29/2010 1:15:44 PM
Gravatar
Total Posts 18439

Re: sporadic error message, refresh and its gone.....

Hi Tim,

It is unclear to me the exact cause of the problem you describe so I can't say that it has been fixed, but maybe it is worth a try to upgrade.

The issue you are having seems related to security policy/trust level, but it is entirely likely that your host is running under custom trust level. Nothing in the error points to a specific line in mojoPortal code so it is difficult to determine exactly where the error is happening.

Hope it helps,

Joe

4/30/2010 12:15:51 PM
Gravatar
Total Posts 108

Re: sporadic error message, refresh and its gone.....

Bit of an update as to where we are.

We've moved the site to the same server where three other mojoportal sites run troublefree on a shared hosting environment running on medium trust, and still get the same error.

I'm going to scrap the site, and install version 2.3.3.2 to see if i get the same error, this is the last version i've used without any issues.

Shall let you know how i get on.

Cheers

T

4/30/2010 10:35:29 PM
Gravatar
Total Posts 108

Re: sporadic error message, refresh and its gone.....

4.25am :(

OK, so as i said, we moved the cms to a server which had 3 working mojoportal sites that were older versions and it didnt work, so this suggests permission and trust levels were at least sufficient when I uploaded the last mojoportal in december.

So i scrapped 2.3.4.2 and installed a version that i've used before 2.3.3.2 and presto, it worked straight off the bat. There's been 6 releases since i last installed mojoportal so somewhere along the line there must have been a change that is now causing a security permission exception. I know you said that theres one process that will always fail in medium trust, is this process a recent one? or one thats been around for a long time?

I know you've said its unclear to the exact cause of the problem, so when i get time i'll go through and install each version one at a time on my hosting space to find out which one is causing  me sleepless nights ;)

I'm just glad i can go ahead and launch my new site on Tuesday :)

Time for bed

Cheers

Tim

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