By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,515 Members | 1,110 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,515 IT Pros & Developers. It's quick & easy.

Security Exception - Request Failed

P: n/a
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.SECURITY.SECURITYEXCEPTION' 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.CreateInstance (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.


Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
You can get a security exception is you are running code from a network share.

Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com

"Vishal Dattani" wrote:
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.SECURITY.SECURITYEXCEPTION' 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.CreateInstance (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.


Nov 20 '05 #2

P: n/a
* "Vishal Dattani" <vi************@yahoo.com> scripsit:
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.SECURITY.SECURITYEXCEPTION' 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.CreateInstance (tConn)
If i access other members of my other classes then it runs without any
error.


Is one of the referenced assemblies placed on a network drive?

..NET Framework Enterprise Security Policy Administration and Deployment
<URL:http://msdn.microsoft.com/library/en-us/dnnetsec/html/entsecpoladmin.asp>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3

P: n/a
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]" <An******@discussions.microsoft.com> wrote in message
news:1B**********************************@microsof t.com...
You can get a security exception is you are running code from a network share.
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com

"Vishal Dattani" wrote:
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.SECURITY.SECURITYEXCEPTION' 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.CreateInstance (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.


Nov 20 '05 #4

P: n/a
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" <vi************@yahoo.com> wrote in message
news:Os*************@TK2MSFTNGP09.phx.gbl...
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.SECURITY.SECURITYEXCEPTION' 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.CreateInstance (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.

Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.