473,769 Members | 6,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Running vb.net app (1.1) from a network share.

I have a .net 1.1 app that runs from a network share. I signed it and can
add a machine policy to my computers and it runs fine, but I really need to
use a user policy to allow the app to run. I set the user policy the same as
the machine policy, but it fails to allow the app to run in Full Trust. Do I
need to sign the exe in a certain way? I can't find an answer out there.

Here is my AssemblyInfo.vb file...
Imports System.Reflecti on
Imports System.Runtime. InteropServices
<Assembly: AssemblyTitle(" ")>
<Assembly: AssemblyDescrip tion("")>
<Assembly: AssemblyCompany ("")>
<Assembly: AssemblyProduct ("")>
<Assembly: AssemblyCopyrig ht("")>
<Assembly: AssemblyTradema rk("")>
<Assembly: CLSCompliant(Tr ue)>
<Assembly: AssemblyKeyFile ("\\thci.com\NE TLOGON\LogonApp .snk")>
<Assembly: Guid("7BF9B5D5-0EA0-4798-A979-7F3CE83E9FC0")>
<Assembly: AssemblyVersion ("1.0.*")>

And my command to add the policy...

%windir%\micros oft.net\framewo rk\v1.1.4322\ca spol.exe -u -q -addgroup
All_Code -url "\\thci.com\NET LOGON\LogonApp. exe"

THANKS!!!!


Aug 12 '08 #1
5 1335
Hello Shawn,
I have a .net 1.1 app that runs from a network share. I signed it and
can add a machine policy to my computers and it runs fine, but I
really need to use a user policy to allow the app to run. I set the
user policy the same as the machine policy, but it fails to allow the
app to run in Full Trust. Do I need to sign the exe in a certain way?
I can't find an answer out there.
I'm afraid I don't have an answer that meets your criteria, but I thought
I'd just chip in that I've just heard that the latest 3.5 SP1 removes the
issues surrounding running managed code applications from a UNC Share.

This might do you some good int he future. Who knows?

Good luck finding you answer either way.

--
Rory
Aug 12 '08 #2
Yeah, I heard that too but sadly, we have lots of computers only running
..net 1.1, so I needed to (painfully) re-install VS 2003 for this... Painful.

"Rory Becker" <ro********@new sgroup.nospamwr ote in message
news:3a******** *************** ***@news.micros oft.com...
Hello Shawn,
>I have a .net 1.1 app that runs from a network share. I signed it and
can add a machine policy to my computers and it runs fine, but I
really need to use a user policy to allow the app to run. I set the
user policy the same as the machine policy, but it fails to allow the
app to run in Full Trust. Do I need to sign the exe in a certain way?
I can't find an answer out there.

I'm afraid I don't have an answer that meets your criteria, but I thought
I'd just chip in that I've just heard that the latest 3.5 SP1 removes the
issues surrounding running managed code applications from a UNC Share.

This might do you some good int he future. Who knows?

Good luck finding you answer either way.

--
Rory


Aug 12 '08 #3
Shawn wrote:
I have a .net 1.1 app that runs from a network share. I signed it and can
add a machine policy to my computers and it runs fine, but I really need to
use a user policy to allow the app to run.
Why??

If it "runs fine" with /machine/ policies in place, why do you "need" to
use /user/ policies instead?
Here is my AssemblyInfo.vb file...
.. . .
<Assembly: AssemblyKeyFile ("\\thci.com\NE TLOGON\LogonApp .snk")>
And my command to add the policy...

%windir%\micros oft.net\framewo rk\v1.1.4322\ca spol.exe -u -q -addgroup
All_Code -url "\\thci.com\NET LOGON\LogonApp. exe"
So now you're mentioning two files on the file share (the .exe and the
..snk) although that shouldn't matter because the KeyFile is used at
build-time but you're only "trusting" one of them (the .exe).

Try widening your CASPOL to allow anything in (or below) the program
directory:

....\caspol.exe ... -url "file://///thci.com/NETLOGON/*"

HTH,
Phill W.
Aug 13 '08 #4
Users don't have local admin rights to their computers and our AD admins
don't want to push the msi to create the machine level permission.

"Phill W." <p-.-a-.-w-a-r-d-@-o-p-e-n-.-a-c-.-u-kwrote in message
news:g7******** **@south.jnrs.j a.net...
Shawn wrote:
>I have a .net 1.1 app that runs from a network share. I signed it and can
add a machine policy to my computers and it runs fine, but I really need
to use a user policy to allow the app to run.

Why??

If it "runs fine" with /machine/ policies in place, why do you "need" to
use /user/ policies instead?
>Here is my AssemblyInfo.vb file...
. . .
><Assembly: AssemblyKeyFile ("\\thci.com\NE TLOGON\LogonApp .snk")>
>And my command to add the policy...

%windir%\micro soft.net\framew ork\v1.1.4322\c aspol.exe -u -q -addgroup
All_Code -url "\\thci.com\NET LOGON\LogonApp. exe"

So now you're mentioning two files on the file share (the .exe and the
.snk) although that shouldn't matter because the KeyFile is used at
build-time but you're only "trusting" one of them (the .exe).

Try widening your CASPOL to allow anything in (or below) the program
directory:

...\caspol.exe ... -url "file://///thci.com/NETLOGON/*"

HTH,
Phill W.

Aug 13 '08 #5
Shawn wrote:
Users don't have local admin rights to their computers
Good ...
and our AD admins don't want to push the msi to create the machine
level permission.
Not so good ...

I've never used AD distribution but they /must/ have something that can
get "things" happening on the client machines, if only for regular
updates and the likes. Hopefully.

If they have, then you can get them to run the caspol command directly
(which how /my/ lot are doing this) just so long as you can get the
command itself working, of course ;-)

HTH,
Phill W.
Aug 13 '08 #6

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,
4
2541
by: GTi | last post by:
Maybe is this a old and well known question, but can't my C# .NET application run from a network share? Running it from a local disk is OK but not from my F:\ disk (nettwork disk).
1
1941
by: CES | last post by:
All, If anyone has been following my trials over the last week see(Setting up a Web Application on IIS 5.1 and ASP.Net Security Problems). I'm having a problem running a Asp.Net Web Application. I've finally narrowed the problem down to a security issue: The ASPNET (aspnet_wp) account cannot connect to a Network resource instead of using a local path ie: C:\Inetpub\wwwroot my development site resides on a Network Share...
8
2492
by: JR | last post by:
I have a Web server running on Windows XP. On this Web server, I have a Web site configured with its home directory on a network share. In the Web site, there's a virtual folder pointing to a local folder on the Web server containing an ASP.NET application. I get a "Failed to start monitoring changes" when I try to run the application. If I try to debug, I get a message "unable to start debugging on the Web server". I put an...
2
2650
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
2325
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
1421
by: James Lang | last post by:
Hi does anyone know of a good sample that shows the coding required to run an VB.net exe from a network share that works with the local machine drives ie C:\ ie place an vb.net exe on a shared drive on the network Helpdesk could remotely take over a users machine navigate to the network share via windows explorer or cmd prompt Double click the exe and it would delete certain files from the local
3
5057
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from the network share. It loads in VS2005 fine, and I can edit and save code changes etc, but when I try and Build the solution, I get the following error... An error occured loading a configuration file: Failed to start monitoring
4
4673
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,...
0
9423
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
10219
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
10049
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
9998
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,...
0
9865
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 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...
0
8876
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, 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...
1
7413
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
5310
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...
2
3567
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.