Solved

Application deployment

Posted on 2003-10-29
3
406 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now