Running Assembly from Network Drive

I have an assembly (VS 2005) which I need to run from a network drive. When
run from mycomputer the assembly works fine, but it fails to load from the
network. I tried to increase the trust level using the framework
configuration, but it reports "Hash for the assembly cannot be generated".
Could someone tell my what this means? In addition, Is there a better way to
allow an assembly to run from the network without going adjusting the
security level on every machine on the network? Thaks in advance.
HLong [ Mi, 07 November 2007 20:23 ] [ ID #1864370 ]

RE: Running Assembly from Network Drive

As you are finding out, apps started from a network have a limited set of
privileges. If this is a Windows app, why don't you use ClickOnce?

David

======================================
David McCarter [Microsoft MVP]
www.vsdntips.com
David McCarter''s .NET Coding Standards available at:
http://www.cafepress.com/geekmusicart.1654787045


"HLong" wrote:

> I have an assembly (VS 2005) which I need to run from a network drive. When
> run from mycomputer the assembly works fine, but it fails to load from the
> network. I tried to increase the trust level using the framework
> configuration, but it reports "Hash for the assembly cannot be generated".
> Could someone tell my what this means? In addition, Is there a better way to
> allow an assembly to run from the network without going adjusting the
> security level on every machine on the network? Thaks in advance.
>
dotNetDave [ Fr, 09 November 2007 18:22 ] [ ID #1866376 ]

RE: Running Assembly from Network Drive

Thank you David. I am using VS Express, no ClickOnce.

"dotNetDave" wrote:

> As you are finding out, apps started from a network have a limited set of
> privileges. If this is a Windows app, why don't you use ClickOnce?
>
> David
>
> ======================================
> David McCarter [Microsoft MVP]
> www.vsdntips.com
> David McCarter''s .NET Coding Standards available at:
> http://www.cafepress.com/geekmusicart.1654787045
>
>
> "HLong" wrote:
>
> > I have an assembly (VS 2005) which I need to run from a network drive. When
> > run from mycomputer the assembly works fine, but it fails to load from the
> > network. I tried to increase the trust level using the framework
> > configuration, but it reports "Hash for the assembly cannot be generated".
> > Could someone tell my what this means? In addition, Is there a better way to
> > allow an assembly to run from the network without going adjusting the
> > security level on every machine on the network? Thaks in advance.
> >
HLong [ Di, 13 November 2007 15:21 ] [ ID #1869075 ]

RE: Running Assembly from Network Drive

You probably need to give your assembly a strong name.



*** Sent via Developersdex http://www.developersdex.com ***
Rob Kraft [ Sa, 12 April 2008 22:46 ] [ ID #1941075 ]
Microsoft » microsoft.public.dotnet.general » Running Assembly from Network Drive

Vorheriges Thema: Reading a html page source
Nächstes Thema: Try Catch