Tuesday, June 14, 2005

Debugging is not supported under current trust level settings.

Following is an email I received regarding SharePoint development. I thought you guys may benefit from the answer one day if you are in to SharePoint Development

Hi Gayan,

I have read your article on DevX about Sharepoint it was very helpful. I am new
to sharepoint I am running under a problem where I need to run an Asp.NET
application on the same server under which I am running Sharepoint portal
server, as u know U have to exclude the path if you will use any external
Asp.Net program. Well I did that but I am having error stating..

Server Error in '/Supresta' Application.

Debugging is not supported under current trust level settings.

Description: An unhandled exception occurred during the execution of the current
web request. Please review the stack trace for more information about the error
and where it originated in the code. Exception Details: System.Web.HttpException:
Debugging is not supported under current trust level settings.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.

Please advice me where is the error.

Best Regards

Attiq Khan

I believe you have already added your DLL and the pdb files to the SharePoint Server BIN directory. You need to make sure the web.config file of the SharePoint is updated as display below,
Change the line
<trust level=" WSS_Minimal" originUrl="" />
<trust level="Full" originUrl="" />
By default, the original trust level is “WSS_Minimal”. This will prevent developers from debugging and adding new application to the SharePoint Server.


At 9:12 AM, Blogger Gayan Peiris said...

I want to say thank you for your help by following your procedure I was able to run my Application You really had save me a lot of rouble.

I really appreciate your help.

Best Regards
Attiq Kham

At 11:39 PM, Anonymous Anonymous said...

I want to also say thank you for getting me closer to fixing my problem. However i now have a different error message show below.

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive.

I beleive this is caused due to WSS stopping me from using Session variables. I guess i'll have to find a fix for this now.

Kind Regards,


At 8:34 PM, Anonymous Anonymous said...

I had the same problem.
Solution to this query, saved my time.

Praveen Reddy Bobbili

At 8:41 PM, Anonymous aspergers and employment said...

Hi there Blogger, a real useful blog.Keep with the good work.
If you have a moment, please visit my aspergers and employment site.
I send you warm regards and wishes of continued success.


Post a Comment

<< Home