Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 730
  • Last Modified:

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

0
qz2rg4
Asked:
qz2rg4
  • 4
  • 2
1 Solution
 
leakim971PluritechnicianCommented:
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
0
 
qz2rg4Author Commented:
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
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
qz2rg4Author Commented:
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.
0
 
qz2rg4Author Commented:
Could not resolve problem. Had no support from the Subgurim Guys. Desided to use a different 3rd party control.
0
 
qz2rg4Author Commented:
No Support
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now