<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5346.5" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=922522405-04072006><FONT face=Arial><FONT
color=#0000ff size=2>Try adding C:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\mapviewernet\bin to your
Windows path, reboot, and try again.</FONT></FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face=Tahoma size=1>Andy </FONT></SPAN><BR></P>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sukalyan chakraborty
[mailto:chakraborty.sarkar@gmail.com] <BR><B>Sent:</B> Monday, July 03, 2006
10:12 PM<BR><B>To:</B> users@mapguide.osgeo.org<BR><B>Subject:</B> SPAM-LOW:
[mapguide-users] Re: PLease Help He<BR></FONT><BR></DIV>
<DIV></DIV>
<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></BODY></HTML>