473,395 Members | 2,079 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Project won't run from network drive.

Pardon the crosspost, didn't know where to put this one.

I upgraded a project from VB6 to dotNET 2005.
It compiles and runs ok on a local disk, but if I put the EXE on a mapped
network drive it just apologises for the invonvenience of not running.

Copying the EXE file to the desktop, it works a treat.

A created a blank application (just a new form) and put it on the network
and it executed ok.

What should I do?

--
Dave Harry
May 24 '06 #1
6 1324
Hi,

Dave Harry schrieb:
Pardon the crosspost, didn't know where to put this one.

I upgraded a project from VB6 to dotNET 2005.
It compiles and runs ok on a local disk, but if I put the EXE on a mapped
network drive it just apologises for the invonvenience of not running.

Copying the EXE file to the desktop, it works a treat.

A created a blank application (just a new form) and put it on the network
and it executed ok.


what does your application do? I suppose you collide with the security
policies. Policies for the local intranet are stricter than for the
local machine (the latter is FullTrust by default). The LocalIntranet
zone policy blocks the SQL Client for example (so it is with .Net 1.1, I
don't know about .Net 2.0 in this matter).

hth
Tobi

x-post to m.p.d.g, m.p.d.l.v, m.p.d.l.v.u
fup2 m.p.d.g
May 24 '06 #2
..NET also handles security in a way similar to IE "zones". By default code
running from the network doesn't have the right to perform all operations...

Look around
http://msdn.microsoft.com/library/de...figuration.asp

--
Patrice

"Dave Harry" <Da*******@please.keep.replies.in.the.newsgroup> a écrit dans
le message de news: u6**************@TK2MSFTNGP04.phx.gbl...
Pardon the crosspost, didn't know where to put this one.

I upgraded a project from VB6 to dotNET 2005.
It compiles and runs ok on a local disk, but if I put the EXE on a mapped
network drive it just apologises for the invonvenience of not running.

Copying the EXE file to the desktop, it works a treat.

A created a blank application (just a new form) and put it on the network
and it executed ok.

What should I do?

--
Dave Harry

May 24 '06 #3
On Wed, 24 May 2006 15:13:56 +1000, "Dave Harry" <Da*******@please.keep.replies.in.the.newsgroup>
wrote:

¤ Pardon the crosspost, didn't know where to put this one.
¤
¤ I upgraded a project from VB6 to dotNET 2005.
¤ It compiles and runs ok on a local disk, but if I put the EXE on a mapped
¤ network drive it just apologises for the invonvenience of not running.
¤
¤ Copying the EXE file to the desktop, it works a treat.
¤
¤ A created a blank application (just a new form) and put it on the network
¤ and it executed ok.
¤
¤ What should I do?

See the following:

How to deploy a .NET Framework application to run from a network location
http://support.microsoft.com/?kbid=832742
Paul
~~~~
Microsoft MVP (Visual Basic)
May 24 '06 #4

"Tobias Schröer" <to*******************@gmx.de> wrote in message
news:e5**********@news.citykom.de...
Hi,

Dave Harry schrieb:
Pardon the crosspost, didn't know where to put this one.

I upgraded a project from VB6 to dotNET 2005.
It compiles and runs ok on a local disk, but if I put the EXE on a mapped
network drive it just apologises for the invonvenience of not running.

Copying the EXE file to the desktop, it works a treat.

A created a blank application (just a new form) and put it on the network
and it executed ok.


what does your application do? I suppose you collide with the security
policies. Policies for the local intranet are stricter than for the local
machine (the latter is FullTrust by default). The LocalIntranet zone
policy blocks the SQL Client for example (so it is with .Net 1.1, I don't
know about .Net 2.0 in this matter).

hth
Tobi

x-post to m.p.d.g, m.p.d.l.v, m.p.d.l.v.u
fup2 m.p.d.g


Basically it's a glorified, but very device specific, terminal program.
The main function of the application is to access serial COM ports. It
creates files on the local computer, downloading and converting data
received from a device. No SQL is involved.

It seems I can add permissions to the project itself, rather than having to
configure something on the client machine? How can I do that?
--
Dave Harry
May 24 '06 #5
Dave Harry schrieb:
"Tobias Schröer" <to*******************@gmx.de> wrote in message
news:e5**********@news.citykom.de...
Hi,

Dave Harry schrieb:
Pardon the crosspost, didn't know where to put this one.

Why are you ignoring my follow up then?
what does your application do? I suppose you collide with the security
policies. Policies for the local intranet are stricter than for the local
machine (the latter is FullTrust by default). The LocalIntranet zone
policy blocks the SQL Client for example (so it is with .Net 1.1, I don't
know about .Net 2.0 in this matter).
Basically it's a glorified, but very device specific, terminal program.
The main function of the application is to access serial COM ports. It
creates files on the local computer, downloading and converting data
received from a device. No SQL is involved.


SQL served as an example here. File I/O is not allowed in the (.Net 1.1)
LocalIntranet policy.
It seems I can add permissions to the project itself, rather than having to
configure something on the client machine? How can I do that?


You can configure each assembly, yes. But you have to do this on the
client machine. If you could deploy custom security settings, the whole
thing would be obsolete.
But there must be ways to deploy a security policy in an automated way.
Sadly, I have none at hand :(
Tobi

x-post to m.p.d.g, m.p.d.l.v, m.p.d.l.v.u
fup2 m.p.d.g
May 26 '06 #6
Why are you ignoring my follow up then?


I assure you Tobias, I am not deliberately ignoring anything you say, but
take all suggestions gratefully.
If you have posted other comments elsewhere I've not seen them. Or perhaps I
have misread you.

what does your application do? I suppose you collide with the security
policies. Policies for the local intranet are stricter than for the local
machine (the latter is FullTrust by default). The LocalIntranet zone
policy blocks the SQL Client for example (so it is with .Net 1.1, I don't
know about .Net 2.0 in this matter).


Basically it's a glorified, but very device specific, terminal program.
The main function of the application is to access serial COM ports. It
creates files on the local computer, downloading and converting data
received from a device. No SQL is involved.


SQL served as an example here. File I/O is not allowed in the (.Net 1.1)
LocalIntranet policy.


Understood. I can see that the COM port IO is causing the same security
issue.

It seems I can add permissions to the project itself, rather than having
to configure something on the client machine? How can I do that?


You can configure each assembly, yes. But you have to do this on the
client machine. If you could deploy custom security settings, the whole
thing would be obsolete.
But there must be ways to deploy a security policy in an automated way.
Sadly, I have none at hand :(


Surely it can't be this hard?! Even an old hyperterminal program from last
century can be run from a network location.
Can I not do the same thing in dot net? I want to release this software;
having users go through config wizards is not what I had in mind.

--
Dave Harry
May 29 '06 #7

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

Similar topics

2
by: Raterus | last post by:
Hi, I'm after this setup, and I'm just wondering if this is even feasible. I'd like to store my asp.net project remotely, on a network drive (all the project files, everything), But I want to be...
4
by: Quan | last post by:
I have a solution with several vb.net projects in it. I developed the code in one machine then copied all the files in the other machine to continue the development. The projects are on the local...
5
by: Dave Harry | last post by:
Pardon the crosspost, didn't know where to put this one. I upgraded a project from VB6 to dotNET 2005. It compiles and runs ok on a local disk, but if I put the EXE on a mapped network drive it...
2
by: =?Utf-8?B?SGF6ZWxyYWg=?= | last post by:
I posted this question on a different website but I didn't get a response that worked. If I run this code from my computers hard drive, C:\, it detects the networked mapped drive, J:\, just...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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,...

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.