473,385 Members | 1,630 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,385 software developers and data experts.

New C# application won't run from Shared drive

Hi guys

I've just written a new C# application which needs to go on a Shared drive
on our network.

Now, the application works perfectly well from my local C: drive. I've
copied the EXE and the config file and when you double-click the EXE, it
works perfectly.

However, from the shared drive, 2 things happen....

Firstly, I get a security warning ... "The publisher could not be verified."
- I can continue, but I'd like to get rid of this if at all possible?

Then my application crashes, "there was a problem and the application needs
to close". I'm really not sure why this is happening.. as I say, it works
fine when it's not on a network share.

Here is the error signature...

EventType : clr20r3 P1 : artifaxreport.exe P2 : 1.0.0.0
P3 : 4905d285 P4 : mscorlib P5 : 2.0.0.0 P6 : 471ebc5b P7 :
37d0
P8 : b P9 : system.security.security

Can someone help me with why this might be happening!?!

Thanks,
Dan
Oct 27 '08 #1
1 2951
"caspol".

Code running from your local drive runs with full trust. Code running on
a network drive has local intranet trust (i.e. much less, often not
enough to run successfully).

IIRC, there was a patch recently (3.5SP1 maybe?) that means that mapped
shares run as full trust - i.e. "f:" will work, but "\\foo\bar" won't
(even if they are the same place).

The other options:
* use caspol (at each client) to assign trust to the network share
and/or that application
* use ClickOnce to deploy the app (still residing on the network share)

Of all of these, ClickOnce is the simplest, most reliable, and frankly
the best way: you should probably be using it.

Marc
Oct 27 '08 #2

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

Similar topics

8
by: Google Mike | last post by:
I need an Application object replacement. I was creating my own using shared memory -- shm* API in PHP. I was doing fine for 6 months until it just got too fat, I guess, and the RH9 Linux server...
13
by: Rodrigue | last post by:
I as a developer have an application that I can run from my box or from a shared drive, but I cannot get anybody else to run it. They do have the same version of the framework on their boxes, yet...
4
by: Chris Gatto | last post by:
Hello, My organization is currently considering the purchase of a new intranet application server and we are looking for opinions from those who have been down this road before. In brief the...
2
by: Jim Heavey | last post by:
I am wanting to invoke a console application by double clicking on a ".Bat" file from a shared drive. The ".Bat" file will access another shared drive to actually invoke the application. The...
21
by: Chris | last post by:
I'm trying to get an existing VS.NET project up on my Win2003 server and I get the following error (on the actual website page): "It is an error to use a section registered as...
0
by: JeffW | last post by:
Researched this, but none of the proposed solutions are working for me. Am hoping for some insight. Am trying to open a binary file that exists on a shared drive for reading. Code lives inside...
8
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is...
9
by: Doug Glancy | last post by:
I got the following code from Francesco Balena's site, for disposing of Com objects: Sub SetNothing(Of T)(ByRef obj As T) ' Dispose of the object if possible If obj IsNot Nothing AndAlso...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.