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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. connection string for medium trust level

connection string for medium trust level

Scheduled Pinned Locked Moved ASP.NET
helphostingsecurityannouncementworkspace
3 Posts 2 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.
  • A Offline
    A Offline
    ash04
    wrote on last edited by
    #1

    Any one can please help me... i have medium trust level for our dot net application from hosting. I am using the connection string as : "Provider=SQLOLEDB;User ID=user1;Password=****; Data Source=;Initial Catalog=mynewdb" I am getting error as : 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. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, failed. do I need to change provider or what in the connection string, please suggest. Thanks in advance

    DAsh04

    A 1 Reply Last reply
    0
    • A ash04

      Any one can please help me... i have medium trust level for our dot net application from hosting. I am using the connection string as : "Provider=SQLOLEDB;User ID=user1;Password=****; Data Source=;Initial Catalog=mynewdb" I am getting error as : 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. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, failed. do I need to change provider or what in the connection string, please suggest. Thanks in advance

      DAsh04

      A Offline
      A Offline
      Anand Desai
      wrote on last edited by
      #2

      This seems like u dont have permission to connect to database. contact ur DBA

      Anand Desai Developer Atharva Infotech

      A 1 Reply Last reply
      0
      • A Anand Desai

        This seems like u dont have permission to connect to database. contact ur DBA

        Anand Desai Developer Atharva Infotech

        A Offline
        A Offline
        ash04
        wrote on last edited by
        #3

        thanks for reply, but it is not the case, i have permission. it is related with medium trust level security.

        DAsh04

        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