RE: Assembly Throws Network Exception...



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

.



Relevant Pages

  • Re: OLAP and VPN / authentication / trust
    ... You need Network 2 to trust Network 1 users to access the resources on ... This is the essence of a "Trust Relationship". ... attempt to connect to a SQL server on Network2 using credentials like ...
    (microsoft.public.sqlserver.olap)
  • Re: Cached user credentials and logon to different domain
    ... No there is no no trust between domains - and there is no possible way make ... as domains are completly separated (no network connection) ... >> map a shared drive on our domain server though a VPN tunnel. ... please direct all replies ONLY to the Microsoft public ...
    (microsoft.public.windows.server.active_directory)
  • RE: Users unable to browse trusted domain
    ... If I go into server manager on the NT4 Domain Controller, ... This is since I created the trust to the 2003 Domain and migrated one ... you might not have permission to use this network ...
    (microsoft.public.windows.server.migration)
  • Re: Problem with setup VPN and Trust on 2 Win 2003 domains
    ... I was able to get the trust set up, ... > resolved and the server is available." ... We are trying to set up a VPN and then ... >> subnet than our network. ...
    (microsoft.public.windows.server.networking)
  • Re: Windows 2003 SP1 Network issues?
    ... One of the server is originiall ... I am uninstalling SP1 from that server. ... How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com ...
    (microsoft.public.windows.server.networking)