Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Security Exception

Security Exception

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabasecom
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mahmoud Tahoon
    wrote on last edited by
    #1

    Hi I have devloped an asp.net appliaction that uses MS Access DB and tested it successfully on my PC locally, but when i tried to upload the application on Server that i have a rented space on it, i had a security exception when i try to access my DB file, i put it in a separated folder under the root directory, but i had the same error, which is: 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. Can any one help me quickly. My Email is: eng_mahmoud_tahoon@hotmail.com Thank you

    A B 2 Replies Last reply
    0
    • M Mahmoud Tahoon

      Hi I have devloped an asp.net appliaction that uses MS Access DB and tested it successfully on my PC locally, but when i tried to upload the application on Server that i have a rented space on it, i had a security exception when i try to access my DB file, i put it in a separated folder under the root directory, but i had the same error, which is: 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. Can any one help me quickly. My Email is: eng_mahmoud_tahoon@hotmail.com Thank you

      A Offline
      A Offline
      Arvind B
      wrote on last edited by
      #2

      i don't know the exact solution but you can try by adding identity impersonate="true" to u r web.config file also the access file must reside in application domain

      1 Reply Last reply
      0
      • M Mahmoud Tahoon

        Hi I have devloped an asp.net appliaction that uses MS Access DB and tested it successfully on my PC locally, but when i tried to upload the application on Server that i have a rented space on it, i had a security exception when i try to access my DB file, i put it in a separated folder under the root directory, but i had the same error, which is: 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. Can any one help me quickly. My Email is: eng_mahmoud_tahoon@hotmail.com Thank you

        B Offline
        B Offline
        boo
        wrote on last edited by
        #3

        Whenever Access opens a database it creates a temporary working file (.idb) or something like that. Anyway, when your applications access the database it is being opened by the SERVER_MACHINE_NAME/ASP.NET account... more than likely that account doesn't have modify permission on the folder you are saving it in. Usually a hosting company can work with you fairly quickly to eliminate this question by having them tell you whether the account mentioned above has the modify permission on the folder the database is in. Usually hosting companies will have a 'Data' folder that this permission is set on, all the other folders are generally read-only.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups