Advertisement

04.03.2008 at 04:30PM PDT, ID: 23294601
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

How to run an .exe from a remote machine

Tags: Microsoft, vb.net, vs2005, running an .exe from a remote machine
I have my .NET .exe located on a server with a remote PC mapping a drive to that location. When clicking on the .exe file from the remote PC I get the standard windows exception error. Never was a problem with VB6. How do you run a .NET .exe on a remote PC without having to copy it to each one locally ?
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: cehrnow
Solution Provided By: graye
Participating Experts: 3
Solution Grade: A
Views: 209
Translate:
Loading Advertisement...
04.03.2008 at 04:59PM PDT, ID: 21278042

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.03.2008 at 05:29PM PDT, ID: 21278160

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.03.2008 at 05:50PM PDT, ID: 21278245

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.03.2008 at 08:04PM PDT, ID: 21278784

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.03.2008 at 08:07PM PDT, ID: 21278794

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.04.2008 at 01:41AM PDT, ID: 21279838

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.04.2008 at 01:42AM PDT, ID: 21279842

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.04.2008 at 02:14AM PDT, ID: 21279923

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.04.2008 at 02:16AM PDT, ID: 21279933

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.04.2008 at 10:39AM PDT, ID: 21283974

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.04.2008 at 10:44AM PDT, ID: 21284011

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.04.2008 at 11:10AM PDT, ID: 21284269

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.04.2008 at 05:15PM PDT, ID: 21286542

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.05.2008 at 01:10AM PDT, ID: 21287424

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.05.2008 at 01:40PM PDT, ID: 21289540

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.06.2008 at 01:26PM PDT, ID: 21293027

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.06.2008 at 01:38PM PDT, ID: 21293069

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.06.2008 at 02:01PM PDT, ID: 21293135

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.06.2008 at 04:10PM PDT, ID: 21293509

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.07.2008 at 10:09AM PDT, ID: 21298732

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
04.03.2008 at 04:59PM PDT, ID: 21278042
 
04.03.2008 at 05:29PM PDT, ID: 21278160
You must have the appropriate .net version installed in the remote pc. If .NET is not installed on the remote pc the exe will not run. The reason why the executable of vb6 can be run without installing, is because by default mdac was installed in windows OS.

.NET version            Visual studio

.net 1.1                    Visual Studio 2003
.net 2.0                    Visual Studio 2005
.net 3.0                    Visual Studio 2008


I hope it helps.
 
04.03.2008 at 05:50PM PDT, ID: 21278245
xentelworker: I need each remote user to start the .exe from their own PC.
JackOfPH: the application runs fine if calling a local copy of the .exe.
 
04.03.2008 at 08:04PM PDT, ID: 21278784
>>JackOfPH: the application runs fine if calling a local copy of the .exe.

Running on the server or on the local of the remote Computer?
 
04.03.2008 at 08:07PM PDT, ID: 21278794
As I have mentioned earlier YOU HAVE TO INSTALL the .net framework on each users computer. If you do not do this it will not work.

 
04.04.2008 at 01:41AM PDT, ID: 21279838
the application runs fine if calling a local copy - therefore eveything is in place including the .NET framework
 
04.04.2008 at 01:42AM PDT, ID: 21279842
"local" as in the remote computer
 
04.04.2008 at 02:14AM PDT, ID: 21279923
Did you install the .net framework on the users computer?
 
04.04.2008 at 02:16AM PDT, ID: 21279933
YES !!!
 
04.04.2008 at 10:39AM PDT, ID: 21283974

Rank: Sage

Hang on a second....

This is the classic  "Code Access Permissions" problem and is related to the .Net Framework configuration on the client PC.  By default, the .Net Framework's own security settings will not allow any program to run from a network share that requires "significant" access to local resources (files, registry, APIs, etc).  

You must adjust the Framework's security settings on the client PC to allow this to happen.  

Unfortuneately,  Microsoft deciced to not deploy the ".Net Framework 2.0 Configuration" applet with the .Net Framework runtime.   This decision forces you to create and deploy an MSI file to set the .Net security on client PCs or to use the CASPOL command-line utility

There are 3 steps to set Code Access Permission on client PCs

1) Configure the settings.  On a developement PC (which does have the Configuration applet), use the applet to set the security settings the way you want via the "Configure Code Access Security Policy" link.  Note:  Make sure you use the 2.0 version of the applet, as changes to the 1.1 configuration have no effect on 2.0 applications.

2) Create an MSI file.  From inside the applet, click on the "Create Deployment Package".   When the Wizard opens, click on the "Machine" security policy, and select a folder/name of the MSI file that will be created.

3) Deploy the MSI file.  Typically you'd drop that MSI file into a GPO and let Active Directory do its thing... or you can deploy it via any number of methods.  

 
04.04.2008 at 10:44AM PDT, ID: 21284011

Rank: Sage

oops, I missed a line when I copied and pasted the solution

You must adjust the Framework's security settings to allow this to happen.  If you plan to have many such application available from a network share, the most reasonable approach would be to change the settings to allow all applications to run from network shares.   You do this from the .Net Wizards control panel applet.  Navigate to "Adjust .Net Security", "Make changes to this computer",  Local Intranet.  Then move the slider to "Full Trust".
 
04.04.2008 at 11:10AM PDT, ID: 21284269
Couple of possible dumb questions !

1. How do you know if the development PC has the "Configuration applet" installed ?
2. Where is "Adjust .Net Security" ?
 
04.04.2008 at 05:15PM PDT, ID: 21286542

Rank: Sage

When you install Visual Studio or the .Net SDK on a "development" PC,  you get a shortcut in the Control Panel (under Administrartive Tools) called: "Microsoft .Net Framework 2.0 Configuration".   BTW:  I have heard of folks who un-installed Visual Studio 2005 in order to install Visual Studio 2008, and in the process loss the shortcut in Adminstrative Tools.

So, after you click on the applet, there will be web-style hyperlinks... the one we want is "Configure Code Access Security Policy".   After that, click on the link called "Adjust Zone Security".
 
04.05.2008 at 01:10AM PDT, ID: 21287424
So..looks as though all that's necessary is to set the Intranet level on the remote PC to Full Trust ? Did this and called the app again on the mapped drive but still get the usual Windows Exception error.
 
04.05.2008 at 01:40PM PDT, ID: 21289540

Rank: Sage

Make sure you were using the 2.0 applet (and not the 1.1 applet).    Also, make sure you perfromed this operation on each client PC... this would typically be done via GPO, but you can do it "by hand" using the MSI install package (if you were following the directions above).
 
04.06.2008 at 01:26PM PDT, ID: 21293027
The .exe has been copied onto a server and the development PC is acting as the client. The client PC has now got the Intranet Trust set to Full - this till fails. Do you still think it necessary to create the described .msi ?
 
04.06.2008 at 01:38PM PDT, ID: 21293069

Rank: Sage

No, that should be sufficient.   I suspect the problem may now be related to the "zone" for the server.   By default, the "Local Intranet" zone is comprised of those PCs/Servers that meet any of the following:

Addressed via NetBIOS UNC name (ie \\SERVER1\Share, and not server1.somedomain.com)
Those PCs that bypass the proxy server (if you have a proxy server)

An easy way to tell, is to use the Window Explorer to connect to the network location where the exe is, and then look at the bottom right-hand corner of the status bar to see if the icon shows a Intranet connection.
 
04.06.2008 at 02:01PM PDT, ID: 21293135
Strange, I've mapped the drive but it shows as Internet even though it was mapped using \\server\share. Both machines physically connected via the same router.
 
04.06.2008 at 04:10PM PDT, ID: 21293509

Rank: Sage

Well at least we're on the right track now!

What's the OS's invovled (both on client side and the server side)?   Sometimes the "automatic" zone detection doesn't work (particularly in WinVista), and you have manually make the settings

What's the Internet Explorer zones say.... IE, Tools, Internet Options, Security, Local Intranet, Sites button
 
04.07.2008 at 10:09AM PDT, ID: 21298732

Rank: Sage

I wrote an article for my web page on this subject...  you might find it interesting!

http://home.hot.rr.com/graye/Articles/CodeAccessSecurity.htm
Accepted Solution
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628