<!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> </DIV>
<DIV> I am using VS.net 2005 and MapGuide Open Source
1.1.0 . The MapGuide I Installed is binary version(the msi).</DIV>
<DIV> </DIV>
<DIV> 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> </DIV>
<DIV> The code I wrote like that, Compiler show the error message at
"string sessionId = site.CreateSession();"</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial>OSGeo.MapGuide.MgUnclassifiedException: Failed to retrieve
message for "MgUnclassifiedException".</FONT></DIV>
<DIV><FONT face=Arial></FONT> </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> </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> </DIV>
<DIV>
Thanks!</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %></DIV>
<DIV> </DIV>
<DIV><%@ Import Namespace="OSGeo.MapGuide" %><BR><%</DIV>
<DIV> </DIV>
<DIV>
MapGuideApi.MgInitializeWebTier(Server.MapPath(@"webconfig.ini"));<BR>
MgUserInformation userInfo = new MgUserInformation("Anonymous",
"");<BR> MgSite site = new MgSite();<BR>
site.Open(userInfo);<BR> string sessionId =
site.CreateSession();<BR> string webLayout =
"Library://Samples/Sheboygan/Layouts/SheboyganAsp.WebLayout";<BR>
<BR> %><BR><!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>"><BR><html
xmlns="<A
href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>"><BR><head
runat="server"><BR>
<title>ÎÞ±êÌâÒ³</title><BR></head><BR><body topmargin=0
leftmargin=0 rightmargin=0 bottommargin=0><BR> <iframe
width=100% height=100%
src="/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=<%= sessionId
%>&WEBLAYOUT=<%= webLayout
%>"<BR> name="ViewerFrame"
/><BR></body><BR></html></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR> </DIV></BODY></HTML>