Solved

Application deployment

Posted on 2003-10-29
3
408 Views
Last Modified: 2013-11-22
Hi

I've developed an application in VB.NET and i am now trying to deploy this on a different machine not having vb runtime installed or anything really....(more or less a blank win2k or XP)
Following one books instructions i have done the following:
Included a setup & deployment project into my solution.
I checked for set up a Windows application and then to include:
Primary output, localized resources and content files.
Under User's programs menu i included a folder containing the exe file.
When trying to build solution (properties set to release) i get a warning:
WARNING: File 'ProduktBildeRapportering.exe' should not be installed into a User's Profile folder because it may not be available to all users.

and error:
ERROR: 'oledb32.dll' should be excluded because its source file 'C:\Program Files\Common Files\System\Ole DB\oledb32.dll' is under Windows System File Protection.

The build does give a .msi file but it is only 1.5 mb and trying to install the app on a machine without (even with) vb runtime result in an application that does not want to start....just throws a lot of errors or rather:
Exception that cannot be handled.....followed by process and thread ids
Looking at the output of the build it hardly packs any dll files at all....only a few related to crystal reports. I had expected a much larger file, with a lot more dll files for the vb runtime?

Does anyone know what why it does not work or how i should create a deployment program?

Thanks!
0
Comment
Question by:KjartanM-S
  • 2
3 Comments
 
LVL 7

Expert Comment

by:Z_Beeblebrox
ID: 9650648
You need to either separately install the .Net framework, or manually include it in your MSI. Here is a website that explains how you do this.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/redistdeploy.asp

Zaphod.
0
 

Author Comment

by:KjartanM-S
ID: 9665915
Hi
(sorry about the late answer, had a defect cable modem)

.NET framework is already installed. The setup would not proceed until it was downloaded and installed.
By excluding the oledb32.dll it builds but when installed on a clean machine (XP and .NET framework) it only gives me a error message when trying to run it.
"The application has generated an exception that could not be handled" ....followed by process and thread id.

While installling it on the computer used to develop the app it runs fine (with the exception of using DataLink to set the link to a different DB server)

Any ideas on what could be wrong with the deployment? What could be missing in the deployment?
0
 
LVL 7

Accepted Solution

by:
Z_Beeblebrox earned 250 total points
ID: 9675009
Hi,

Sorry, I don't know much at all about .Net deployments. You might want to make sure that any DLL's that are in your references list are either part of the framework or part of your installation package. Other than that, I can't really be of any help.

Zaphod.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question