<div>But John till now getting the same error </div>
<div>Look My Point:</div>
<div>I'm Successfully running the pages through MGStudio using </div>
<div><a href="http://127.0.0.1/mapguide/mapviewerajax/?WEBLAYOUT=Library%3a%2f%2fLayers%2flayout.WebLayout">http://127.0.0.1/mapguide/mapviewerajax/?WEBLAYOUT=Library%3a%2f%2fLayers%2flayout.WebLayout</a></div>
<div> </div>
<div>but it is giving error when i'm trying some sample pages using</div>
<div><a href="http://127.0.0.1/mapguide/">http://127.0.0.1/mapguide/</a> ..... /pagename.aspx</div>
<div> </div>
<div>such as dotnetviewer sample.</div>
<div>also when i'm browsing the path</div>
<div>C:\Program Files\MapGuideOpenSource\WebServerExtensions\www\mapviewernet</div>
<div>from IIS Window then also giving the error but it different ..</div>
<div>it then tells that Invalid username Or password .</div>
<div>the authentication window is not comming..</div>
<div> </div>
<div>Please Help how Can I Get The Soltion.... Please...<br><br> </div>
<div><span class="gmail_quote">On 6/30/06, <b class="gmail_sendername">John Cachat</b> <<a href="mailto:jcachat@agti.com">jcachat@agti.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Check the version of .Net for the "mapguide" web site. I had this problem just yesterday after installing the latest build of MG Enterprise 2007 to a fresh 2003 server. It seems the install either does not install .Net
2.0 or does not set the correct version when it creates the virtual directory. Changing it from 1.0 to 2.0 fixed the problem for me.<br><br>Hope that helps,<br>John<br><br><br><br>________________________________<br><br>
From: sukalyan chakraborty [mailto:<a href="mailto:chakraborty.sarkar@gmail.com">chakraborty.sarkar@gmail.com</a>]<br>Sent: Fri 6/30/2006 5:33 AM<br>To: <a href="mailto:users@mapguide.osgeo.org">users@mapguide.osgeo.org</a>
<br>Subject: [mapguide-users] PLease Help He<br><br><br>please help me...<br><br><br>When I'm Running pages from MGStudio then it is running fine but<br>If I running like<br><br><a href="http://localhost/mapguide/dotnetviewersample/ajaxtiledviewersample.aspx">
http://localhost/mapguide/dotnetviewersample/ajaxtiledviewersample.aspx</a><br>or<br><a href="http://localhost/mapguide/dotnetviewersample/dwfviewersample.aspx">http://localhost/mapguide/dotnetviewersample/dwfviewersample.aspx
</a><br>then getting the error<br><br>I'm using Framework v2.0.50727<br><br><br>Server Error in '/mapguide' Application.<br>________________________________<br><br><br><br>Compilation Error<br><br>Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
<br><br>Compiler Error Message: CS0246: The type or namespace name 'OSGeo' could not be found (are you missing a using directive or an assembly reference?)<br><br>Source Error:<br><br><br><br>Line 17: <%@ Import Namespace="
System.Collections" %><br>Line 18: <%@ Import Namespace="System.IO" %><br>Line 19: <%@ Import Namespace="OSGeo.MapGuide" %><br>Line 20: <script language="c#" runat="server">
<br>Line 21:<br><br>Source File: c:\Program Files\MapGuideOpenSource\WebServerExtensions\www\dotnetviewersample\utilityfunctions.aspx Line: 19<br><br><br><br>Show Detailed Compiler Output:<br><br>C:\WINDOWS\system32> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
<br><a href="http://ASP.NET">ASP.NET</a> Files\mapguide\6330db03\7cea0d17\App_Web_ajaxtiledviewersample.aspx.305c7238.rr15dqlk.dll" /debug- /optimize+ /win32res:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
<br><a href="http://ASP.NET">ASP.NET</a> Files\mapguide\6330db03\7cea0d17\3tjlg3zd.res" /w:4 /nowarn:1659;1699 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary <a href="http://ASP.NET">ASP.NET</a> Files\mapguide\6330db03\7cea0d17\App_Web_ajaxtiledviewersample.aspx.305c7238.rr15dqlk.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
<br><a href="http://ASP.NET">ASP.NET</a> Files\mapguide\6330db03\7cea0d17\App_Web_ajaxtiledviewersample.aspx.305c7238.rr15dqlk.1.cs"<br><br><br>Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42<br>for Microsoft (R) Windows (R) 2005 Framework version
2.0.50727<br>Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.<br><br>c:\Program Files\MapGuideOpenSource\WebServerExtensions\www\dotnetviewersample\utilityfunctions.aspx(19,11): error CS0246: The type or namespace name 'OSGeo' could not be found (are you missing a using directive or an assembly reference?)
<br>c:\Program Files\MapGuideOpenSource\WebServerExtensions\www\dotnetviewersample\utilityfunctions.aspx(39,24): error CS0246: The type or namespace name 'MgMap' could not be found (are you missing a using directive or an assembly reference?)
<br>c:\Program Files\MapGuideOpenSource\WebServerExtensions\www\dotnetviewersample\utilityfunctions.aspx(39,1): error CS0246: The type or namespace name 'MgLayer' could not be found (are you missing a using directive or an assembly reference?)
<br>c:\Program Files\MapGuideOpenSource\WebServerExtensions\www\dotnetviewersample\utilityfunctions.aspx(55,26): error CS0246: The type or namespace name 'MgByteReader' could not be found (are you missing a using directive or an assembly reference?)
<br><br><br>Show Complete Compilation Source:<br><br>Line 1: <%--<br>Line 2: Copyright (C) 2004-2006 Autodesk, Inc.<br>Line 3: This library is free software; you can redistribute it and/or<br>Line 4: modify it under the terms of version
2.1 of the GNU Lesser<br>Line 5: General Public License as published by the Free Software Foundation.<br>Line 6:<br>Line 7: This library is distributed in the hope that it will be useful,<br>Line 8: but WITHOUT ANY WARRANTY; without even the implied warranty of
<br>Line 9: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU<br>Line 10: Lesser General Public License for more details.<br>Line 11:<br>Line 12: You should have received a copy of the GNU Lesser General Public
<br>Line 13: License along with this library; if not, write to the Free Software<br>Line 14: Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA<br>Line 15: --%><br>Line 16:<br>Line 17: <%@ Import Namespace="
System.Collections" %><br>Line 18: <%@ Import Namespace="System.IO" %><br>Line 19: <%@ Import Namespace="OSGeo.MapGuide" %><br>Line 20: <script language="c#" runat="server">
<br>Line 21:<br>Line 22: NameValueCollection GetParameters()<br>Line 23: {<br>Line 24: return Request.HttpMethod == "GET" ? Request.QueryString : Request.Form;<br>Line 25: }<br>Line 26:<br>Line 27: void InitializeWebTier()
<br>Line 28: {<br>Line 29: // Initialize web tier with the site configuration file. The config<br>Line 30: // file should be in the same folder as this script.<br>Line 31: //<br>Line 32: string realPath =
Request.ServerVariables["APPL_PHYSICAL_PATH"];<br>Line 33: String configPath = realPath + "webconfig.ini";<br>Line 34: MapGuideApi.MgInitializeWebTier(configPath);<br>Line 35: }<br>Line 36:
<br>Line 37: // Searches the map for a layer with the specified name.<br>Line 38:<br>Line 39: MgLayer GetLayerByName(MgMap map, String layerName)<br>Line 40: {<br>Line 41: MgLayer layer = null;<br>Line 42: for (int i = 0; i <
map.GetLayers().GetCount(); i++)<br>Line 43: {<br>Line 44: MgLayer nextLayer = map.GetLayers().GetItem(i);<br>Line 45: if (nextLayer.GetName() == layerName)<br>Line 46: {<br>Line 47: layer = nextLayer;
<br>Line 48: break;<br>Line 49: }<br>Line 50: }<br>Line 51: return layer;<br>Line 52: }<br>Line 53:<br>Line 54: // Read the content from an MgByteReader and send it back as the response.
<br>Line 55: void OutputReaderContent(MgByteReader byteReader, HttpResponse response)<br>Line 56: {<br>Line 57: MemoryStream memBuf = new MemoryStream();<br>Line 58:<br>Line 59: byte[] byteBuffer = new byte[1024];
<br>Line 60: int numBytes = byteReader.Read(byteBuffer, 1024);<br>Line 61: while(numBytes > 0)<br>Line 62: {<br>Line 63: memBuf.Write(byteBuffer, 0, numBytes);<br>Line 64: numBytes =
byteReader.Read(byteBuffer, 1024);<br>Line 65: }<br>Line 66:<br>Line 67: response.ContentType = byteReader.GetMimeType();<br>Line 68: byte [] content = memBuf.ToArray();<br>Line 69: response.OutputStream.Write
(content , 0, content.Length);<br>Line 70: }<br>Line 71:<br>Line 72: </script><br>Line 73:<br><br><br><br>________________________________<br><br>Version Information: Microsoft .NET Framework Version:2.0.50727.42
; <a href="http://ASP.NET">ASP.NET</a> Version:2.0.50727.42<br><br>---------------------------------------------------------------------<br>To unsubscribe, e-mail: <a href="mailto:users-unsubscribe@mapguide.osgeo.org">users-unsubscribe@mapguide.osgeo.org
</a><br>For additional commands, e-mail: <a href="mailto:users-help@mapguide.osgeo.org">users-help@mapguide.osgeo.org</a><br><br></blockquote></div><br>