Link to home
Start Free TrialLog in
Avatar of qz2rg4
qz2rg4

asked on

Subgurim click event not firing on IIS7 but does work in development environment

All works fine in my development environment but in IIS7 Integrated mode I get the following script error when I click on the map.
Microsoft JScript runtime error: Syntax error on line eval(xmlHttp.responseText);
I also want to note that the rest of the control seems to be working fine on the production server ie: scrollzoom , search ,doubleclick zoom,etc.
function () { 
if (xmlHttp.readyState == 4 && xmlHttp.status == 200)  
{ 
eval(xmlHttp.responseText);
if (updateProgressMessage)  
{ 
gmap_Id.removeControl(myControl); 
} 
} 
};

Open in new window

Avatar of leakim971
leakim971
Flag of Guadeloupe image

function () {
if (xmlHttp.readyState == 4 && xmlHttp.status == 200)  
{
alert( xmlHttp.responseText );
eval(xmlHttp.responseText);
if (updateProgressMessage)  
{
gmap_Id.removeControl(myControl);
}
}
};

what do you get in the alert? undefined?
are you doing a cross domain ajax call?
you're not allowed to do a call to page which have not the same domain or protocol than your page
Avatar of qz2rg4
qz2rg4

ASKER

Ok. Thanks.

This is the error message in response.Text

System.NotSupportedException: Collection is read-only.

[NotSupportedException: Collection is read-only.]\r\n   System.Collections.Specialized.NameObjectCollectionBase.BaseSet(String name, Object value) +7951630\r\n   System.Web.HttpServerVarsCollection.SynchronizeServerVariable(String name, String value) +237\r\n   System.Web.Hosting.IIS7WorkerRequest.GetServerVarChanges(HttpContext ctx) +531\r\n   System.Web.Hosting.IIS7WorkerRequest.SynchronizeVariables(HttpContext context) +77\r\n   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +671\r\n
Avatar of qz2rg4

ASKER

Hi it does look like a AJAX problem for there is a property in Subgurem.net control where you can set serverEventType to AspNetPostback or GMapAjax. AspNetPostback works but when I choose GMapAjax I receive the error. Sure it might be in the code behind but I don't have access to the Subgurim.net control source.

So the question remains what is the difference between my Development Box and my server.
ASKER CERTIFIED SOLUTION
Avatar of qz2rg4
qz2rg4

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of qz2rg4

ASKER

No Support