Opened 15 years ago
Closed 15 years ago
#1006 closed defect (fixed)
Web Layout not working
Reported by: | JackOfHearts | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | General | Version: | 2.1.0 |
Severity: | major | Keywords: | web, layout |
Cc: | External ID: |
Description
I have installed a MG 2.1 beta on a "clean" machine, IIS configuration with .NET, on Windows XP SP2, IIS 5.1, .NET 2.0. Installation worked perfectly, without any problems. Then I installed a trial version of Mapguide Studio 2010 and tried to make a web with only one shapefile. Everything worked as always until I got to web layout, it throws an error.
<%-- Copyright (C) 2004-2009 by Autodesk, Inc. This library is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --%> <%@ Page language="c#" %> <%@ Import Namespace="System" %> <%@ Import Namespace="System.Collections.Specialized" %> <%@ Import Namespace="System.IO" %> <%@ Import Namespace="OSGeo.MapGuide" %> <script runat="server">int forDwf=0;</script> <!-- #Include File="mainframe.aspx -->
also when I want to see that page in browser it also throws me that error. Funny thing is that I can see that shapefile in map preview, but not in web layout.
Then I tried to do the same thing in Maestro 1.0.9 but i get the same error in browser. I have experience with previous versions of MGOS.
Change History (4)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
I'm not very familiar with IIS, but I compared 2.0 instalation of IIS and there are some differences. First, I thing that mapviewerajax is not working, second, mapviewernet is not created as and application. Both of them have low Application protections compared to MGOS 2.0 installation where these settings are set to high. Then, both of them (mapviewerajax and mapviewernet) have different (compared to MGOS 2.0) Application Mappings in Configuration settings. In HTTP Headers, both of them do not have Custom HTTP headers set to X-Powered-By: ASP.NET. MIME Map does not have file type .json application/json Document tab, has only Default.aspx compared to Default.apsx, index.php, index.html etc.
All comparison is to MGOS 2.0 instalation with IIS and .NET configuration which works without any problem.
I thing this is all of the differences. I hope it helps. I tired to set everything the same but with no success.
comment:3 by , 15 years ago
Hi,
This "error" is usually because the wrong version of .net is assigned to the virtual directories. In IIS look at the properties of the "mapguide" and "mapviewerajax" virtuals and on the asp.net tab ensure that .net 2.0 is set. Then do an IISreset or reboot for good measure.
The new installer *should* be setting these properly but good to check!
Crispin
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thank you. :) This partially solved the problem. After I've set all of the mapguide virtuals to ASP.NET 2.0, there was another error "Server application unavailable". This is familiar error to me and was easily solver with executing "aspnet_regiis -i" in windows\Microsoft.net\framework\v2.0.50727 directory.
Thank you again for you help. Back to further testing :)
Are both mapviewernet and mapviewerajax virtual directories not working?