How to debug in SharePoint

by Andrew 30. January 2009 12:45

I know only the configuration part for script debugging using Visual Studio. Put DLLs for WebParts or Features into GAC and start debugging!!!


1: <?xml version="1.0" encoding="utf-8"?>

2:  

3: <configuration>

4:  

5:   <sharepoint>

6:  

7:     <safemode CallStack="”true”"></safemode>

8:  

9:   </sharepoint>

10:  

11:  </configuration>

12:  

13: <system.web>

14:  

15:   <customerrors mode="”Off”"></customerrors>

16:  

17:   <compilation debug="”true”"></compilation>

18:  

19: </system.web>

Tags:

SharePoint

Using aspnet_regiis

by Andrew 29. January 2009 14:34
ASP.NET IIS Registration Tool (Aspnet_regiis.exe)

Refer: http://msdn.microsoft.com/en-us/library/k6h9cz8h(VS.80).aspx

under %windir%\Microsoft.NET\Framework\v2.0.50727
or v1.1.4322. aspnet_regiis command can be used to install or update frameworks

When I need to choose ASP.NET Versions between v1.1 and v.2.0 on ASP.NET tab of Default Web Site Properties in IIS Manager but I can't see v1.1 so that I used the command to install v1.1.

> aspnet_regiis -i

By the way when I use the command with -lv parameter, I can see the output below

1.1.4322.0 Valid ...
2.0.50727.0 Valid (Root) ...

The problem is that I want to switch Root to v1.1 and there is a way to do it.

> aspnet_regiis -sn W3SVC/ (means default:Root)
sn : install scriptmaps for this version at the specified path, non-recursively

after that you could see the changes and using sn option, you can change scriptmaps by site. ie) -sn W3SVC/1/ROOT, W3SVC/3/ROOT ...
plus, -lk option with the command you can see IIS metadata keys affected.


Grant user or group to the IIS metabase and other directories

After you create a new website or virtual directory and browse a aspx file,
you might have error such as...

The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to C:\WINDOWS\Microsoft.NET\
Framework\v2.0.50215\Temporary ASP.NET Files'.


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.

[Answer]
You can grant access to this account explicitly using the aspnet_regiis -ga switch,
for example:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215>aspnet_regiis -ga "NT Authority\Network Service"

[Ref]
aspnet_regiis -ga
Grant the specified user or group access to the IIS metabase and other directories used by ASP.NET.

Tags:

NetFramework

Welcome to SharePoint Note!!!

by Admin 15. January 2009 14:12

As you may know SharePoint rocks at these days...

Why I started?

What I have developed?

Why I like this?

What I'll post on here?

... etc


[Task] Think more!!!

Tags:

SharePoint