Opened 15 years ago

Closed 15 years ago

#2952 closed defect (invalid)

Hosting dosn't allow (new mapObj(path))

Reported by: AALjhr Owned by: AALjhr
Priority: highest Milestone:
Component: MapScript Version: unspecified
Severity: normal Keywords: host hosting godaddy new mapObj
Cc:

Description

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.

Regards,

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.AppSettingsmapFilePath.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"

best regards

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\THE END/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

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# :)

Change History (3)

comment:1 by AALjhr, 15 years ago

Priority: normalhighest

comment:2 by AALjhr, 15 years ago

Owner: changed from sdlime to AALjhr
Status: newassigned

comment:3 by sdlime, 15 years ago

Resolution: invalid
Status: assignedclosed

This isn't a MapServer bug so it shouldn't be in Trac. You should really take this to the MapServer user list for discussion.

Steve

Note: See TracTickets for help on using tickets.