Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Unable to debug a web part (User Control file - .ascx.cs)

  Asked By: Elvis    Date: Feb 16    Category: Sharepoint    Views: 1875

1) I created a Class Library with a class and given path of User
control, overridden CreateChildControls(), RenderContents() methods,
inherited WebPart class.
Created User control in a separate web site.

2) I copied the UserControl files (.ascx and .ascx.cs) and pasted
these files in
C:\Inetpub\wwwroot\wss\VirtualDirectories\8081\UserControls folder

3) Copied the dll and pasted in
C:\Inetpub\wwwroot\wss\VirtualDirectories\8081\bin folder and
assembly folder

4) Added <safeControl> tag in web.config file located at

5) Kept breakpoints to the class in the class library and attached
worker process w3wp.exe.

6) Loaded the web part in the webpart gallary and clicked on the link
for preview, it has taken to the class and i am able to do debug
class file, but not able to debug usercontrol file.

I need to do debug .ascx.cs file, how can I do it. Am I doing in the
correct way?



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Unable to debug a web part (User Control file - .ascx.cs) Or get search suggestion and latest updates.