Help! Site error!

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
10/27/2009 11:08:12 AM
Gravatar
Total Posts 3

Help! Site error!

when opened my website this morning this is the error i got, how do i resolve it?

Server Error in '/' Application.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

 

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

 

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:

 

[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]

System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0

System.Security.CodeAccessPermission.Demand() +58

System.Web.HttpContext.System.IServiceProvider.GetService(Type service) +54

Brettle.Web.NeatUpload.UploadHttpModule.GetCurrentWorkerRequest() +219

Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e) +243

System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

 

 

Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

10/27/2009 11:14:24 AM
Gravatar
Total Posts 18439

Re: Help! Site error!

Hi,

If your site was previously working without errors then it can only mean that your host has changed something on the server and now your site is running under Medium Trust security policy.

mojoPortal can run under medium trust but it requires disabling NeatUpload, so you will no longer ahve the progress bar when upoloading files.

See this document for configuration instructions:

http://www.mojoportal.com/mediumtrust.aspx

Hope it helps,

Joe

11/4/2009 3:27:01 AM
Gravatar
Total Posts 3

Re: Help! Site error!

Thks Joe, i did just as you directed and got a runtime error!

------------------------------------



Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

 

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

 

<!-- Web.Config Configuration File -->

 

<configuration>

<system.web>

<customErrors mode="Off"/>

</system.web>

</configuration>

 

 

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

 

<!-- Web.Config Configuration File -->

 

<configuration>

<system.web>

<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

</system.web>

</configuration>

11/4/2009 7:12:00 AM
Gravatar
Total Posts 18439

Re: Help! Site error!

Hi,

Without seeing the actual error I have no way to help.

Please see Basic Troubleshooting, which tells you how to find out what the error is.

Hope it helps,

Joe

11/10/2009 4:21:53 AM
Gravatar
Total Posts 3

Re: Help! Site error!

Thks Joe, but i have issues pasting the error here. its keeps giving me an error an returns me back to the home page. what can i do so u can view the error log.

11/10/2009 6:52:28 AM
Gravatar
Total Posts 18439

Re: Help! Site error!

Hi,

Do not paste the whole log here, if it is too large that could make it throw an error.

Probably the log is full of the same errors over and over, the newest errors are at the bottom, just copy the last few error messages and paste that here in the forums.

If all else fails you can send me the log file at joe dot audette at g mail dot com

Hope it helps,

Joe

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