Loading...

Monday, June 13, 2011

Debugging On Integration server

If you are not able to debug on Integration server
Do One thing,  Naviagate to
Central Admin Site -->Security -->configure Your service account here
reset IIS
when You attach to worker process you must me able to see w3p.exe on your user account.

Friday, June 10, 2011

Why the webpart dont get deployed even if added to solution?

In large Visual studio 2010 , if the webpart is note getting deployed to the site after successful build and deploy
try following
Check in the package designer , if your webpart name exists in package
if not then the feature designer and click on the Edit File Link,Add the webpart you are searching for.Package-->Build-->Deploy.

Thursday, June 2, 2011

How to Attach the EventReceiver to Particular List



1)Create  EventReceiver  ,Make sure that  Its  Feature  Scope  is Web Scoped,   Otherwise event will fire on all the Lists.

2)Make sure that ,Event receiver feature is deployed in the scope where List Exists.

3)In Element.xml , In receiver tag, modify the ListTemplateID to ListUrl="List/ListName"
Make sure that the path for ListUrl is correct, It is different for document libraries,Announcements and other list types
If its not correct then you will get Nativehr error


4)If still eventreceiver dont get  fired then Check SharePointProjectItem.spdata
In ProjectItem tag , check for Supported scope .It should be web only

4)Write the solutionValidator   to Validate above things before deploying the Event Receiver.