Re: Urgent: Error While deploying ASP.net application



Hi,

set the trust level to medium on your development machine to figure out what is going wrong..

Stuff like Win32 APIs, COM, EventLog, Registry, File Access outside the web dir is a no go in medium trust (amongst many other things).

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Hello everybody,
I have develoved a asp.net application, it is running fine in
developmnet
environment. But when I deploy it on hosting server, the following
error
message was displaying during browsing the site:
--------------------------------------------------------------
Security Exception
Description: The application attempted to perform an operation not
allowed
by the security policy. To grant this application the required
permission
please contact your system administrator or change the application's
trust
level in the configuration file.
Exception Details: System.Security.SecurityException: Request failed.
----------------------------------------------------------------------
---------------
Then I contacted to hosting support they said their sever is
configured to
trust level medium.
If I added following lines in my web.config:

<trust level="Full" originUrl=""/>

Then it is not allowed because the hosters has set this setting in
machine.config <location allowOverride="false">

So Please suggest me that how can I run my ASP.net site on hosting
server in medium trust level.



.



Relevant Pages

  • Re: Urgent: Error While deploying ASP.net application
    ... Actually I am using MySQL database using MySQL ODBC 3.51 Driver. ... I think the trust level medium does not allow database interaction through ... > set the trust level to medium on your development machine to figure out what ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Urgent: Error While deploying ASP.net application
    ... Dominick Baier - DevelopMentor ... I have set trust level to medium on on development machine and found that the pages which are not using database interaction are displaying but pages which interacting with database are giving secrity errror issue. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: reading web.config section
    ... they just repeat and repeat that the server has Medium Level. ... where the security level is Medium. ... and to any config files above it in the same application. ... You may need to set your applications trust level accordingly: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Custom Web Part
    ... That statement sets your working page to a certain trust level. ... > If you add your references to the minimal but your web config is using the ... > medium one then you can see the problem there." ... > sure where the trust level is set or what "If you add your references to the ...
    (microsoft.public.sharepoint.portalserver.development)
  • File upload problem
    ... I want to upload *.jpg files to server using FileUpload control. ... Hosting is ... shared and administrator informed me that I have to use medium trust level ...
    (microsoft.public.dotnet.framework.aspnet)