Using my custom handler inside sharepoint teamsite
-
Hi We have an HttpHandler developed for our web application and we are tying to use that handler inside sharepoint teamsite. I added the dll of my handler in the GAC and changed the web.config with a line like below: <add verb="*" path="webservices.axd" type="x.Framework.HttpHandlers.WebServicesHandler, x.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3ed025cf0c333301" validate="false"/> Do I have to do some thing else to access my handler. After doing the above things, I still see that my handler says: object reference not to set an instance of the object. I tried ouput some Hello text on the first call of the handler but I havent get my text and stil I am getting: object reference not to set an instance of the object. If I access my handler from other port, it is working fine. Does any one tell me, to do more changes and anything else to access my handler. Any ideas please!! Thanks in advance,
-- http://ashakthi.blogspot.com http://kids-articles.blogspot.com
-
Hi We have an HttpHandler developed for our web application and we are tying to use that handler inside sharepoint teamsite. I added the dll of my handler in the GAC and changed the web.config with a line like below: <add verb="*" path="webservices.axd" type="x.Framework.HttpHandlers.WebServicesHandler, x.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3ed025cf0c333301" validate="false"/> Do I have to do some thing else to access my handler. After doing the above things, I still see that my handler says: object reference not to set an instance of the object. I tried ouput some Hello text on the first call of the handler but I havent get my text and stil I am getting: object reference not to set an instance of the object. If I access my handler from other port, it is working fine. Does any one tell me, to do more changes and anything else to access my handler. Any ideas please!! Thanks in advance,
-- http://ashakthi.blogspot.com http://kids-articles.blogspot.com
Hi, you have to know which part of the code which potentially return null value. For example avoid type casting without first checking the existence (null or not) Riwut Libinuko Microsoft MVP | SharePoint Server | Singapore b: http://blog.libinuko.com c: http://ideasfreestsadm.codeplex.com