Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - connection strings/config file on webwiz
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

connection strings/config file on webwiz

 Post Reply Post Reply
Author
stuartaylward View Drop Down
Newbie
Newbie


Joined: 11 November 2013
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote stuartaylward Quote  Post ReplyReply Direct Link To This Post Topic: connection strings/config file on webwiz
    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!
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.