# How to contact Web.Config in Medium Trust?

Posting my first halfway decent sized internet application to my common host gave me with a fresh set of obstacles, through which I suggest, sleep deprived evenings. The concern was that I had most absolutely not created my application for medium trust (or had any kind of idea what that was. )

I minimized every one of the concerns, conserve one.

I had actually created an installer for the admin to be able to define their link string and also various other choices, yet I can not locate a means to contact a web.config in medium trust. Does any person have a remedy, or should I simply be placing choices in an additional documents?

0
2019-05-07 13:20:07
Source Share

That in fact seems like IIS's Low degree. If it is, after that you will not have the ability to contact any kind of documents, not simply the web.config.

Below are the degrees from IIS's aid documents:

• Full (inner) - Specifies unlimited approvals. Grants the ASP.NET application approvals to access any kind of source that undergoes running system protection. All blessed procedures are sustained.
• High (web_hightrust. config) - Specifies a high degree of code accessibility protection, which suggests that the application can refrain any kind of among the adhering to points by default :
• Call unmanaged code.
• Call serviced parts.
• Contact the occasion log.
• Accessibility Message Queuing solution lines up.
• Accessibility ODBC, OleDb, or Oracle information resources.
• Tool (web_mediumtrust. config) - Specifies a tool degree of code accessibility protection, which suggests that, along with High Trust Level constraints, the ASP.NET application can refrain any one of the adhering to points by default :
• Access documents outside the application directory site.
• Accessibility the computer system registry.
• Make network or Web solution telephone calls.
• Reduced (web_lowtrust. config) - Specifies a reduced degree of code accessibility protection, which suggests that, along with Medium Trust Level constraints, the application can refrain any one of the adhering to points by default :
• Write to the documents system.
• Call the Assert method.
• Marginal (web_minimaltrust. config) - Specifies a marginal degree of code accessibility protection, which suggests that the application has just execute approvals.

I would certainly recommend that if you are dead set on having an installer, have it create a web.config in memory that the customer can conserve in your area and also FTP up later.

0
2019-05-09 08:15:08
Source