Hi all.
I think that it is very discussed topic, but I still did not find a
satisfying answer.
Is there any way how to run an application from network drive without
setting permissions for the application manually? The users often do
not know anything about the .Net security, so they are unable to set
the permissions. Moreover if I try to run my applications from
network, they do not throw any exception, no error message appears -
from user point of view just nothing happens, so they do not have a
chance to see that there is any problem...
Is there any way how to enable that permissions programmaticall y?
Maybe I have to create some kind of installer for the application? Or
is there a possibility to enable the permissions even without an
installer?
Martin 4 1633
(note: previous post applies to VS2005 and above)
If you are using Visual Studio, you can create a ClickOnce deployment,
which allows you to assign permissions (or "full trust"), and sign the
app. This can be published to a UNC (or over the web), and then when
the first user runs it they get a simple, user-oriented "is it OK to
run this?".
After this, it works every time, including automatically getting
updates (if configured appropriately), and (optionally) installing
into the Start menu.
Job done...
Marc
Hi,
"Martin" <zi***@centrum. czwrote in message
news:11******** *************@e 9g2000prf.googl egroups.com...
Hi all.
I think that it is very discussed topic, but I still did not find a
satisfying answer.
Is there any way how to run an application from network drive without
setting permissions for the application manually? The users often do
not know anything about the .Net security, so they are unable to set
the permissions. Moreover if I try to run my applications from
network, they do not throw any exception, no error message appears -
from user point of view just nothing happens, so they do not have a
chance to see that there is any problem...
Is there any way how to enable that permissions programmaticall y?
Maybe I have to create some kind of installer for the application? Or
is there a possibility to enable the permissions even without an
installer?
Not that I know of, I have a couple of apps in 1.1 that always ahve this
problem.
It was solved in 2.0 with ClickOnce.
On 10 Srp, 11:02, "Marc Gravell" <marc.grav...@g mail.comwrote:
(note: previous post applies to VS2005 and above)
Well, is there any other way than ClickOnce? I've used it for some
time for one my project and I had to stop using it, because it caused
more problems than it solved. The project was "alive", so I was
creating a new version every day or two and the ClickOnce updater was
not working properly. After hours spent with users that were unable to
get the new update, others that we unable to run the application etc.
I stopped using it, copied only the resulting .exe file to the server
and manually added the application to full trust on each computer that
was using my application. It was lot of work, but after that
everything is working fine... So is there any other way than using
ClickOnce?
Martin This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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,
|
by: Bruce Acciavatti |
last post by:
I've split a rather large Access2000 database that resides on a network
drive, by keeping the back-end on the network drive and placing the
front-end on the client's hard drive, linked to it. Both front-end and
back-end dbs are then compacted to save space.
This is a normal procedure, but when I run the database now it performs
much, much slower than the old unsplit version of the database, which is
unacceptable. I have had to back off...
|
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.
|
by: Gacu |
last post by:
Hi!
Have you met any problems with running C# program from network mapped drive?
Of course I have .net framework installed on both machines.
When I copy program file to local disk it works fine, but from network drive
it says: Unhandled exception :(
Thanx
|
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
| |
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...
|
by: Mike |
last post by:
Can a vb program running as a serice not use network paths to do file/io?
I can't seem to get my program to work with network paths and files. When I
use local disk it works fine. When I run it as a none service program it
works fine. I'm assuming that vb programs running as a service do not
support network paths. Is that true?
Thanks in advance.
|
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 =...
|
by: d.hamer |
last post by:
Firstly Im writing not as a programmer, but a a network admin.
We are having a problem where students cannot run applications in
VB.net from their home area (a network drive). However the same app
works fine from a local drive or pen drive.
Does anyone know of any active directory restrictions which might be
causing this, or a group policy way of fixing it?
Thanks for your help.
|
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 fine:
Private Function FolderExists() As Boolean Return
My.Computer.FileSystem.DirectoryExists("J:\Template_Alpha\") End Function
' Outputs: True
|
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...
| |
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,...
|
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,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |