View stack trace for visual studio sharepoint deployment by enable diagnostics logging for SharePoint projects

Standard

I have a problem in visual studio SharePoint projects deployment that when an error occurred there is no stack trace enabled that i can see the details of the error like that

VS Deployment Exception

So i found a solution to enable stack trace for SharePoint projects in visual studio by adding a registry key to enable diagnostics logging for SharePoint projects

  1. Open registry  editor  by open start up menu – > type run -> type regedit then click ok
  2. Create a DWORD key type , the name is “EnableDiagnostics” and value “00000001” under HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\SharePointTools      “the “10.0” folder for visual studio 2010 and you can do the same in your visual studio version

enable diagnostics logging for SharePoint projects

  1. Restart the operating system
  2. Now i can see the details of deployment in the visual studio output window as image below and in which step it fails.

Visual Studio SharePoint Deployment Exception Stack Trace

Hope it will help.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

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