473,479 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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.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
4 3093
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
* "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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3324
by: James B | last post by:
OMA (Outlook Mobile Access) under Exchange is giving me a System.Security.SecurityException error. From what I gather this is a problem with the security level under which the OMA application is...
0
539
by: James B | last post by:
OMA (Outlook Mobile Access) under Exchange is giving me a System.Security.SecurityException error. From what I gather this is a problem with the security level under which the OMA application is...
1
1773
by: Dave | last post by:
I have a ASP.net application that work fine with IIS 5.0. I'm trying to put it on IIS 6.0. And getting the following error. ASP is enable It is in a virtual directory - I also follow the...
0
1515
by: Carl Gilbert | last post by:
Hi I am trying to get an online gallery to work (www.ngallery.org). I have managed to get it all working on my local host but I can not get it to work on my web space. The site can be found...
5
2444
by: CyberLotus | last post by:
Hi, I've created a web application and through this I want to import Excel data to database. Following is the code that I've written, ...
5
7718
by: wenning | last post by:
Hello, I am struggling with a website on a W2K3 server which has the actual content on a NAS server (also W2K3 based). The servers doesn't run in a domain and arent intended to. I did make...
0
1409
by: alf | last post by:
I have an app that was running in my local server using full trust, now I moved it to hosting company wish run in Medium trust. Then I get a Security exception (details below) Then I configured...
3
12032
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
1
2789
by: Matt MacDonald | last post by:
Hi all, I've been debating for a while (basically since asp.net 2.0 came out) on using the built in mebership classes to handle user management in my web apps. I seem to keep coming upon...
5
8276
by: Henry Stock | last post by:
I am trying to understand the following error: Any thing you can tell me about this is appreciated. Security Exception Description: The application attempted to perform an operation not allowed...
0
6903
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7027
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7071
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6726
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4763
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2987
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
170
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.