• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3854
  • Last Modified:

ASP.NET application trust level from the web.config file

Hi,

I want that my ASP.NET application run on the FUL trust level but in the shared hosting environment it is not possible so what configuration i do for my web.config file so i can run my application.

Cani change my application trust level at run time How?

Now my application compile in the Full trust level but now i wnt it run in medium trust level this is possible through the web.config file HOw??

ERROR
[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   
0
Sam Panwar
Asked:
Sam Panwar
  • 3
1 Solution
 
naveenkohliCommented:
Is there any reason that you want full trust level? What is that you are trying to do that triggered Ssecurity exception? Instead of runing your app in full trust level, you should ask your self do I really need it?

hosting provider will never allow anybody mucking with the secutity permissions on their server. Once they give you full access, they can jeoprdize other hosted apps security.

If you can narrow down your requirements to minimum possible level and explain it to hosting provider they may be able to put your app in a separate pool and configure the security accordingly.
0
 
Sam PanwarSr. Server AdministratorAuthor Commented:
Hi,

Actually I have server access and i also try with the another pool so i want how to possible through the web.config file .
IF our server only support midium trust level.then how to change run time my application trust level as server trust level.??
0
 
Sam PanwarSr. Server AdministratorAuthor Commented:
Hi,

I got the solution of it .

In shared hosting environment its so difficult. and dedicted server its run.

we can use full trust in the web.config file in the domain folder in shared hosting but trust level not enable in machine config file so its not possible.

Close it ....
0
 
Sam PanwarSr. Server AdministratorAuthor Commented:

Can i get point this solution yourself.
0
 
CetusMODCommented:
PAQed with points refunded (500)

CetusMOD
Community Support Moderator
0

Featured Post

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.

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