Infrastructure Map Server Developer

Infrastructure Map Server Developer

Reply
New Member
fernando.moreno
Posts: 1
Registered: ‎06-03-2008
Message 1 of 2 (979 Views)

MapGuideApi.MgInitializeWebTier("webconfig.ini")

979 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
benjamim.net
Posts: 4
Registered: ‎05-06-2011
Message 2 of 2 (955 Views)

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
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.