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.
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);
}
}
};
ASKER
Ok. Thanks.
This is the error message in response.Text
System.NotSupportedExcepti on: Collection is read-only.
[NotSupportedException: Collection is read-only.]\r\n System.Collections.Special ized.NameO bjectColle ctionBase. BaseSet(St ring name, Object value) +7951630\r\n System.Web.HttpServerVarsC ollection. Synchroniz eServerVar iable(Stri ng name, String value) +237\r\n System.Web.Hosting.IIS7Wor kerRequest .GetServer VarChanges (HttpConte xt ctx) +531\r\n System.Web.Hosting.IIS7Wor kerRequest .Synchroni zeVariable s(HttpCont ext context) +77\r\n System.Web.HttpRuntime.Pro cessReques tNotificat ionPrivate (IIS7Worke rRequest wr, HttpContext context) +671\r\n
This is the error message in response.Text
System.NotSupportedExcepti
[NotSupportedException: Collection is read-only.]\r\n System.Collections.Special
so it look like the problem is not the ajax call but your code behind
http://msdn.microsoft.com/en-us/library/system.collections.specialized.nameobjectcollectionbase.isreadonly(v=vs.71).aspx
http://lmgtfy.com/?q=System.NotSupportedException%3A+Collection+is+read-only.
http://msdn.microsoft.com/en-us/library/system.collections.specialized.nameobjectcollectionbase.isreadonly(v=vs.71).aspx
http://lmgtfy.com/?q=System.NotSupportedException%3A+Collection+is+read-only.
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.
So the question remains what is the difference between my Development Box and my server.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
No Support
if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
{
alert( xmlHttp.responseText );
eval(xmlHttp.responseText)
if (updateProgressMessage)
{
gmap_Id.removeControl(myCo
}
}
};
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