473,750 Members | 2,253 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Permissions

I am wondering if anyone can help me out with this one. Here goes....... I
have my local machine (Windows XP framework 1.1) and a Server (Windows 2003
framework 1.1). When I go to run my code on my box and late bind to a dll on
the server machine I get an error. Below is the lines of code and the error
I get. I have no problem accessing the Reports.dll so it should not be a
security problem. I get the error when I try to run the class rptBadge. I am
getting a RegistryPermiss ion error. Here is some background on the
class..... I am extending from a class from a 3rd party. We have paid for
the product and I am wondering if it has something to do with that. The
third party might have some information in the registry and I don't have
permissions to read the registry.

Any help would be appreciated.

System.Reflecti on.Assembly ControlAssembly =
System.Reflecti on.Assembly.Loa dFrom("\\Server 1\Reports\outpu t\Reports.dll") ;

report =
(ExpoExchange.R egistration.Com mon.Business.Pr oductionActiveR eportBase)
ControlAssembly .CreateInstance ("Reports.Produ ction.rptBadge" );

THE ERROR:

{"Request for the permission of type
System.Security .Permissions.Re gistryPermissio n, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9
failed." }
Nov 15 '05 #1
5 2192
Since the other assembly is loaded from a network resource, that code will
run with "local intranet" security permissions - which are a lot more
limited than assemblies run from the local machine. You will need to
configure the security for the given assembly, or bump up the security level
of the "local intranet" zone.

Arild

"Sean McKaharay" <se************ @expoexchange.c om> wrote in message
news:eM******** ******@TK2MSFTN GP09.phx.gbl...
I am wondering if anyone can help me out with this one. Here goes....... I
have my local machine (Windows XP framework 1.1) and a Server (Windows 2003 framework 1.1). When I go to run my code on my box and late bind to a dll on the server machine I get an error. Below is the lines of code and the error I get. I have no problem accessing the Reports.dll so it should not be a
security problem. I get the error when I try to run the class rptBadge. I am getting a RegistryPermiss ion error. Here is some background on the
class..... I am extending from a class from a 3rd party. We have paid for
the product and I am wondering if it has something to do with that. The
third party might have some information in the registry and I don't have
permissions to read the registry.

Any help would be appreciated.

System.Reflecti on.Assembly ControlAssembly =
System.Reflecti on.Assembly.Loa dFrom("\\Server 1\Reports\outpu t\Reports.dll") ;
report =
(ExpoExchange.R egistration.Com mon.Business.Pr oductionActiveR eportBase)
ControlAssembly .CreateInstance ("Reports.Produ ction.rptBadge" );

THE ERROR:

{"Request for the permission of type
System.Security .Permissions.Re gistryPermissio n, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9
failed." }

Nov 15 '05 #2
I tried to change the permisions of LocalIntranet_Z one to FullTrust and I am
still getting the error.
"Arild Bakken" <ar*****@hotmai l.com> wrote in message
news:eH******** ******@TK2MSFTN GP11.phx.gbl...
Since the other assembly is loaded from a network resource, that code will
run with "local intranet" security permissions - which are a lot more
limited than assemblies run from the local machine. You will need to
configure the security for the given assembly, or bump up the security level of the "local intranet" zone.

Arild

"Sean McKaharay" <se************ @expoexchange.c om> wrote in message
news:eM******** ******@TK2MSFTN GP09.phx.gbl...
I am wondering if anyone can help me out with this one. Here goes....... I have my local machine (Windows XP framework 1.1) and a Server (Windows 2003
framework 1.1). When I go to run my code on my box and late bind to a dll on
the server machine I get an error. Below is the lines of code and the error
I get. I have no problem accessing the Reports.dll so it should not be a
security problem. I get the error when I try to run the class rptBadge.

I am
getting a RegistryPermiss ion error. Here is some background on the
class..... I am extending from a class from a 3rd party. We have paid

for the product and I am wondering if it has something to do with that. The
third party might have some information in the registry and I don't have
permissions to read the registry.

Any help would be appreciated.

System.Reflecti on.Assembly ControlAssembly =

System.Reflecti on.Assembly.Loa dFrom("\\Server 1\Reports\outpu t\Reports.dll") ;

report =
(ExpoExchange.R egistration.Com mon.Business.Pr oductionActiveR eportBase)
ControlAssembly .CreateInstance ("Reports.Produ ction.rptBadge" );

THE ERROR:

{"Request for the permission of type
System.Security .Permissions.Re gistryPermissio n, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9
failed." }


Nov 15 '05 #3
Does anyone else have any help

"Sean McKaharay" <se************ @expoexchange.c om> wrote in message
news:eM******** ******@TK2MSFTN GP09.phx.gbl...
I am wondering if anyone can help me out with this one. Here goes....... I
have my local machine (Windows XP framework 1.1) and a Server (Windows 2003 framework 1.1). When I go to run my code on my box and late bind to a dll on the server machine I get an error. Below is the lines of code and the error I get. I have no problem accessing the Reports.dll so it should not be a
security problem. I get the error when I try to run the class rptBadge. I am getting a RegistryPermiss ion error. Here is some background on the
class..... I am extending from a class from a 3rd party. We have paid for
the product and I am wondering if it has something to do with that. The
third party might have some information in the registry and I don't have
permissions to read the registry.

Any help would be appreciated.

System.Reflecti on.Assembly ControlAssembly =
System.Reflecti on.Assembly.Loa dFrom("\\Server 1\Reports\outpu t\Reports.dll") ;
report =
(ExpoExchange.R egistration.Com mon.Business.Pr oductionActiveR eportBase)
ControlAssembly .CreateInstance ("Reports.Produ ction.rptBadge" );

THE ERROR:

{"Request for the permission of type
System.Security .Permissions.Re gistryPermissio n, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9
failed." }

Nov 15 '05 #4

"Sean McKaharay" <se************ @expoexchange.c om> wrote in message
news:OI******** ******@TK2MSFTN GP12.phx.gbl...
Does anyone else have any help

"Sean McKaharay" <se************ @expoexchange.c om> wrote in message
news:eM******** ******@TK2MSFTN GP09.phx.gbl...
I am wondering if anyone can help me out with this one. Here goes....... I have my local machine (Windows XP framework 1.1) and a Server (Windows 2003
framework 1.1). When I go to run my code on my box and late bind to a dll on
the server machine I get an error. Below is the lines of code and the error
I get. I have no problem accessing the Reports.dll so it should not be a
security problem. I get the error when I try to run the class rptBadge.

I am
getting a RegistryPermiss ion error. Here is some background on the
class..... I am extending from a class from a 3rd party. We have paid

for the product and I am wondering if it has something to do with that. The
third party might have some information in the registry and I don't have
permissions to read the registry.

Any help would be appreciated.

System.Reflecti on.Assembly ControlAssembly =

System.Reflecti on.Assembly.Loa dFrom("\\Server 1\Reports\outpu t\Reports.dll") ;

report =
(ExpoExchange.R egistration.Com mon.Business.Pr oductionActiveR eportBase)
ControlAssembly .CreateInstance ("Reports.Produ ction.rptBadge" );

THE ERROR:

{"Request for the permission of type
System.Security .Permissions.Re gistryPermissio n, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9
failed." }


The latter is pretty easy to check out (assuming you can find the correct
hive/key that is giving you trouble.) just open regedt32 (regedit - doesn't
provide for changing permissions) as an admin - find the key/path and reset
the permissions to everyone, or specific name, etc.

There are various Registry Monitoring programs available for sale,
shareware, free, etc on the web that might help in your search.

There is likely more to the problem, but this would be a quick check if it
is a simple matter of registry permission. I am passing a note of doubt
because frankly M$ has been monkeying around with security over the last
couple of 24 months or so and .NET uses a slightly different security model
that Windows itself uses. I still don't have a warm fuzzy as to
understanding all the specifics.

HTH
-ralph
Nov 15 '05 #5

"Sean McKaharay" <se************ @expoexchange.c om> wrote in message
news:ex******** ******@tk2msftn gp13.phx.gbl...
I tried to change the permisions of LocalIntranet_Z one to FullTrust and I
am
still getting the error.

Are you sure you did this correctly?

On the client machine you should add a code group with at least "Registry"
access permissions to the Machine policy level, You would then give the code
group a URL membership condition which would specify the UNC path of your
file share.

Willy

Nov 15 '05 #6

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

Similar topics

7
2553
by: Kim Lots | last post by:
Hi Sorry to disturb you again but i really like to know what's the NTFS folder permissions on a "virtual directory" folder for a public webserver iis 5.x running ASP 3.0 with an Access DB on a w2k pro machine with anonymous access. Fyg this is non commercial website for neighbour members in a carpool with booking possibility. No file upload is allowed/possible/needed. Login is manged by the ASP script
1
3070
by: Brad H McCollum | last post by:
I'm writing an application using VB 6.0 as the front-end GUI, and the MSDE version of SQL Server as the back-end (it's a program for a really small # of users --- less then 3-4). I'm trying to determine, through the Visual Basic interface, the permissions of each user that's using the application on his/her machine. For example, let's say I'm user "Michael" that's sitting down at my machine using the app. I've written. The security...
6
2282
by: !!! Klutzo !!! | last post by:
I give permissions for ASPNET on a top level subdirectory. A windows program copies a file into the subdirectory, however, my web service cannot access the file because it does not have permissions. Shouldn't the file automatically inherit permissions by being dropped into that top level subdirectory?
2
4353
by: Jozef | last post by:
Hello, Is there a way to change table permissions in VB Code? I can't seem to find much that's concise in the help file. Here's the situation; I have a table in the "data" portion of a split database. The table is a list of values that shouldn't be accidentally changed by the user, so I've taken the administer and delete permissions off. I'm using the regular workgroup file, with the default Admin user name, so there is no funky...
7
476
by: none | last post by:
Hello: I had a nice php application running on my server here at home, and I uploaded it to a shared public type server and it started to break all over the place. It turns out that some scripts required higher permissions that others, but I can't figure out what the difference is. They all read from the database. Some write to the database, but not all the ones that require higher permissions do. I don't understand what it is about...
13
1713
by: MLH | last post by:
Invalid qualifier error displays at compile time on this A97 example from Permissions Property HELP. What's wrong with the strContainerName assignment line? (6th line) Sub SetDocPermissions(docUnknown As Document) Dim strContainerName As String ' Set UserName property to valid existing group account. docUnknown.UserName = "Marketers" ' Get value of Container property. strContainerName = docUnknown.Container.Name
0
1352
by: Curt K | last post by:
We run some web services (IIS 5 and IIS 6) that communicate to a COM out of process server, which in turn communicates to another out of process COM server (long story). We have had lots of permissions issues getting the web service to communicate to the COM object to the point that we use the "administrator" account (yes, I know this is really bad). We need to tidy this for security purposes and to run under Vista and properly set up...
8
7705
by: jporter188 | last post by:
Hello, I am working on a project to manipulate XML files. All of the files, the code, and the output are on network drives. When I run my program I get an exception (see below). I tried giving the LocalIntranet_Zone full permissions in the .NET Framework 2.0 Configuration msc. This had no effect whatsoever. What do I need to do to fix this? Thanks,
3
4460
by: palepimp | last post by:
Hello all, I have searched far and wide for a solution to my issue. In short, here is the problem: 1. 3 PC's enter data into an Access 2003 database (PC's are running Vista w/ Office 2007 pro). The database has been used for a long time and we haven't upgraded it to a 2007 version database. 2. One of the PC's hosts the "master" database, the 2 others are using Replica's of "master" database. At the end of each work day, the...
6
3259
by: DotNetNewbie | last post by:
Hello, in my web application, I have to create permissions for each user. So what I am doing is that for each role (using sqlmembership in .net) I am creating a column in the database to hold a group of permissions which I will then do some 'bit banging' in my web application to see if the permission is set or not. An int is 32 bits, and a long is 64.
0
9575
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9394
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...
0
9256
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8260
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
6803
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
6080
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
4712
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
4885
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2798
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.