Ticket #2952 (closed defect: invalid)
Hosting dosn't allow (new mapObj(path))
|Reported by:||AALjhr||Owned by:||AALjhr|
|Severity:||normal||Keywords:||host hosting godaddy new mapObj|
i'm trying to host my web-application in (godaddy.com) but the thing is that thay have some securty limitation to use somthing like mapObj map = new mapObj(path); i sent this email to the support team & this is what thay replay to me
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/THE EMAIL\/\/\/\/\/\/\/\/\/\/ Support Staff Response Dear AALjhr,
Thank you for contacting Online Support. You are receiving this error due to medium trust level on our Windows hosting accounts. Our ASP.NET 3.5 shared hosting servers use the default Medium trust level with thе additiоn of OlеDbРermiѕѕion?, OdbcPermission?, and a less-restrictive WebPermission?.
Applications operating under a Medium trust level have no registry accеss, no аccеѕs to thе Wіndows event log, and cannot use ReflectionPermission? (but can use Reflection). Such applications can communicate only with a defined range of network addresses and file system access is limited to the application's virtual directory hierarchy.
Using a Medium trust level prеvents aрpliсаtionѕ frоm accessing shared system resources and eliminates the potential for application interference. Adding OleDbPermission? and OdbcPermission? allows applications to use those data providers to access databases. WebPermission? is modified to allow outbound http and https traffic.
Please let us know if we can assist you in any other way.
Andrea P. Online Support Representative
\/\/\/\/\/\/\/\/\/\/\/\/ Customer Inquiry Name : AALjhr i'm trying to get my application to work .. but i have some problems.. i'm publishing it on the folder "/LJHR" and i'm using (MapServer) libraries from (www.mapserver.org) and it requires to put all map's configurations in a(*.map) file it also needs to put this file's fall path in the web.confg file. i tried something like : //========================================= string ServerPath? = Server.MapPath?("."); string FilePath? = System.Configuration.ConfigurationManager?.AppSettings?mapFilePath?.ToString?(); string path = Path.GetFullPath?(ServerPath? + FilePath?); map = new mapObj(path); //==========================================
but the problem is that when i try that it gives me sort of (Security Exception) error!!
the app's URL is "www.ibraheiem.com/LJHR"
So now dose any body have a sollotion for this proplem? do i have to try another hoser ?
thank you all
by the way .. my app is written in C# :)