Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 23rd, 2004, 11:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default VB.NET Executable Fully Trusted

Hello,

I have a .NET executable and I'm trying to put it on a server. I'm getting a security error, and the executable won't run. I put the whole project out on the share and open it, and I get the message:

The project location is not fully trusted by the .NET runtime. This is usually because it is a network share or mapped to a network share not on the local machine. If the output path is under the project location, your code will not execute as fully trusted and you may receive unexpected security exceptions.

I can understand why the project then wouldn't work, but how do I get the executable to work?

Thanks,

Brian Mains
__________________
Brian
Reply With Quote
  #2 (permalink)  
Old March 23rd, 2004, 11:30 AM
Registered User
 
Join Date: Jun 2003
Location: Blackburn, Lancashire, United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default


I assume you are attempting no touch deployment through IIS.

The .NET runtime installs some extra functions on the client under administrative tools in control panel. You need to set security in there to give your application full trust for the server you are deploying it from. You could build this into your install package.

You may also want to get hold of a little program called Netrun which will launch your app without throwing up a browser window and it also overcomes the issue that IIS doesn't like serving app.config files.
(I found this out from "Fast track VB .NET")
Reply With Quote
  #3 (permalink)  
Old March 23rd, 2004, 12:20 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

This executable actually is being used by a DTS package, but I have several options of placement for the executable. Should I put it on a web server?
Reply With Quote
  #4 (permalink)  
Old March 23rd, 2004, 12:22 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Also, this executable uses Trace.WriteLine() to output statistics. Should I disable this? Is that causing the problem?
Reply With Quote
  #5 (permalink)  
Old March 23rd, 2004, 12:47 PM
Registered User
 
Join Date: Jun 2003
Location: Blackburn, Lancashire, United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default


ignore my previous comment about no touch deployment using IIS.

If the exe lives on the same machine that is running the DTS package you should not have any problems. If you want to put it on a network drive you will need to configure .NET security on the machine running the DTS package to trust anything comming from that network drive.
Reply With Quote
  #6 (permalink)  
Old March 23rd, 2004, 02:11 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Would this be established through the .NET Framework 1.1 Configuration tool in the Administrative tools panel within the Control Panels?
Reply With Quote
  #7 (permalink)  
Old March 24th, 2004, 04:14 AM
Registered User
 
Join Date: Jun 2003
Location: Blackburn, Lancashire, United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, you can use the wizard to 'trust an assembly' and this will create an entry under 'Runtime Security Policy->Machine->Code Groups->All_Code'. It's been a while since I did this but I'm sure you can also export the setting as an install package once youv'e got it working.
Reply With Quote
  #8 (permalink)  
Old January 10th, 2005, 09:30 AM
Registered User
 
Join Date: Jan 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Same problem here, but all the wizards I try to run lack an interface. I see the description on top, and the next/previous buttons below, but nothing else. <sigh>

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Infopath Fully trusted Form does not open on Netwo MeghaP VB.NET 0 January 2nd, 2008 08:14 AM
Executable - vb.net KennethMungwira VB How-To 5 July 20th, 2006 07:26 PM
sample code "location not fully trusted" swartzbill2000 BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 July 20th, 2005 04:06 AM
Create Executable/Distrubution VB.net Program KennethMungwira VB.NET 2 December 12th, 2003 04:54 PM
How to fully UnInstall the VS .Net? Estuardo VS.NET 2002/2003 0 September 8th, 2003 10:41 PM



All times are GMT -4. The time now is 02:47 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.