Unhandled Exception Errors

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
11/22/2010 9:41:30 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Unhandled Exception Errors

Hi guys, sorry if this is in the wrong forum.

We're getting a lot of these Unhandled Exception Errors in a mojo install, causing it to crash the server app pool (so my host tells me), any ideas on the following?

Thanks in advance.

Mark

There has been a large number of unhandled exception errors which probably caused the application pool to fall over.  If you can take a look at the errors below and resolve we'll restart the application pool.

Event Type:    Error
Event Source:    ASP.NET 2.0.50727.0
Event Category:    None
Event ID:    1334
Date:        16/11/2010
Time:        11:42:14
User:        N/A
Computer:    DWIN5
Description:
An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/358/ROOT

Process ID: 4556

Exception: System.Security.SecurityException

Message: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

StackTrace:    at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
  at System.Security.CodeAccessPermission.Demand()
  at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
  at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()
  at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTask()
  at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTaskOnNewThread(Object oTask)
  at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
  at System.Threading.ExecutionContext.runTryCode(Object userData)
  at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
  at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Event Type:    Error
Event Source:    ASP.NET 2.0.50727.0
Event Category:    None
Event ID:    1334
Date:        16/11/2010
Time:        11:21:20
User:        N/A
Computer:    DWIN5
Description:
An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/358/ROOT

Process ID: 5304

Exception: System.Security.SecurityException

Message: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

StackTrace:    at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
  at System.Security.CodeAccessPermission.Demand()
  at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
  at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()
  at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTask()
  at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTaskOnNewThread(Object oTask)
  at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
  at System.Threading.ExecutionContext.runTryCode(Object userData)
  at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
  at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


Event Type:    Error
Event Source:    ASP.NET 2.0.50727.0
Event Category:    None
Event ID:    1334
Date:        16/11/2010
Time:        11:10:25
User:        N/A
Computer:    DWIN5
Description:
An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/358/ROOT

Process ID: 5016

Exception: System.Security.SecurityException

Message: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

StackTrace:    at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
  at System.Security.CodeAccessPermission.Demand()
  at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
  at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()
  at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTask()
  at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTaskOnNewThread(Object oTask)
  at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
  at System.Threading.ExecutionContext.runTryCode(Object userData)
  at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
  at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

11/22/2010 9:52:54 AM
Gravatar
Total Posts 108
Community Expert

Re: Unhandled Exception Errors

I think you have a issue with the install, because your hosting is runing your install in a medium trust server.

Security Exception Errors

If you get any errors that say security exception, it probably means your hosting provider is enforcing a Medium Trust security policy. mojoPortal can be configured to work in Medium Trust by following additional steps discussed here.

the next time publish this in the Installation Help forum 

11/22/2010 9:54:17 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Unhandled Exception Errors

Hi there

It's configured for Medium Trust already, it wouldn't get past setup without it would it?

Thanks

11/22/2010 10:03:15 AM
Gravatar
Total Posts 108
Community Expert

Re: Unhandled Exception Errors

I understand for your comment that the installation is already finish and the exceptions appear after the install is already complete?. You can run your site the first time?

all the errors in your log are security exceptions more specific FileIOPermission, this is caused because a app is trying to read or write in a file with out the right access permission. 

Are you sure that you have all the permissions on the /App_Data and /Data folder  and all sub folders and files inside it are writable by the web process user (the user that is the identity on your application pool in IIS Web Server), and that the permissions wasn't changed, after the install.

 

11/22/2010 10:12:14 AM
Gravatar
Total Posts 18439

Re: Unhandled Exception Errors

You should check the folder permissions as German has suggested, possibly the permissions changed at your host if it was working correctly before.

Also this problem looks similar to one posted on this thread, and the solution indicated there about configuring the location for temp files created for serialization in web.confg may help.

11/22/2010 10:22:28 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Unhandled Exception Errors

Thanks guys I'll take a look... :0)

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