RE: Assembly Throws Network Exception...
- From: David++ <David@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 08:10:02 -0800
A little update with more information if it will help.
The machine I am running my assembly (exe) from is Windows 2003 Server,
Standard Edition, SP1. It has Microsoft 1.0 Configuration Tool installed on
it.
As a test I made a simple Windows Form app in VS 2003 .NET 1.x. The app
writes a text file to the local directory. I build and ran this app on my
machine - it works fine locally as to be expected, I then put it on the
network in my office and it throws the FileIO permission exception as to be
expected, so I add a new code group in .NET 1.0 Configuration tool, granting
Full Trust in Local Intranet. I run the app from the network and it works
fine with no security exception.
So, I then proceed to repeat the test on the Windows 2003 server machine as
I know it definetly has .NET 1.x on it along with .NEt 1.0 Configuration
tool. I copy the exe to the server, run it locally there with no problems,
copy it to the network drive on the server and it gives the security
exception as expected. So, again I add a new code group granting full trust
to the LocalIntranet by way of the .NET 1.0 configuration tool. I run the exe
from the network and it gives the secuirty exception!
I think therefore that it is not a problem with the assembly having full
trust but something else, as I know the asembly defineltly has full trust.
Could it be the machine requires a later Service Pack? It is still on SP1.
Another reason may be that Iam remote desktop'ing into the clients main
Server (Win 2003) and then remoting into another server from there (Win 2003)
as this is the way it is setup. Could it be that the first machine I'm
remoting through also needs to have the same security policies applied?
Thanks for any insights.
Best Regards,
David
"David++" wrote:
Hi folks,.
Having some trouble running a .NET 2.0 assembly from a Network Share.
Assembly is on Windows Server 2003, SP1
Have installed .NET 2.0 dotnetfx
Have attempted to add full trust to the network via -
Caspol.exe -cg 1.2 FullTrust
Does not work..
Also tried -
CasPol.exe -m -ag 1.2 -url file://Y:/Development/Current/Bin FullTrust
still no change.
Any ideas how to grant trust to the assembly? It has been signed with a
strong name.
Thanks very much for any help in this urgent situation.
Best regards,
David
- Follow-Ups:
- RE: Assembly Throws Network Exception...
- From: David++
- RE: Assembly Throws Network Exception...
- Next by Date: Using Caspol to change Security Policy - Code Groups # different on different PC ???
- Next by thread: RE: Assembly Throws Network Exception...
- Index(es):
Relevant Pages
|