473,665 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.

Nov 7 '07 #1
3 3659
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.
Nov 9 '07 #2
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.
Nov 13 '07 #3
You probably need to give your assembly a strong name.

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #4

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

Similar topics

2
645
by: MF | last post by:
In visual basic 6 I can write an application and toss it up on a shared network drive for the company to access. Works like a champ. In .NET my C# application runs fine on anyones machine, but due to the integrated security model of .NET, bombs out with Security Exceptions when someone tries to run it off the network drive. Sure, I can go to the users PC, and via the control panel,
2
7061
by: David Lindgren | last post by:
Hello! When I am trying to run my .NET application from a network drive a System.Security.SecurityException exception is thrown. Why is that? How do I prevent it? Thanks! /David.
2
2637
by: flat_ross | last post by:
Hi, I am in a shop where developers are required to work off of a network share. This is so that code is backed up nightly. So I am testing running an ASP.NET Web application with a Class assembly all on a shared drive. I have the solution working perfectly. However, I have run into a hiccup. In order to map IIS Virtual Dir to a network drive, you need
11
2314
by: ASP.NET User | last post by:
Hi I am in a shop where developers are required to work off of a networ share. This is so that code and other documentation is backed up nightly. This is outside the realm of Visual SourceSafe which we also use for code control. The network drive is used as the working folder. This is a configuration this shop has used for 6 years and I do not see it changing any time soon So I am testing running an ASP.NET Web application with a Clas...
0
916
by: Christian Kaiser | last post by:
I want to develop code on a network (mapped) drive. All the time it fails with a security exception. OK, I thought I know the reason for that, and set the intranet security to full trust. BUT: this did not help. Then, I checked the assembly's rights with MSCORCFG's "evaluate assembly" and see that my intranet is in fact seen as an internet (!) by the .NET. No wonder I cannot do anything interesting ;-)
4
4665
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients and a desktop shortcut to the exe out on the network)... but is it really a good idea? What are some arguments for and against running a .NET Windows Forms client from a network share? Here is my initial list... I'd appreciate any additions,...
1
1734
by: utpal | last post by:
Hi, My CSharp program, when I run from the local drive it can create/modify registry. However running the program from a network drive, gives RegistryPremission error. I don't belive that just by running the program from a network drive, the program will try to access the registry of the network machine. Here is the code snippet: RegistryKey rk =...
5
2627
by: Igor | last post by:
Hi! We built VB6 application to work with Reporting Services server. To connect to reporting server has been created a special assembly with .NET VS2003. While we execute our program on local machine, every thing works. But when we put the whole program on network drive, the VB6 program could not create required object from .NET assembly. Nothing we done were not useful to help to solve the problem. Does anybody have idea?
1
1389
by: Carl Johansson | last post by:
I think I'm going nuts! I have a perfectly fine exe assembly built with Microsoft Visual C# 2008 Express Edition. When executed from my local hard drive it runs as exactly as expected. However, when trying to launch it from a network drive it just won't run. One suggestion I saw was to start the "Microsoft .NET Framework 1.1 Wizards" and run "Trust an Assembly". However, after having browsed to the assembly the wizard simply reported that...
0
8438
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
8348
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8863
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
8779
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
8549
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,...
1
6187
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
5660
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
4356
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.