ThinkGeo.com    |     Documentation    |     Premium Support

Deploy web on IIS


Hi,


I found a small problem with the running of application with Map Web Suite on local IIS 7. When I try the application in VS2008 (ASP.NET Development server), it´s OK. But when I start the app on IIS, browser show the error:


Microsoft JScript runtime error: 'mapParser' is undefined


I find the topic in forum about the bug and so I try to insert the script. But no positive result.


Where is problem?


Thanks


O. Kaspar







 


Ondrej,


It’s a problem about configuration for IIS7. Please open IIS manager, open the advanced settings of your web site, and change the application pool to Classic .NET AppPool, then your web site will work fine.



 



Thanks,


Ben




Thank you Ben, but I already ttried it. With this application pool total crash the IIS worker process (w3wp.exe, modul ntdll.dll). 


I don´t know. I try to find differents between ASP.NET Development server and IIS (Classic .NET AppPool).


Ondrej 


 



Ondrej, 
  
 Did you set the projection to FeatureSource in your application? There is a known issue that when deployed on IIS7, it takes huge amount of time on the projection.Close() method. Here is a temporary solution: rewrite the Proj4Projection class and override the CloseCore method like the following code, use this class instead of Proj4Projection. 
  
 
public class Proj4ProjectionWithOutClose : Proj4Projection
{
 protected override void CloseCore() { }
}
 
 This solution doesn’t bring significant memory leak in our test. Please let us know if you have any issues. 
  
 Thanks, 
  
 Ben

Yes, there was the problem, in the closing of core. Thank you Ben



You are welcome Ondrej.