<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>&nbsp;</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>&nbsp;</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>&nbsp;</div>
<div>Please Help how Can I Get The Soltion.... Please...<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 6/30/06, <b class="gmail_sendername">John Cachat</b> &lt;<a href="mailto:jcachat@agti.com">jcachat@agti.com</a>&gt; 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 &quot;mapguide&quot; web site.&nbsp;&nbsp;I had this problem just yesterday after installing the latest build of MG Enterprise 2007 to a fresh 2003 server.&nbsp;&nbsp;It seems the install either does not install .Net 
2.0 or does not set the correct version when it creates the virtual directory.&nbsp;&nbsp;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: &lt;%@ Import Namespace=&quot;
System.Collections&quot; %&gt;<br>Line 18: &lt;%@ Import Namespace=&quot;System.IO&quot; %&gt;<br>Line 19: &lt;%@ Import Namespace=&quot;OSGeo.MapGuide&quot; %&gt;<br>Line 20: &lt;script language=&quot;c#&quot; runat=&quot;server&quot;&gt;
<br>Line 21:<br><br>Source File: c:\Program Files\MapGuideOpenSource\WebServerExtensions\www\dotnetviewersample\utilityfunctions.aspx&nbsp;&nbsp;&nbsp;&nbsp;Line: 19<br><br><br><br>Show Detailed Compiler Output:<br><br>C:\WINDOWS\system32&gt; &quot;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe&quot; /t:library /utf8output /R:&quot;C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll&quot; /R:&quot;C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll&quot; /R:&quot;C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll&quot; /R:&quot;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll&quot; /R:&quot;C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll&quot; /R:&quot;C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll&quot; /R:&quot;C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll&quot; /R:&quot;C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll&quot; /R:&quot;C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll&quot; /R:&quot;C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll&quot; /out:&quot;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&quot; /debug- /optimize+ /win32res:&quot;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
<br><a href="http://ASP.NET">ASP.NET</a> Files\mapguide\6330db03\7cea0d17\3tjlg3zd.res&quot; /w:4 /nowarn:1659;1699&nbsp;&nbsp;&quot;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&quot; &quot;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&quot;<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:&nbsp;&nbsp;&nbsp;&nbsp;&lt;%--<br>Line 2:&nbsp;&nbsp;&nbsp;&nbsp;Copyright (C) 2004-2006&nbsp;&nbsp;Autodesk, Inc.<br>Line 3:&nbsp;&nbsp;&nbsp;&nbsp;This library is free software; you can redistribute it and/or<br>Line 4:&nbsp;&nbsp;&nbsp;&nbsp;modify it under the terms of version 
2.1 of the GNU Lesser<br>Line 5:&nbsp;&nbsp;&nbsp;&nbsp;General Public License as published by the Free Software Foundation.<br>Line 6:<br>Line 7:&nbsp;&nbsp;&nbsp;&nbsp;This library is distributed in the hope that it will be useful,<br>Line 8:&nbsp;&nbsp;&nbsp;&nbsp;but WITHOUT ANY WARRANTY; without even the implied warranty of
<br>Line 9:&nbsp;&nbsp;&nbsp;&nbsp;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&nbsp;&nbsp;See the GNU<br>Line 10:&nbsp;&nbsp; Lesser General Public License for more details.<br>Line 11:<br>Line 12:&nbsp;&nbsp; You should have received a copy of the GNU Lesser General Public
<br>Line 13:&nbsp;&nbsp; License along with this library; if not, write to the Free Software<br>Line 14:&nbsp;&nbsp; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA&nbsp;&nbsp;02110-1301&nbsp;&nbsp;USA<br>Line 15:&nbsp;&nbsp; --%&gt;<br>Line 16:<br>Line 17:&nbsp;&nbsp; &lt;%@ Import Namespace=&quot;
System.Collections&quot; %&gt;<br>Line 18:&nbsp;&nbsp; &lt;%@ Import Namespace=&quot;System.IO&quot; %&gt;<br>Line 19:&nbsp;&nbsp; &lt;%@ Import Namespace=&quot;OSGeo.MapGuide&quot; %&gt;<br>Line 20:&nbsp;&nbsp; &lt;script language=&quot;c#&quot; runat=&quot;server&quot;&gt;
<br>Line 21:<br>Line 22:&nbsp;&nbsp; NameValueCollection GetParameters()<br>Line 23:&nbsp;&nbsp; {<br>Line 24:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return Request.HttpMethod == &quot;GET&quot; ? Request.QueryString : Request.Form;<br>Line 25:&nbsp;&nbsp; }<br>Line 26:<br>Line 27:&nbsp;&nbsp; void InitializeWebTier()
<br>Line 28:&nbsp;&nbsp; {<br>Line 29:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Initialize web tier with the site configuration file.&nbsp;&nbsp;The config<br>Line 30:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // file should be in the same folder as this script.<br>Line 31:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //<br>Line 32:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string realPath = 
Request.ServerVariables[&quot;APPL_PHYSICAL_PATH&quot;];<br>Line 33:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String configPath =&nbsp;&nbsp;realPath + &quot;webconfig.ini&quot;;<br>Line 34:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MapGuideApi.MgInitializeWebTier(configPath);<br>Line 35:&nbsp;&nbsp; }<br>Line 36:
<br>Line 37:&nbsp;&nbsp; // Searches the map for a layer with the specified name.<br>Line 38:<br>Line 39:&nbsp;&nbsp; MgLayer GetLayerByName(MgMap map, String layerName)<br>Line 40:&nbsp;&nbsp; {<br>Line 41:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MgLayer layer = null;<br>Line 42:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int i = 0; i &lt; 
map.GetLayers().GetCount(); i++)<br>Line 43:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>Line 44:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MgLayer nextLayer = map.GetLayers().GetItem(i);<br>Line 45:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (nextLayer.GetName() == layerName)<br>Line 46:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>Line 47:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layer = nextLayer;
<br>Line 48:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>Line 49:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>Line 50:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>Line 51:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return layer;<br>Line 52:&nbsp;&nbsp; }<br>Line 53:<br>Line 54:&nbsp;&nbsp; // Read the content from an MgByteReader and send it back as the response.
<br>Line 55:&nbsp;&nbsp; void OutputReaderContent(MgByteReader byteReader, HttpResponse response)<br>Line 56:&nbsp;&nbsp; {<br>Line 57:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MemoryStream memBuf = new MemoryStream();<br>Line 58:<br>Line 59:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; byte[] byteBuffer = new byte[1024];
<br>Line 60:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int numBytes = byteReader.Read(byteBuffer, 1024);<br>Line 61:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while(numBytes &gt; 0)<br>Line 62:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>Line 63:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; memBuf.Write(byteBuffer, 0, numBytes);<br>Line 64:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; numBytes = 
byteReader.Read(byteBuffer, 1024);<br>Line 65:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>Line 66:<br>Line 67:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; response.ContentType = byteReader.GetMimeType();<br>Line 68:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; byte [] content = memBuf.ToArray();<br>Line 69:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; response.OutputStream.Write
(content , 0, content.Length);<br>Line 70:&nbsp;&nbsp; }<br>Line 71:<br>Line 72:&nbsp;&nbsp; &lt;/script&gt;<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>