- Open Visual Studio 2005 to Create New Class Library called "Welcome"
- Add Ref... System.Web.dll
- Write this Class as Following :
4.Right Click on your project then choose properties > Build Tab > then choose Output Section :
Go to Output path and Browse to your Portal bin Folder ,
ex : C:\Inetpub\wwwroot\wss\VirtualDirectories\24193\bin\
5. then build your class
6.Open web.confg of your portal and make these changes :
debug="true">
and add under Safe Controls Section :
7.Now let us add this webpart to our portal so go to Site Settings>WebParts>New
and check Welcome.Hi webpart to added to your gallery
8.Now go Back to VS 2005 and add BreakPoint as the above picture
9.from Debug menu choose Attach to process.. and choose all w3wp.exe process
10. Return to Homepage of Portal and click at SiteSettings>Edit Page and add Your Webpart (Hi Webpart )
11.Final , You can start with debugging and Have A nice Bugs :)
No comments:
Post a Comment