473,594 Members | 2,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.Net Application on share with permission List Folder/Read Data not allowed results in .Net Framework Initialization error

I have a VS2005 VB.Net windows form application deployed to a share drive.
The windows explorer security permissions for this application (.exe) file
is set for Everyone with List Folder/Read Data not allowed. This is done so
that users cannot take away a copy of the .exe file. When I execute the
..exe from the client computer I get .Net Framework Initialization Error,
Unable to find a version of the runtime to run this application. The other
permissions are set as follows: Traverse Folder/Execute File is allowed,
Read Attributes is allowed, Read Permissions is allowed, all others not
allowed. The above settings works for VB6 applications but not the .Net
application. If I set the permission List Folder/Read Data to allow, the
..Net application works fine (but of course a user can now copy the program).

The client and server computers are both WinXP, SP2, with .Net Framework
2.0, peer to peer network. The .Net Framework Runtime Security Policy on
the client machine is set for FullTrust for URL pointing to the share and
has been tested.

Any ideas on how to set this up correctly so the .Net app will run from a
share with the .exe permission set to List Folder/Read Data not allowed?

Bill

Mar 10 '07 #1
2 10684
When the desktop app is located on a network share, it does not run on the
computer where the share belongs to, it is copied from the share (hence
being read) to the running computer's memory and run. So, if you do not the
app's files to be read, then you cannot run it. Period. IMO, this is not the
way to "protect" your work from being copied. You need to find some other
means for that purpose.
"Bill Fallon" <bi**@fallonmar ine.comwrote in message
news:H2AIh.129$ I56.117@trnddc0 6...
>I have a VS2005 VB.Net windows form application deployed to a share drive.
The windows explorer security permissions for this application (.exe) file
is set for Everyone with List Folder/Read Data not allowed. This is done
so that users cannot take away a copy of the .exe file. When I execute the
.exe from the client computer I get .Net Framework Initialization Error,
Unable to find a version of the runtime to run this application. The other
permissions are set as follows: Traverse Folder/Execute File is allowed,
Read Attributes is allowed, Read Permissions is allowed, all others not
allowed. The above settings works for VB6 applications but not the .Net
application. If I set the permission List Folder/Read Data to allow, the
.Net application works fine (but of course a user can now copy the
program).

The client and server computers are both WinXP, SP2, with .Net Framework
2.0, peer to peer network. The .Net Framework Runtime Security Policy on
the client machine is set for FullTrust for URL pointing to the share and
has been tested.

Any ideas on how to set this up correctly so the .Net app will run from a
share with the .exe permission set to List Folder/Read Data not allowed?

Bill

Mar 11 '07 #2
It is only the VB.Net application that will not run from a share when the
permission is set to List Folder/Read Data not allowed. VB6 and Fortran
applications run just fine from the share when the permission is set to List
Folder/Read Data not allowed. Why is that the case? Could there be some
special setting in .Net that will make this work?

Bill

"Norman Yuan" <No*****@NotRea l.notwrote in message
news:uM******** ********@TK2MSF TNGP03.phx.gbl. ..
When the desktop app is located on a network share, it does not run on the
computer where the share belongs to, it is copied from the share (hence
being read) to the running computer's memory and run. So, if you do not
the app's files to be read, then you cannot run it. Period. IMO, this is
not the way to "protect" your work from being copied. You need to find
some other means for that purpose.
"Bill Fallon" <bi**@fallonmar ine.comwrote in message
news:H2AIh.129$ I56.117@trnddc0 6...
>>I have a VS2005 VB.Net windows form application deployed to a share drive.
The windows explorer security permissions for this application (.exe) file
is set for Everyone with List Folder/Read Data not allowed. This is done
so that users cannot take away a copy of the .exe file. When I execute
the .exe from the client computer I get .Net Framework Initialization
Error, Unable to find a version of the runtime to run this application.
The other permissions are set as follows: Traverse Folder/Execute File is
allowed, Read Attributes is allowed, Read Permissions is allowed, all
others not allowed. The above settings works for VB6 applications but not
the .Net application. If I set the permission List Folder/Read Data to
allow, the .Net application works fine (but of course a user can now copy
the program).

The client and server computers are both WinXP, SP2, with .Net Framework
2.0, peer to peer network. The .Net Framework Runtime Security Policy on
the client machine is set for FullTrust for URL pointing to the share and
has been tested.

Any ideas on how to set this up correctly so the .Net app will run from a
share with the .exe permission set to List Folder/Read Data not allowed?

Bill

Mar 11 '07 #3

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

Similar topics

2
2788
by: Anthony Abbot | last post by:
Hi I have a requirement to use the Application Center Test (part of Visual Studio.Net Enterprise architect) program, to simulate loading on my Web servers. Does anyone know if it is any good? I have gotten it to work and it seems to do the job. I have a requirement to run multiple tests from many computers simultaneously. The manual seems to hint that
1
2942
by: Thorpe | last post by:
I have build a .Net (C#) winform application. The application opens and reads and writes to an xml file that is stored with the assembly. When I run the program on my local PC everything works. I have the need for a number of different people to run the application. I copied the assembly and related files on a server I connected to the a share on the server from my local PC and tried running the application I got an error that said ...
6
2290
by: Frank Wilson | last post by:
Tom, It sounds to me like ASP, not ASP.NET is handling the request for WebForm1.aspx. This is most likely an IIS config issue that may have been caused by order of installation or reinstallation, or possibly even something that happened in IIS before .NET was installed. Here is a way to prove or disprove my theory:
21
2160
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...
9
2188
by: Nathan Sokalski | last post by:
I am trying to connect to a Microsoft Access Database from my ASP.NET Application. I use the following code to create my connection string: cmdSelect.Connection = New System.Data.OleDb.OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATASOURCE=" & Server.MapPath("/WebApplication1/nathansokalski_com.mdb")) Although the error does not occur until the Fill() method is called:
0
2585
by: aloneplayer | last post by:
Hi, All, I wrote a function to share a folder to individual user account with WMI. When I call it : ShareFolder("c:\\test", "Test", "Shared by Riven", 8, Environment.MachineName, "Administrator"); The folder will be shared, but nobody has permission to access it. (The share permissions list of this folder is empty) Could you help me?
1
1331
by: AnalogKid17 | last post by:
I'm getting this error when building and running an ASP solution that lives on a network folder (part of the prod web server). I was NOT getting this when working on the same *identical* solution on my local machine. Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's...
0
1064
by: Bill Fallon | last post by:
I have a VS2005 VB.Net windows form application deployed to a share drive. The windows explorer security permissions for the application (.exe) file is set for Everyone with List Folder/Read Data not allowed. This is done so that users cannot take away a copy of the .exe file. When I execute the ..exe from the client computer I get .Net Framework Initialization Error: Unable to find a version of the runtime to run this application. The...
7
1434
by: Warren Tang | last post by:
Hi everyone I have a web application that is built for ASP.NET 2.0. Now I want to update it to 3.5, so that I can use the AJAX controls. What are the risks if I update it? What are the things that I need to pay attention to? Thanks in advance for your guidance!
0
7936
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, 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...
0
7874
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
8366
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
7997
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
6646
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...
0
5402
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();...
0
3853
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...
1
2383
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
1
1469
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.