<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY>
<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; I am using&nbsp; VS.net 2005 and MapGuide Open Source 
1.1.0 . The MapGuide I Installed is binary version(the msi).</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; I Create a website in vs.net 2005 ,and copy all the Dll file 
from .net viewer's bin directory to my owen bin .</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; The code I wrote&nbsp; like that, Compiler show the error message at 
"string sessionId = site.CreateSession();"</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial>OSGeo.MapGuide.MgUnclassifiedException: Failed to retrieve 
message for "MgUnclassifiedException".</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Because My MG version is binary version , I can't see the 
defination of the function "CreateSession()" and try to find what error 
happened.</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Am I do wrong somewhere? And how do you find it? I mean 
how do you DEBUG the errors when you develop with MGOS?</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Thanks!</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" 
Inherits="_Default" %&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;%@ Import Namespace="OSGeo.MapGuide" %&gt;<BR>&lt;%</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 
MapGuideApi.MgInitializeWebTier(Server.MapPath(@"webconfig.ini"));<BR>&nbsp;&nbsp;&nbsp; 
MgUserInformation userInfo = new MgUserInformation("Anonymous", 
"");<BR>&nbsp;&nbsp;&nbsp; MgSite site = new MgSite();<BR>&nbsp;&nbsp;&nbsp; 
site.Open(userInfo);<BR>&nbsp;&nbsp;&nbsp; string sessionId = 
site.CreateSession();<BR>&nbsp;&nbsp;&nbsp; string webLayout = 
"Library://Samples/Sheboygan/Layouts/SheboyganAsp.WebLayout";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;%&gt;<BR>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
Transitional//EN" "<A 
href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</A>"&gt;<BR>&lt;html 
xmlns="<A 
href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>"&gt;<BR>&lt;head 
runat="server"&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;title&gt;ÎÞ±êÌâÒ³&lt;/title&gt;<BR>&lt;/head&gt;<BR>&lt;body topmargin=0 
leftmargin=0 rightmargin=0 bottommargin=0&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;iframe 
width=100% height=100% 
src="/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=&lt;%= sessionId 
%&gt;&amp;WEBLAYOUT=&lt;%= webLayout 
%&gt;"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name="ViewerFrame" 
/&gt;<BR>&lt;/body&gt;<BR>&lt;/html&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&nbsp;</DIV></BODY></HTML>