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.e xe 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 1 2961
"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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 just started
"losing its memory". I don't know -- perhaps I'm doing something
wrong, perhaps it's my code, or perhaps there's a limitation on what
I'm trying to do here. It's too many lines of code to debug right now.
I'm searching for...
|
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 they are unable to run the
application. What do I need to do. The error is not a security exception
|
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 server must support the following:
- 600+ users using various ASP.Net based applications, only 2 currently but
growing over time as old legacy apps are converted;
- Some applications are mission critical, others not so much;
- DB back-end is a...
|
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 person double clicking on the file has read/write access to both shared
drives.
Can this be done?
In the bat file I attempt to execute the file by suppling a command which
|
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
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS."
I've been told by the previous developer that the website needs to be set as
a "application". I...
| |
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 a .NET web app and looks like this:
FileStream fs = new FileStream(_documentInfo.DocFile, FileMode.Open,
FileAccess.Read);
This statement generates error:
|
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 there a way I can compile the
application such that it won't even attempt to launch without correct
permissions instead of just crashing? Thanks for any help.
-Mike
|
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 TypeOf obj Is IDisposable Then
DirectCast(obj, IDisposable).Dispose()
|
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...
|
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...
|
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: 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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |