473,782 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
+ 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.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.


Nov 20 '05 #1
4 3105
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.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.


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


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******@discu ssions.microsof t.com> wrote in message
news:1B******** *************** ***********@mic rosoft.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.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.


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******** *****@TK2MSFTNG P09.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.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.

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3366
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 trying to run. Anyone got some ideas on where I can start in getting this worked out? I've posted in Exchange but I'm thinking this group may actually have more ideas. Security Exception Description: The application attempted to perform an...
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 trying to run. Anyone got some ideas on where I can start in getting this worked out?. Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required...
1
1796
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 direction in Microsoft Knowledge Base Article - 320268
0
1539
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 at www.gallerox.com which should re-direct to www.gallerox.com/gallerox/default.aspx I have put the bin directory in the /gallerox folder as I have a re-director
5
2466
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, ******************************************************************* string fileLocation = txtboxFileName.Text.ToString(); string sheetName = "Import"; string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data
5
7779
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 the web space on the W2K3 IIS Server and pointed it to the NAS server via an UNC path (no virtual directory). When I place the content on the IIS, everything works fine, but when I
0
1433
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 my local server to run in Medium level, trying to catch the problem in the app. The problem is that the behavior is random !! sometime all pages run succesfully, but some time I get the exception in any page. I'm trying to find a way to debug the...
3
12061
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 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (machine.config) ---> System.Security.SecurityException: Request for the permission of type
1
2806
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 roadblocks that keep me from jumping in. Well this time is no different. While trying to use an asp.net sqlmembershipprovider to create a new user, I get the following error: Server Error in '/' Application....
5
8337
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 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: for the permission of type
0
9641
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.