Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Problem with delopying my application
 

Problem with delopying my application

Hi

I have written an application in VB.NET, with Visal Basic Express 2008. I have published my application with the publish wizard, and then copied the contents of the folder into the My Documents of the other build of Windows I have installed on my machine (I have 2 builds of Windows Vista Home Premium on the same computer).

The application installs fine, but when it tries to start, Windows displays an error message saying "SFXLib has encountered a problem and has to close." SFXLib being my software.

What is going wrong? I urgently need to get this software working on the 2nd build of windows.

Thanks
Guy Joseph - Intel Quad Q9450, 4Gb Ram, 1Tb Hard Drive, NVidia 8800GT, Marian Marc 8, VB Express 2008

Edit: I have just sucessfully installed my software into the 1st build of my computer, which was the build that I wrote the software on. It does not work on the other build.
  • Edited byGuyJos Monday, July 20, 2009 3:50 PMAdded more detail
  • Moved byYiChun ChenMSFTWednesday, July 22, 2009 10:04 AMDeployment issue (From:.NET Framework Setup)
  •  
GuyJos  Monday, July 20, 2009 3:47 PM

Hi GuyJos,

Would you mind providing me the setup logs on both the platforms. Please follow this link to retrieve the logs: http://msdn.microsoft.com/en-us/library/ms404265.aspx.

From my experience, the issue is related to the COM component. Please follow this link to deploy the COM components:

http://msdn.microsoft.com/en-us/library/ms165432(VS.80).aspx.

Let me know if this helps.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
  • Marked As Answer byGuyJos Wednesday, July 22, 2009 12:16 PM
  •  
Aland Li  Wednesday, July 22, 2009 11:55 AM

Hi GuyJos,

Would you mind providing me the setup logs on both the platforms. Please follow this link to retrieve the logs: http://msdn.microsoft.com/en-us/library/ms404265.aspx .

From my experience, the issue is related to the COM component. Please follow this link to deploy the COM components:

http://msdn.microsoft.com/en-us/library/ms165432(VS.80).aspx .

Let me know if this helps.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.

From all of those pages, all I needed to do was to set the "Isolated" property of the reference to True. It now works perfectly, even after I unregistered the controls that I manually registered!

Thanks very much to everyone who has helped me - I would never have been able to work this out myself!

Guy Joseph

Guy Joseph - Intel Quad Q9450, 4Gb Ram, 1Tb Hard Drive, NVidia 8800GT, Marian Marc 8, VB Express 2008
GuyJos  Wednesday, July 22, 2009 12:18 PM
I'm not sure what you mean by 2 "builds" of Vista. Do you mean you've dual booted with Vista32 and Vista64, and it doesn't work on the 64bit platform? The publish wizard creates a *.application file which you can run on other systems to install the software. Copying the files from the VS projects directory to a different place doesn't guarantee that it will work because it will need access to libraries, etc and the .NET Framework.

If it's an issue with the 64bit platform "build" then you can try targeting the x86 CPU platform and see if it runs OK. Follow these steps to target another platform:

Go Tools -> Options..., click Project and Solutions TreeView item and make sure on the right hand side "Show advanced build configurations" CheckBox is checked. Click OK. Then go Build -> Configuration Manager..., and under Platform where it says Any CPU, change it to <New...>. Change the Itanium to x86.

Otherwise I've guessed too much what the problem is and you'll have to clarify a bit more.

Hope this helps!

EDIT:
Since both builds are 32bit, make sure you have .NET 3.5 SP1 installed on the build your software has problems on.
  • Edited byetisoppo Monday, July 20, 2009 10:16 PM
  •  
etisoppo  Monday, July 20, 2009 9:56 PM
The 2 builds are both the same copy of Vista (32 bit). The reason I have 2 builds is because I use the 2nd one for recording music, so it literally only has my music software installed to keep it running smoothly.

I've been through the process you detailed and changed to Release on x86 processors. I'll reboot into the other build and see if we have any luck!

Thanks
Guy Joseph - Intel Quad Q9450, 4Gb Ram, 1Tb Hard Drive, NVidia 8800GT, Marian Marc 8, VB Express 2008

Edit: No luck!
  • Edited byGuyJos Monday, July 20, 2009 10:13 PMAdded result of test
  •  
GuyJos  Monday, July 20, 2009 10:01 PM
Hi GuyJos,

I am moving this thread from Base ".NET Framework Setup" forum to the "ClickOnce and Setup & Deployment Projects" forum, since the issue is related to deployment. There are more deployment experts in the "ClickOnce and Setup & Deployment Projects" forum.

Thanks
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
YiChun Chen  Wednesday, July 22, 2009 10:03 AM
Hi GuyJos,

I am moving this thread from Base ".NET Framework Setup" forum to the "ClickOnce and Setup & Deployment Projects" forum, since the issue is related to deployment. There are more deployment experts in the "ClickOnce and Setup & Deployment Projects" forum.

Thanks
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Hi

Thanks very much - I am really new to programming so it's great to have people who know what they're on about!

I have finally managed to install this software on the 2nd build of the computer. I decided to first install VB 2008 Express then try to debug the project. The result that was 2 references couldn't be found. They were 2 3rd party controls (namely the MABRY Midi I/O and Midi File controls). I added them to the toolbox by right clicking then copying the .ocx files into the C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE folder on the new build of Windows. After this, the references are found and the software works! I then uninstalled VB 2008 Express, as I won't be needing it on that build and installed the software from the setup.

The problem I have it that I don't want my users to have to go through this process!

In the References pane of the project settings, this is listed:

Reference Name: Mabry Midi I/O Control
Type: COM
Version: 1.1.0.0
Copy Local: True
Path: C:\Users\Guy\Documents\Visual Studio 2008\Projects\SFXLib2\SFXLib2\obj\Release\AxInterop.MidiioLib.dll

What can I do?

Thanks

Guy Joseph - Intel Quad Q9450, 4Gb Ram, 1Tb Hard Drive, NVidia 8800GT, Marian Marc 8, VB Express 2008
GuyJos  Wednesday, July 22, 2009 10:48 AM

Hi GuyJos,

Would you mind providing me the setup logs on both the platforms. Please follow this link to retrieve the logs: http://msdn.microsoft.com/en-us/library/ms404265.aspx.

From my experience, the issue is related to the COM component. Please follow this link to deploy the COM components:

http://msdn.microsoft.com/en-us/library/ms165432(VS.80).aspx.

Let me know if this helps.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
  • Marked As Answer byGuyJos Wednesday, July 22, 2009 12:16 PM
  •  
Aland Li  Wednesday, July 22, 2009 11:55 AM

Hi GuyJos,

Would you mind providing me the setup logs on both the platforms. Please follow this link to retrieve the logs: http://msdn.microsoft.com/en-us/library/ms404265.aspx .

From my experience, the issue is related to the COM component. Please follow this link to deploy the COM components:

http://msdn.microsoft.com/en-us/library/ms165432(VS.80).aspx .

Let me know if this helps.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.

From all of those pages, all I needed to do was to set the "Isolated" property of the reference to True. It now works perfectly, even after I unregistered the controls that I manually registered!

Thanks very much to everyone who has helped me - I would never have been able to work this out myself!

Guy Joseph

Guy Joseph - Intel Quad Q9450, 4Gb Ram, 1Tb Hard Drive, NVidia 8800GT, Marian Marc 8, VB Express 2008
GuyJos  Wednesday, July 22, 2009 12:18 PM

Hi Guyjos,

Thanks for your sharing your testing results. Welcome to ask questions here.

Best regards,
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Wednesday, July 22, 2009 12:30 PM
I may take up this offer of asking questions!

I now have the following in my error list:

Warning | 1 | Problem isolating COM reference 'AxMidiioLib': Registry key 'HKEY_CLASSES_ROOT\CLSID\{852e65a5-72f8-11cf-840e-444553540000}\MiscStatus' was not imported.
Warning | 2 | Problem isolating COM reference 'AxMidiioLib': Registry key 'HKEY_CLASSES_ROOT\CLSID\{852e65aa-72f8-11cf-840e-444553540000}\MiscStatus' was not imported.

Is this a big deal? If so then what can I do the resolve it?

Thanks again

Guy Joseph - Intel Quad Q9450, 4Gb Ram, 1Tb Hard Drive, NVidia 8800GT, Marian Marc 8, VB Express 2008
GuyJos  Thursday, July 23, 2009 9:52 AM

You can use google to search for other answers

Custom Search

More Threads

• Deploy chm file with click-once
• What does vsdrfCOM mean in a setup project?
• Changing Web service URLs stored in User Settings in Clickonce
• ClickOnce problem: The application is signed with a different key than the existing application on the server
• ClickOnce, SocketExceptions, and corporate proxy servers
• click once only possible with IIS ?
• Is it Okay to have a Publish Status of Include for Referenced Components as far as Possible
• Destination program folder used in OneClick setup
• Problems while deploying msi using SMS Server.
• How to make the installer leave the app.config file after uninstallation.?