Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I made one website in .net framework 2.0. without publishing website and run on iis 6.0 its working fine. at time of publishing website i did not select any checkbox of criteria for publishing. after publishing website its not working on iis 6.0. and gives error that - " Object reference not set to an instance of an object "

please help me out. i can't trace the error.

error trace as below.

[NullReferenceException: Object reference not set to an instance of an object.]
   System.Web.Script.Services.WebServiceData.GetWebServiceData(HttpContext context, String virtualPath, Boolean failIfNoData, Boolean pageMethods) +534
   System.Web.Script.Services.PageClientProxyGenerator.GetClientProxyScript(HttpContext context, IPage page, Boolean debug) +65
   System.Web.UI.ScriptManager.RegisterServices() +874
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +11043213
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3671
Posted
Updated 16-Feb-11 22:28pm
v3
Comments
Sunasara Imdadhusen 17-Feb-11 4:11am    
Did you check Error Trace?

1 solution

Try:
1. Make sure that the AJAX related DLL's, )specifically System.Web.Extension.dll & System.Web.Extension.Design.dll) are present on the server (in bin or GAC).

2. Make sure your hosted website is using correct .NET framework (2.0 in your case)
 
Share this answer
 
v2
Comments
Punit Belani 17-Feb-11 5:16am    
I checked both of your suggestions. i found System.Web.Extension.dll & System.Web.Extension.Design.dll in bin.

and i set application pool to .net framework 2.0.

Please suggest other posibilities.
Sandeep Mewara 17-Feb-11 5:17am    
Not application Pool but website hosted should run on 2.0
Punit Belani 17-Feb-11 5:25am    
then please tell me how can i check this point that website hosted run on 2.0 or not.
Sandeep Mewara 25-Feb-11 0:15am    
IIS -> Select your website under 'Default Web site'-> RightClick -> Properties -> ASP.NET tab -> ASP.NET version -> select 2.0.50727 here.

If needed, look at this article and articles in it as reference should help you out.
http://www.codeproject.com/KB/aspnet/ExploringIIS.aspx
luisnike19 24-Feb-11 15:54pm    
To check if the IIS is using the Framework 2.0, go to the IIS, and open the node "Web Service Extensions" and Allow the asp.net v2.0xxx"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900