Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Framework 2 Deployment problem
 

Framework 2 Deployment problem

I have a VB.Net 2003 WinForms application that I want to port to VB.Net 2005 but I can’t figure out how to deploy it in Framework 2. It is a 3rd party app that hooks to Microsoft Dynamics and in Framework 1.1 I used the xcopy method of deployment, i.e. the exe was copied to the Dynamics folder on the server and referenced on the Dynamics menu. Full Trust was set for the exe by using the Framework 1.1 wizard on the client computers that connected to the server and ran the Dynamics programs.

I would like to do the same thing in Framework 2 except the default Framework 2 install does not create a Manage Trust wizard in the control panel. AFICT, ClickOnce only sets trust on the computer on which it is installed, which in this case is the server. I need the trust on the client computers that will run the exe too. Sometimes my software is installed on networks which are not domains so setting the domain trust will not work in every circumstance.

Anyone have an idea on how I can do this?

Price Brattin  Thursday, February 16, 2006 2:16 PM

You can use 'caspol.exe' on a client machine to configure trusts (the Framework configuration toolis not part of the .NET 2.0 runtime download). You could also create a small installation program that the user could run and programatically set the trusts.

I guess I don't really understand why you would have to do that, though. I had a very similar situation...a .NET 1.1 Smart Client app that required full trust. I am not familiar with Dynamics. Is Dynamics a web based app? Are you running it using an 'http://server/myapp.exe'? To use click-once you change the reference from 'myapp.exe' to 'myapp.application' and the 2.0 Framework will take care of the trusts (it prompts the user and updates the .NET 2.0 Configuration as a trusted application). More information might help me understand the issue.

bbayless  Thursday, February 16, 2006 11:02 PM

Microsoft Dynamics SL used to be called Microsoft Business Systems/Solomon and is the largest VB system in the world. It is VB6 running using SQLServer and fat clients.

I am not running it yet on 'http://server/myapp.exe'. Instead I publish to "C:\VBProjects\MyApp\Publish" and tell it I am installing from a CD. I copy the whole publish folder to a CD, go to another server and run setup.exe in the publish folder to install it. It installs fine and puts a link on the start menu. When I run it from the start menu, it runs fine. However, I do not want to run it from the start menu. Instead, I want to copy the exe to a folder in the Dynamics folders and let Dynamics run it when it wants to. The problem is that when Dymanics runs it (or I dblclick onthe exein Windows Explorer) it throws a security exception.

That is one problem. The other is that other computers, fat clients, connect to the server housing the Dynamics exe's via the intranet and run the Dynamics programs. Those fat clients need trust on my program also.

How can I do this? Is there some place in the documentationwhere I can read aboutthis issue andfigure out how to do it?

Price Brattin  Friday, February 17, 2006 11:19 PM

You can use google to search for other answers

Custom Search

More Threads

• installing printer
• add Prerequisits of projects
• What if .Net Framework 1.1 isn't installed
• How to Access varaibles in JavaScript from Vb.NET
• Where to start
• Problem in Setup and Deployment project
• Default location for Downloaded Assemblies
• DSOFramer deployment
• Updating SQL Databases after Deployment
• ClickOnce "Install" Button Does Nothing