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

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.Reflection
Imports System.Runtime.InteropServices
<Assembly: AssemblyTitle("")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("")>
<Assembly: AssemblyCopyright("")>
<Assembly: AssemblyTrademark("")>
<Assembly: CLSCompliant(True)>
<Assembly: AssemblyKeyFile("\\thci.com\NETLOGON\LogonApp.snk" )>
<Assembly: Guid("7BF9B5D5-0EA0-4798-A979-7F3CE83E9FC0")>
<Assembly: AssemblyVersion("1.0.*")>

And my command to add the policy...

%windir%\microsoft.net\framework\v1.1.4322\caspol. exe -u -q -addgroup
All_Code -url "\\thci.com\NETLOGON\LogonApp.exe"

THANKS!!!!


Aug 12 '08 #1
5 1317
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********@newsgroup.nospamwrote in message
news:3a**************************@news.microsoft.c om...
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\NETLOGON\LogonApp.snk" )>
And my command to add the policy...

%windir%\microsoft.net\framework\v1.1.4322\caspol. exe -u -q -addgroup
All_Code -url "\\thci.com\NETLOGON\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.ja.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\NETLOGON\LogonApp.snk" )>
>And my command to add the policy...

%windir%\microsoft.net\framework\v1.1.4322\caspol .exe -u -q -addgroup
All_Code -url "\\thci.com\NETLOGON\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
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...
4
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
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...
8
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...
2
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...
11
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...
0
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...
3
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...
4
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...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...
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...

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.