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. Enterprise Library

Enterprise Library

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netwindows-adminsecurity
11 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.
  • B Offline
    B Offline
    BECK7
    wrote on last edited by
    #1

    Hi, i need help with this. Im using the enterprise library in my asp.net application. I made a web service that uses it. But when i try to test the web service i receive the next error: System.TypeInitializationException: The type initializer for "Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent" threw an exception. ---> System.Security.SecurityException: Requested registry access is not allowed. I have looked for this in google, and i have found that i should give access and permissions to the folder event log in Registry Editor\system\currentcontrolset\services. But i dont have the permissions option when i rigth click on this folder. What kind i do with this error? What else u recommend me?

    C 1 Reply Last reply
    0
    • B BECK7

      Hi, i need help with this. Im using the enterprise library in my asp.net application. I made a web service that uses it. But when i try to test the web service i receive the next error: System.TypeInitializationException: The type initializer for "Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent" threw an exception. ---> System.Security.SecurityException: Requested registry access is not allowed. I have looked for this in google, and i have found that i should give access and permissions to the folder event log in Registry Editor\system\currentcontrolset\services. But i dont have the permissions option when i rigth click on this folder. What kind i do with this error? What else u recommend me?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The option is called 'security'. Having said that, your exception is not about file system access, it's about access to the registry. Christian Graus - Microsoft MVP - C++

      B 1 Reply Last reply
      0
      • C Christian Graus

        The option is called 'security'. Having said that, your exception is not about file system access, it's about access to the registry. Christian Graus - Microsoft MVP - C++

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

        Ok, im run regedit...and in the folder EventLog i see this options: Expand New Find... Delete Rename Copy Key Name I dont see the option "security", i guess im in other folder....

        C 1 Reply Last reply
        0
        • B BECK7

          Ok, im run regedit...and in the folder EventLog i see this options: Expand New Find... Delete Rename Copy Key Name I dont see the option "security", i guess im in other folder....

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Ah... sorry, I thought you were looking at a FOLDER, you're looking at registry keys. There is indeed an option called 'permissions'. Are you running as admin, perhaps it's hidden from you ? Christian Graus - Microsoft MVP - C++

          B 1 Reply Last reply
          0
          • C Christian Graus

            Ah... sorry, I thought you were looking at a FOLDER, you're looking at registry keys. There is indeed an option called 'permissions'. Are you running as admin, perhaps it's hidden from you ? Christian Graus - Microsoft MVP - C++

            B Offline
            B Offline
            BECK7
            wrote on last edited by
            #5

            Yea, im a user administrator of the server. Its not hidden, i mean its not even disable, this option just doesnt appear. If it helps, i can see this option running regedt32, but i gave to it the permissions for the aspnet user of the server...but still doesnt work, i receive the same error...i guess its on regedit, but i dont see the option "permissions"... thanks..

            C 1 Reply Last reply
            0
            • B BECK7

              Yea, im a user administrator of the server. Its not hidden, i mean its not even disable, this option just doesnt appear. If it helps, i can see this option running regedt32, but i gave to it the permissions for the aspnet user of the server...but still doesnt work, i receive the same error...i guess its on regedit, but i dont see the option "permissions"... thanks..

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              BECK7 wrote: i guess its on regedit, but i dont see the option "permissions"... Well, if you set it in regedt32, then it's set. I dunno what's up with regedit tho, it's not like you'd have a different version to me. Christian Graus - Microsoft MVP - C++

              B 1 Reply Last reply
              0
              • C Christian Graus

                BECK7 wrote: i guess its on regedit, but i dont see the option "permissions"... Well, if you set it in regedt32, then it's set. I dunno what's up with regedit tho, it's not like you'd have a different version to me. Christian Graus - Microsoft MVP - C++

                B Offline
                B Offline
                BECK7
                wrote on last edited by
                #7

                i set it in regdt32, but its not still working...how u get into the option permissions? what way u take? maybe im lost....

                C 1 Reply Last reply
                0
                • B BECK7

                  i set it in regdt32, but its not still working...how u get into the option permissions? what way u take? maybe im lost....

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  BECK7 wrote: i set it in regdt32, but its not still working... Then the user is not the asp.net user, or some other problem exists. BECK7 wrote: how u get into the option permissions? Right click on the folder icon, permissions is in the menu. Christian Graus - Microsoft MVP - C++

                  B 1 Reply Last reply
                  0
                  • C Christian Graus

                    BECK7 wrote: i set it in regdt32, but its not still working... Then the user is not the asp.net user, or some other problem exists. BECK7 wrote: how u get into the option permissions? Right click on the folder icon, permissions is in the menu. Christian Graus - Microsoft MVP - C++

                    B Offline
                    B Offline
                    BECK7
                    wrote on last edited by
                    #9

                    I dont see the option...is it other way to do this?

                    C 1 Reply Last reply
                    0
                    • B BECK7

                      I dont see the option...is it other way to do this?

                      C Offline
                      C Offline
                      Christian Graus
                      wrote on last edited by
                      #10

                      I have no idea why you can't see it, but I don't see the problem. You only have one registry, both programs access it, it doesn't matter which one you use to set the permissions. If it doesn't work, you did it wrong, or there is another problem. Set it so anyone can use it, including anonymous users, then see if it works. Christian Graus - Microsoft MVP - C++

                      B 1 Reply Last reply
                      0
                      • C Christian Graus

                        I have no idea why you can't see it, but I don't see the problem. You only have one registry, both programs access it, it doesn't matter which one you use to set the permissions. If it doesn't work, you did it wrong, or there is another problem. Set it so anyone can use it, including anonymous users, then see if it works. Christian Graus - Microsoft MVP - C++

                        B Offline
                        B Offline
                        BECK7
                        wrote on last edited by
                        #11

                        I did an IISReset and worked!!! Unbelieveable, uh? Thanks for all the help..

                        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