ThinkGeo.com    |     Documentation    |     Premium Support

Problem when publishing on IIS 6

Hi,


im using Windows Server 2003 x64 (IIS 6). The site runs normally under VS2008, but when i publish it on the IIS and try to access it, an error appeared:


Parser Error Message: Could not load file or assembly 'MapSuiteCore' or one of its dependencies. An attempt was made to load a program with an incorrect format.



The line is:


<add path="*_GeoResource.axd" verb="*" type="ThinkGeo.MapSuite.WebEdition.GeoResourceFactory"></add> 


seems a configuration must be done to httpHandlers. Someone know how to do it?



Ric, 


Because the WebEdition is a 32bit assembly, when deploying it to IIS within 64bit system, you need to configure the IIS and make it run in 32bit mode. Here as following is how you can do it.
 


        
  1. Register CScript engine. 


Open the “C:\Inetpub\AdminScripts” folder. Double-click the “adsutil.vbs” file. There will be a register engine message box popped up. Click Yes to register CScript engine.
 

        
  1. Enable IIS6.0 to run 32-bit application.


Open a command prompt and navigate to the “C:\Inetpub\AdminScripts” directory, type the following command and hit Enter:
cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 true
 

        
  1. Register the 32bit ASP.NET extension to IIS.


In a command prompt, navigate to the “C:\Windows\Microsoft.NET\Framework\v2.0.50727” directory and run the following command:
aspnet_regiis.exe –i
 
This will install 32bit ASP.NET to IIS. You can see it in the IIS Manager. Click Allow to enable this ASP.NET extension. 



        
  1. Finally configure the properties and the permissions of the website and the map will display.


Any queries please let us know.


Ben.



It worked! Thanks Ben. i didnt know that MapSuite is only for 32-bit. i wonder for the 3.x version, when will the manual or a more comprehensive documentation be released…

Ric, 
  
 MapSuite is only for 32-bit, that’s because one of the dependent dlls is 32bit only. In fact now we are trying to work it around and make the MapSuite both available for 64bit and 32bit. After that you do not need to do any special settings when deploying it on IIS within a 64bit system. 
  
 I’m not very sure about the release date of a more comprehensive manual or documentation. As now we keep adding new features, maybe it will not be out until the feature list is fixed. Otherwise we will change that manual a lot:) 
  
 Thanks, 
  
 Ben