Creating Development Environment for SharePoint

by Waqas 7/30/2007 8:47:00 PM

Before developers started working on SharePoint object model they must perform the following options so that he can easily debug application on the Sharepoint, set the security trust settings and enable the exact exceptions and call stacks to be received

Modify ASP.NET debug settings.

1. In Windows Explorer, browse to the root folder of the

Windows SharePoint Services extended virtual server

C:\InetPub\wwwroot\.

2. Open web.config with Notepad.

3. Find the <compilation> element.

4. Change the “debug” attribute to true (i.e. <compilation batch=”false” debug=”true” />.)

2. Modify Visual Studio CAS security settings to allow Debugging.

1. Continue to modify the web.config file.

2. In the Web.config file, search for the <trust> element.

3. Modify the “level” attribute to WSS_Medium (i.e. <trustlevel=”WSS_Medium” originUrl=”" />.)

3. Enable the CallStack

Attribute to receive a call stack and all exception messages when an exception occurs.

1. Continue to modify the Web.config file.

2. In the Web.config file, search for the <SafeMode> element within the <SharePoint> element.

3. Modify the “CallStack” attribute to true (i.e. <SafeMode MaxControls=“50” CallStack=“true”/>.)

4. Save and close the file.

5. Execute Start -> Run -> iisreset

6. Browse to http://localhost to verify that the site still functions (if the changes are incorrect you will get a parser error.)

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Technology

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading




Tags

© Copyright Beyond Web Logs.


Recent comments

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Sign in