<div>Hi </div>
<div> </div>
<div>I'm Tll now facing same problems.</div>
<div>Is there any more solution ???</div>
<div> </div>
<div>I've checked the framework version & keeping the bin folder inside the samples</div>
<div>& also keeping the all dlls open from the bin folder.</div>
<div> </div>
<div>Inspite of that i'm getting same error.<br><br> </div>
<div><span class="gmail_quote">On 6/30/06, <b class="gmail_sendername">sukalyan chakraborty</b> <<a href="mailto:chakraborty.sarkar@gmail.com">chakraborty.sarkar@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div><font color="#ff0000" size="6">please help me...</font></div>
<div><font color="#ff0000" size="6"></font> </div>
<div><font color="#ff0000" size="6"></font> </div>
<div><font color="#333333" size="2">When I'm Running pages from MGStudio then it is running fine but </font></div>
<div><font color="#333333" size="2">If I running like</font></div>
<div><font color="#333333" size="2"></font> </div>
<div><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost/mapguide/dotnetviewersample/ajaxtiledviewersample.aspx" target="_blank">http://localhost/mapguide/dotnetviewersample/ajaxtiledviewersample.aspx
</a></div>
<div>or</div>
<div><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost/mapguide/dotnetviewersample/dwfviewersample.aspx" target="_blank">http://localhost/mapguide/dotnetviewersample/dwfviewersample.aspx</a>
</div>
<div>then getting the error</div>
<div><span>
<h1><font size="2">I'm using Framework v2.0.50727</font></h1>
<h1>Server Error in '/mapguide' Application.
<hr width="100%" color="silver" size="1">
</h1>
<h2><i>Compilation Error</i> </h2></span><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><b>Description: </b>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><b>Compiler Error Message: </b>CS0246: The type or namespace name 'OSGeo' could not be found (are you missing a using directive or an assembly reference?)<br><br><b>Source Error:</b><br><br>
<table width="100%" bgcolor="#ffffcc">
<tbody>
<tr>
<td></td></tr>
<tr>
<td><code><pre>Line 17: <%@ Import Namespace="System.Collections" %>
Line 18: <%@ Import Namespace="System.IO" %>
<font color="red">Line 19: <%@ Import Namespace="OSGeo.MapGuide" %>
</font>Line 20: <script language="c#" runat="server">
Line 21: </pre></code></td></tr></tbody></table><br><b><font face="Verdana">Source File:</font></b> c:\Program Files\MapGuideOpenSource\WebServerExtensions\www\dotnetviewersample\utilityfunctions.aspx <b><font face="Verdana">
Line:</font></b> 19 <br><br><br>
<div>Show Detailed Compiler Output:</div>
<div><br>
<table width="100%" bgcolor="#ffffcc">
<tbody>
<tr>
<td><code><pre>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
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://asp.net/" target="_blank">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
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://asp.net/" target="_blank">ASP.NET</a> Files\mapguide\6330db03\7cea0d17\3tjlg3zd.res" /w:4 /nowarn:1659;1699 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://asp.net/" target="_blank">ASP.NET</a> Files\mapguide\6330db03\7cea0d17\App_Web_ajaxtiledviewersample.aspx.305c7238.rr15dqlk.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://asp.net/" target="_blank">ASP.NET</a> Files\mapguide\6330db03\7cea0d17\App_Web_ajaxtiledviewersample.aspx.305c7238.rr15dqlk.1.cs"
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
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?)
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?)
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?)
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?)
</pre></code></td></tr></tbody></table></div><br>
<div>Show Complete Compilation Source:</div>
<div><br>
<table width="100%" bgcolor="#ffffcc">
<tbody>
<tr>
<td><code><pre>Line 1: <%--
Line 2: Copyright (C) 2004-2006 Autodesk, Inc.
Line 3: This library is free software; you can redistribute it and/or
Line 4: modify it under the terms of version 2.1 of the GNU Lesser
Line 5: General Public License as published by the Free Software Foundation.
Line 6:
Line 7: This library is distributed in the hope that it will be useful,
Line 8: but WITHOUT ANY WARRANTY; without even the implied warranty of
Line 9: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Line 10: Lesser General Public License for more details.
Line 11:
Line 12: You should have received a copy of the GNU Lesser General Public
Line 13: License along with this library; if not, write to the Free Software
Line 14: Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Line 15: --%>
Line 16:
Line 17: <%@ Import Namespace="System.Collections" %>
Line 18: <%@ Import Namespace="System.IO" %>
Line 19: <%@ Import Namespace="OSGeo.MapGuide" %>
Line 20: <script language="c#" runat="server">
Line 21:
Line 22: NameValueCollection GetParameters()
Line 23: {
Line 24: return Request.HttpMethod == "GET" ? Request.QueryString : Request.Form;
Line 25: }
Line 26:
Line 27: void InitializeWebTier()
Line 28: {
Line 29: // Initialize web tier with the site configuration file. The config
Line 30: // file should be in the same folder as this script.
Line 31: //
Line 32: string realPath = Request.ServerVariables["APPL_PHYSICAL_PATH"];
Line 33: String configPath = realPath + "webconfig.ini";
Line 34: MapGuideApi.MgInitializeWebTier(configPath);
Line 35: }
Line 36:
Line 37: // Searches the map for a layer with the specified name.
Line 38:
Line 39: MgLayer GetLayerByName(MgMap map, String layerName)
Line 40: {
Line 41: MgLayer layer = null;
Line 42: for (int i = 0; i < map.GetLayers().GetCount(); i++)
Line 43: {
Line 44: MgLayer nextLayer = map.GetLayers().GetItem(i);
Line 45: if (nextLayer.GetName() == layerName)
Line 46: {
Line 47: layer = nextLayer;
Line 48: break;
Line 49: }
Line 50: }
Line 51: return layer;
Line 52: }
Line 53:
Line 54: // Read the content from an MgByteReader and send it back as the response.
Line 55: void OutputReaderContent(MgByteReader byteReader, HttpResponse response)
Line 56: {
Line 57: MemoryStream memBuf = new MemoryStream();
Line 58:
Line 59: byte[] byteBuffer = new byte[1024];
Line 60: int numBytes = byteReader.Read(byteBuffer, 1024);
Line 61: while(numBytes > 0)
Line 62: {
Line 63: memBuf.Write(byteBuffer, 0, numBytes);
Line 64: numBytes = byteReader.Read(byteBuffer, 1024);
Line 65: }
Line 66:
Line 67: response.ContentType = byteReader.GetMimeType();
Line 68: byte [] content = memBuf.ToArray();
Line 69: response.OutputStream.Write(content , 0, content.Length);
Line 70: }
Line 71:
Line 72: </script>
Line 73: </pre></code></td></tr></tbody></table></div><span></span><br><br>
<hr width="100%" color="silver" size="1">
<b><font face="Verdana">Version Information:</font></b> Microsoft .NET Framework Version:2.0.50727.42; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://asp.net/" target="_blank">ASP.NET</a> Version:
2.0.50727.42 </font></div></div></blockquote></div><br>