Security Exception - Request Failed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vishal Dattani

    Security Exception - Request Failed

    hi everybody,
    i am developing a project which is made up of three projects.
    1) main project (presentation layer)
    2) data access layer
    3) business logic layer

    the main project references these other project 2 and 3 shown above.
    I have added these projects in a solution and this solution is added to
    source safe.
    the problem is that when i run the project on the machine on which the
    source safe server is created , it runs fine. but when i run it from any
    other machine ( source safe client) then it generates this error:

    "An unhandled exception of type 'SYSTEM.SECURIT Y.SECURITYEXCEP TION' occured
    in mscorlib.dll

    Additional Information : REQUEST FAILED"

    since the additional information is not that informative :-), i am stuck up
    with this problem.

    This error is generated only when my class tries to invoke a method of
    ACTIVATOR.Creat eInstance (tConn)
    If i access other members of my other classes then it runs without any
    error.

    Has this got anything to be done with some permissions, as i dont have much
    idea about how to set these permissions (code access security etc ....) ???

    Please help me out with this.

    thanks and regards,
    Vishal Dattani.




  • Anand[MVP]

    #2
    RE: Security Exception - Request Failed

    You can get a security exception is you are running code from a network share.

    Rgds,
    Anand
    VB.NET MVP


    "Vishal Dattani" wrote:
    [color=blue]
    > hi everybody,
    > i am developing a project which is made up of three projects.
    > 1) main project (presentation layer)
    > 2) data access layer
    > 3) business logic layer
    >
    > the main project references these other project 2 and 3 shown above.
    > I have added these projects in a solution and this solution is added to
    > source safe.
    > the problem is that when i run the project on the machine on which the
    > source safe server is created , it runs fine. but when i run it from any
    > other machine ( source safe client) then it generates this error:
    >
    > "An unhandled exception of type 'SYSTEM.SECURIT Y.SECURITYEXCEP TION' occured
    > in mscorlib.dll
    >
    > Additional Information : REQUEST FAILED"
    >
    > since the additional information is not that informative :-), i am stuck up
    > with this problem.
    >
    > This error is generated only when my class tries to invoke a method of
    > ACTIVATOR.Creat eInstance (tConn)
    > If i access other members of my other classes then it runs without any
    > error.
    >
    > Has this got anything to be done with some permissions, as i dont have much
    > idea about how to set these permissions (code access security etc ....) ???
    >
    > Please help me out with this.
    >
    > thanks and regards,
    > Vishal Dattani.
    >
    >
    >
    >
    >[/color]

    Comment

    • Vishal Dattani

      #3
      Re: Security Exception - Request Failed

      Yes Anand , U R Right. that was the exact problem. as soon as i made a
      working folder on the client machines everything started working fine.

      thanks once again,
      i knew i could count on you people ;)
      regards
      Vishal

      "Anand[MVP]" <AnandMVP@discu ssions.microsof t.com> wrote in message
      news:1B795930-4C19-49CB-917C-3CF0276CABEA@mi crosoft.com...[color=blue]
      > You can get a security exception is you are running code from a network[/color]
      share.[color=blue]
      >
      > Rgds,
      > Anand
      > VB.NET MVP
      > http://www.dotnetindia.com
      >
      > "Vishal Dattani" wrote:
      >[color=green]
      > > hi everybody,
      > > i am developing a project which is made up of three projects.
      > > 1) main project (presentation layer)
      > > 2) data access layer
      > > 3) business logic layer
      > >
      > > the main project references these other project 2 and 3 shown above.
      > > I have added these projects in a solution and this solution is added to
      > > source safe.
      > > the problem is that when i run the project on the machine on which the
      > > source safe server is created , it runs fine. but when i run it from any
      > > other machine ( source safe client) then it generates this error:
      > >
      > > "An unhandled exception of type 'SYSTEM.SECURIT Y.SECURITYEXCEP TION'[/color][/color]
      occured[color=blue][color=green]
      > > in mscorlib.dll
      > >
      > > Additional Information : REQUEST FAILED"
      > >
      > > since the additional information is not that informative :-), i am stuck[/color][/color]
      up[color=blue][color=green]
      > > with this problem.
      > >
      > > This error is generated only when my class tries to invoke a method of
      > > ACTIVATOR.Creat eInstance (tConn)
      > > If i access other members of my other classes then it runs without any
      > > error.
      > >
      > > Has this got anything to be done with some permissions, as i dont have[/color][/color]
      much[color=blue][color=green]
      > > idea about how to set these permissions (code access security etc ....)[/color][/color]
      ???[color=blue][color=green]
      > >
      > > Please help me out with this.
      > >
      > > thanks and regards,
      > > Vishal Dattani.
      > >
      > >
      > >
      > >
      > >[/color][/color]


      Comment

      • Vishal Dattani

        #4
        Re: Security Exception - Request Failed

        Thanks Anand & Herfried,
        U Both R Right. that was the exact problem. as soon as i made a working
        folder for source safe on the client machines everything started working
        fine. Prior to this i was ascessing the files from the server itself whcih
        was causing these problems.

        thanks once again,
        i knew i could count on you people ;-)
        regards
        Vishal

        "Vishal Dattani" <vishal_dattani @yahoo.com> wrote in message
        news:OsedrE#ZEH A.524@TK2MSFTNG P09.phx.gbl...[color=blue]
        > hi everybody,
        > i am developing a project which is made up of three projects.
        > 1) main project (presentation layer)
        > 2) data access layer
        > 3) business logic layer
        >
        > the main project references these other project 2 and 3 shown above.
        > I have added these projects in a solution and this solution is added to
        > source safe.
        > the problem is that when i run the project on the machine on which the
        > source safe server is created , it runs fine. but when i run it from any
        > other machine ( source safe client) then it generates this error:
        >
        > "An unhandled exception of type 'SYSTEM.SECURIT Y.SECURITYEXCEP TION'[/color]
        occured[color=blue]
        > in mscorlib.dll
        >
        > Additional Information : REQUEST FAILED"
        >
        > since the additional information is not that informative :-), i am stuck[/color]
        up[color=blue]
        > with this problem.
        >
        > This error is generated only when my class tries to invoke a method of
        > ACTIVATOR.Creat eInstance (tConn)
        > If i access other members of my other classes then it runs without any
        > error.
        >
        > Has this got anything to be done with some permissions, as i dont have[/color]
        much[color=blue]
        > idea about how to set these permissions (code access security etc ....)[/color]
        ???[color=blue]
        >
        > Please help me out with this.
        >
        > thanks and regards,
        > Vishal Dattani.
        >
        >
        >
        >[/color]


        Comment

        • Vishal Dattani

          #5
          Re: Security Exception - Request Failed

          Yes Anand , U R Right. that was the exact problem. as soon as i made a
          working folder on the client machines everything started working fine.

          thanks once again,
          i knew i could count on you people ;)
          regards
          Vishal

          "Anand[MVP]" <AnandMVP@discu ssions.microsof t.com> wrote in message
          news:1B795930-4C19-49CB-917C-3CF0276CABEA@mi crosoft.com...[color=blue]
          > You can get a security exception is you are running code from a network[/color]
          share.[color=blue]
          >
          > Rgds,
          > Anand
          > VB.NET MVP
          > http://www.dotnetindia.com
          >
          > "Vishal Dattani" wrote:
          >[color=green]
          > > hi everybody,
          > > i am developing a project which is made up of three projects.
          > > 1) main project (presentation layer)
          > > 2) data access layer
          > > 3) business logic layer
          > >
          > > the main project references these other project 2 and 3 shown above.
          > > I have added these projects in a solution and this solution is added to
          > > source safe.
          > > the problem is that when i run the project on the machine on which the
          > > source safe server is created , it runs fine. but when i run it from any
          > > other machine ( source safe client) then it generates this error:
          > >
          > > "An unhandled exception of type 'SYSTEM.SECURIT Y.SECURITYEXCEP TION'[/color][/color]
          occured[color=blue][color=green]
          > > in mscorlib.dll
          > >
          > > Additional Information : REQUEST FAILED"
          > >
          > > since the additional information is not that informative :-), i am stuck[/color][/color]
          up[color=blue][color=green]
          > > with this problem.
          > >
          > > This error is generated only when my class tries to invoke a method of
          > > ACTIVATOR.Creat eInstance (tConn)
          > > If i access other members of my other classes then it runs without any
          > > error.
          > >
          > > Has this got anything to be done with some permissions, as i dont have[/color][/color]
          much[color=blue][color=green]
          > > idea about how to set these permissions (code access security etc ....)[/color][/color]
          ???[color=blue][color=green]
          > >
          > > Please help me out with this.
          > >
          > > thanks and regards,
          > > Vishal Dattani.
          > >
          > >
          > >
          > >
          > >[/color][/color]


          Comment

          • Vishal Dattani

            #6
            Re: Security Exception - Request Failed

            Thanks Anand & Herfried,
            U Both R Right. that was the exact problem. as soon as i made a working
            folder for source safe on the client machines everything started working
            fine. Prior to this i was ascessing the files from the server itself whcih
            was causing these problems.

            thanks once again,
            i knew i could count on you people ;-)
            regards
            Vishal

            "Vishal Dattani" <vishal_dattani @yahoo.com> wrote in message
            news:OsedrE#ZEH A.524@TK2MSFTNG P09.phx.gbl...[color=blue]
            > hi everybody,
            > i am developing a project which is made up of three projects.
            > 1) main project (presentation layer)
            > 2) data access layer
            > 3) business logic layer
            >
            > the main project references these other project 2 and 3 shown above.
            > I have added these projects in a solution and this solution is added to
            > source safe.
            > the problem is that when i run the project on the machine on which the
            > source safe server is created , it runs fine. but when i run it from any
            > other machine ( source safe client) then it generates this error:
            >
            > "An unhandled exception of type 'SYSTEM.SECURIT Y.SECURITYEXCEP TION'[/color]
            occured[color=blue]
            > in mscorlib.dll
            >
            > Additional Information : REQUEST FAILED"
            >
            > since the additional information is not that informative :-), i am stuck[/color]
            up[color=blue]
            > with this problem.
            >
            > This error is generated only when my class tries to invoke a method of
            > ACTIVATOR.Creat eInstance (tConn)
            > If i access other members of my other classes then it runs without any
            > error.
            >
            > Has this got anything to be done with some permissions, as i dont have[/color]
            much[color=blue]
            > idea about how to set these permissions (code access security etc ....)[/color]
            ???[color=blue]
            >
            > Please help me out with this.
            >
            > thanks and regards,
            > Vishal Dattani.
            >
            >
            >
            >[/color]


            Comment

            Working...