Infrastructure Map Server Developer

Infrastructure Map Server Developer

Reply
New Member
1 Posts
0 Kudos
Registered: ‎06-03-2008
Post 1 of 2

MapGuideApi.MgInitializeWebTier("webconfig.ini")

1018 Views, 1 Replies
04-25-2011 11:54 AM

lines of code from a test project, the bold line is giving an error when you try to run era and by working station.I note that on my machine that has the server installed maps is working perfectly and all the DLLs. NET, DLLs that are installed with the map server, the bin folder of the project, as recommended by several forums that I researched.

  

MapGuideApi.MgInitializeWebTier("webconfig.ini");
MgUserInformation userInfo = new MgUserInformation("Anonymous", "");
MgSite site = new MgSite();
site.Open(userInfo);
String sessionId = site.CreateSession();
String webLayout = "Library://Exercise/Layouts/SheboyganAsp_2.WebLayout";

 

 

System.TypeInitializationException was unhandled by user code
Message="O inicializador de tipo de 'OSGeo.MapGuide.MapGuideApiPINVOKE' acionou uma exceção."
Source="OSGeo.MapGuide.Web"
TypeName="OSGeo.MapGuide.MapGuideApiPINVOKE"
StackTrace:
em OSGeo.MapGuide.MapGuideApiPINVOKE.MgInitializeWebTier(String jarg1)
em OSGeo.MapGuide.MapGuideApi.MgInitializeWebTier(String configFile)
em ASP.default_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) na c:\Temp\MapGuide\Exercise2\Default.aspx:linha 8
em System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
em System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
em System.Web.UI.Control.Render(HtmlTextWriter writer)
em System.Web.UI.Page.Render(HtmlTextWriter writer)
em System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
em System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
em System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
em System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Is there some setting in webconfig.ini that should be changed to use a machine other than the map server, and the server's IP?

Member
4 Posts
0 Kudos
Registered: ‎05-06-2011
Post 2 of 2

Re: MapGuideApi.MgInitializeWebTier("webconfig.ini")

05-10-2011 12:02 PM in reply to: fernando.moreno
I solved this same problem by copying all the dll's that are in the installation of MapGuide :smileywink: !
C:\Program Files\Autodesk\MapGuideEnterprise2011\WebServerExtensions\www\mapviewernet\bin
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post