Web.config changes 2.0 to 4.0

Web.config snippets…

Upgrading to .NET4.0

Upgrading a super simple c# project from 2.0 to 4.0 gave me this simple change in web.config:

<configuration>
<system.web>
<!-- 2.0 (Before/Find) -->
<compilation debug="true"></compilation>
<!-- 4.0 (Arfter/Replace) -->
<compilation debug="true" targetFramework="4.0"/>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
</system.web>
</configuration>

Debugging SP2010

web.config

<configuration>
 <SharePoint>
 <SafeMode CallStack="true" AllowPageLevelTrace="true">
 </SharePoint>
 <system.web>
 <customErrors mode="Off" />
 <compilation debug="true">
 </system.web>
</configuration>

The end.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: