That's nice of them :) Did you update the files in your web app's bin directory with those from the MG 2010 release?
Jason ________________________________________ From: Jamo Sent: Monday, May 04, 2009 7:42 PM To: mapguide-users@lists.osgeo.org Subject: [mapguide-users] Server 2008 IIS7 ASP.Net 2.0 Error when editing SDF OK I have been given a whole server for MapGuide a windwos Server 2008 with IIS 7. I've installed the latest release from autodesk MapGuide enterprise 2010, code ahs been produced with MapGuide Opensource 2.02 .... maybe a problem there? My problem at the moment is an application that has been working under windows server 2003 ... don't know if this actually has anything to do with it. I keep getting this in the server log when I run the code. Application Log- Faulting application w3wp.exe, version 7.0.6001.18000, time stamp 0x47919413, faulting module ntdll.dll, version 6.0.6001.18000, time stamp 0x4791a7a6, exception code 0xc0000374, fault offset 0x000b015d, process id 0xe6c, application start time 0x01c9cd28a1eaf714. System Log- A process serving application pool 'DefaultAppPool' suffered a fatal communication error with the Windows Process Activation Service. The process id was '1432'. The data field contains the error number. As far as I can tell mapguide is installed and functioning correctly. Layouts work Properties work etc. This is the code... it simply cahnges 1 property on the current feature. works in OS Mapguide 2.02... maybe not gonna work here? <%@ Page Language="C#" ValidateRequest="false" Debug="true" %> <%@ Import Namespace="System" %> <%@ Import Namespace="System.IO" %> <%@ Import Namespace="System.Collections.Specialized" %> <%@ Import Namespace="System.Text" %> <!-- #Include File="../../../mapviewernet/common.aspx --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> <script runat="server"> String mapName = ""; String sessionId = ""; String StaffMember = ""; String mySelXML = ""; String layerName = ""; </script> </head> <% //get curretn selection Response.Charset = "utf-8"; InitializeWebTier(); GetRequestParameters(); MgUserInformation cred = new MgUserInformation(sessionId); //connect to the site and get a feature service and a resource service instances MgSiteConnection site = new MgSiteConnection(); site.Open(cred); MgResourceService resourceSrvc = site.CreateService(MgServiceType.ResourceService) as MgResourceService; MgFeatureService featureSrvc = site.CreateService(MgServiceType.FeatureService) as MgFeatureService; //Create a temporary map runtime object, locate the layer MgMap map = new MgMap(); map.Open(resourceSrvc, mapName); //MgSelectionBase mySel = new MgSelectionBase(map, mySelXML); MgLayerBase currentLayer = map.GetLayers().GetItem(layerName); String currentClassName = currentLayer.GetFeatureClassName(); MgSelection newSel = new MgSelection(map); String filterSelection = new MgSelection(map, mySelXML).GenerateFilter(currentLayer, currentClassName); MgFeatureQueryOptions currentQry = new MgFeatureQueryOptions(); //set filter to include current layername and filter current selection MgResourceIdentifier currentResourceId = new MgResourceIdentifier(currentLayer.GetFeatureSourceId()); currentQry.SetFilter(filterSelection); //Double FIDDouble = 22; MgPropertyCollection insertProperties = new MgPropertyCollection(); //Response.Write(FIDDouble.ToString()); MgStringProperty mgProp = new MgStringProperty("StaffMember", StaffMember); Response.Write(mgProp.Value.ToString()); insertProperties.Add(mgProp); MgFeatureCommandCollection commands = new MgFeatureCommandCollection(); commands.Add(new MgUpdateFeatures(currentClassName, insertProperties, filterSelection)); MgPropertyCollection updatedProps = featureSrvc.UpdateFeatures(currentResourceId, commands, false); Response.Write(" " + filterSelection); map.Save(); %> <body> </body> </html> <script runat=server> void GetRequestParameters() { if (Request.HttpMethod == "GET") { GetParameters(Request.QueryString); } } void GetParameters(NameValueCollection parameters) { mapName = GetParameter(parameters, "MAPNAME"); sessionId = GetParameter(parameters, "SESSIONID"); StaffMember = GetParameter(parameters, "StaffMember"); mySelXML = GetParameter(parameters, "SELXML"); layerName = GetParameter(parameters, "layerName"); } </script> Another thing is I had to change one of my start parameters for loading my own property panes from ../mapguide2010/mapviewerajax/propertyctrl.aspx to ../mapguide2010/mapviewerajax/propertyctrl.php ?? wierd considering there is no ../mapguide2010/mapviewerajax/propertyctrl.aspx ...? I'm confused.... -- View this message in context: http://n2.nabble.com/Server-2008-IIS7-ASP.Net-2.0-Error-when-editing-SDF-tp2790767p2790767.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users_______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users