Ciao a tutti,
ho un problema con una libreria scaricata da qui: http://www.codeproject.com/KB/custom...pGeocoder.aspx e a cui lo sviluppatore non da segni di risposta![]()
Allora mi spiego...
Ho scaricato quel codice che ho utilizzato per geolocalizzare alcuni indirizzi, per poi "plottarli" su una mappa (vedi esempio funzionante qui: www.magimax.it/gico2 - su server Aruba)
Poi ho spostato tutto sul server di produzione (www.gico.ws) e non funziona più, forse a causa di qualche limitazione di sicurezza di Register.
L'errore che ricevo durante la comunicazione con il server di Google per la geolocalizzazione è il seguente:
System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Obj ect demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint)
at System.Net.HttpRequestCreator.Create(Uri Uri)
at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)
at System.Net.WebRequest.Create(String requestUriString)
at GMapGeocoder.Util.GetXml(String address, String key)
at html_aspx_index.Page_Load(Object sender, EventArgs e) in \\wagner\wwwroot$\ mysite.ws\index.aspx.cs:line 34
The action that failed was:
Demand
The type of the first permission that failed was:
System.Net.WebPermission
The Zone of the assembly that failed was:
Internet
Non saprei da dove cominciare... sapete darmi una mano ?
Grazie,
L

Rispondi quotando