wiki:CodeSamples/AspDotNet/DevFAQ Development FAQ/Tips

General Tips

  • Make sure the virtual directories /mapguide/mapviewernet and /mapguide/mapviewerajax are configured for 2.0 (2.0.50727)
  • Ensure that the .php and .fcgi scriptmaps have been configured for the /mapguide virtual directory.
  • If you are using Windows XP, you can increase the number of connections to the maximum (40). In your AdminScripts directory (Usually C:\Inetpub\wwwroot\AdminScripts) type the following:

cscript.exe adsutil.vbs set w3svc/MaxConnections 40

  • In IIS 6.0, you can save an existing MapGuide configuration to an XML file by right clicking the "mapguide" virtual directory and choosing All Tasks - Save configuration to a file, you can load this same configuration by right clicking your web site and choosing New - Virtual directory (from file)

General FAQ

Q: In Windows Server 2003, the AJAX viewer or the .net API does not work. The event logs are filled with the message "It is not possible to run different versions of ASP.NET in the same IIS process"

A: You are possibly running different versions of (1.1 and 2.0) under the same application pool. This is a shortcoming of the MGOS installer, as it installs into the default application pool. The solution is to put your 1.1 or 2.0 applications into a separate application pool. See #360.

Q: I get 404 errors accessing /mapguide/mapviewerajax or /mapguide/mapviewernet

A: The current MGOS installer has issues with the .net installation option. Basically IIS configuration is not guaranteed to succeed, so make sure these virtual directories exist and are properly configured. See #359

Q: Can I use the MapGuide .net dlls in 3.5 sites?

A: Yes. 3.5 uses the same CLR as 2.0. Your code should work on 3.5 sites with no modification required.

Q: Can I use .net 3.5 specific language features with the .net API?

A: Depends. The new 3.5 language features still compiles to 2.0 IL, so you should be able to use some of the 3.5 language features against the MapGuide API. For example, you can create Extension Methods on existing MapGuide classes. However, you can't use LINQ against the MapGuide Feature Service.

Last modified 14 years ago Last modified on Apr 17, 2008, 10:28:18 AM
Note: See TracWiki for help on using the wiki.