Print Page | Close Window

connection strings/config file on webwiz

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=30884
Printed Date: 28 March 2026 at 1:39pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: connection strings/config file on webwiz
Posted By: stuartaylward
Subject: connection strings/config file on webwiz
Date Posted: 11 November 2013 at 11:38am
Hi,

I'm trying to use a connection string in the config file to a database file (.mdf) in the App_Code dir.

This is working fine locally but once uploaded to webwiz i get the following error...

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.

Can anyone point me in the right direction please? 

Much appreciated!



Replies:
Posted By: WebWiz-Bruce
Date Posted: 11 November 2013 at 12:31pm
To use an Access database with ASP.NET you need to place the application in to Full Trust.

The page below has information on how you would do this:-

http://www.webwiz.net/kb/web-hosting/changing-asp.net-trust-level.htm" rel="nofollow - http://www.webwiz.net/kb/web-hosting/changing-asp.net-trust-level.htm


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net