<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I went back and double-checked the error I
get when the wrong version of .Net is set. It gives roughly the same
error as you are seeing, but the compiler errors are different. And I see
now that yours was already naming .Net 2.0. So that’s not the
problem.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Then I removed all of the files in dotnetviewersample\bin
and tried the sample again. I get the exact same error messages you are
seeing. So the solution made earlier by Shailesh may work for you. If
you haven’t already checked that, make sure you have copied all of the
files from mapviewernet\bin into dotnetviewersample\bin.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Good luck,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>John<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> sukalyan
chakraborty [mailto:chakraborty.sarkar@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, June 30, 2006 8:19
AM<br>
<b><span style='font-weight:bold'>To:</span></b> users@mapguide.osgeo.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [mapguide-users]
PLease Help He</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>But John till now getting the same error <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Look My Point:<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I'm Successfully running the pages through MGStudio using <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><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><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>but it is giving error when i'm trying some sample pages using<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><a href="http://127.0.0.1/mapguide/">http://127.0.0.1/mapguide/</a>
..... /pagename.aspx<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>such as dotnetviewer sample.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>also when i'm browsing the path<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>C:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\mapviewernet<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>from IIS Window then also giving the error but it different ..<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>it then tells that Invalid username Or password .<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>the authentication window is not comming..<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Please Help how Can I Get The Soltion.... Please...<br>
<br>
<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 6/30/06, <st1:PersonName w:st="on"><b><span
style='font-weight:bold'>John Cachat</span></b></st1:PersonName> <<a
href="mailto:jcachat@agti.com">jcachat@agti.com</a>> wrote:</span></font></span>
<o:p></o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>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., <st1:Street w:st="on"><st1:address
w:st="on">51 Franklin St</st1:address></st1:Street>, Fifth Floor, <st1:place
w:st="on"><st1:City w:st="on">Boston</st1:City>, <st1:State w:st="on">MA</st1:State> <st1:PostalCode
w:st="on">02110-1301</st1:PostalCode> <st1:country-region w:st="on">USA</st1:country-region></st1:place><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><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>