Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 18th, 2011, 2:21 AM   #1
Serigraphie
Newbie
 
Serigraphie's Avatar
 
Join Date: Feb 2011
Posts: 29
Rep Power: 0 Serigraphie is on a distinguished road
unable to install or run the application

Hi everyone,
I have this problem, I developed the program in C#(winform) in my computer, when I try to publish it and install in my computer, it works fine. But when other users with different computer install, the are receiving this error : unable to install or run the application. The application requires that assembly microsoft.office.tools.excel version 8.0.0.0 be installed in the glibal assembly cache first.

I know that microsoft.office.tools.excel version 8.0.0.0 should be installed in their computers GAC, but the thing that I dont know is, what should I install? should I install .net framework in their computers?

Thank you very much.
Serigraphie is offline   Reply With Quote
Old May 18th, 2011, 6:13 AM   #2
Ancient Dragon
Achieved Level 70

 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 4,345
Rep Power: 10 Ancient Dragon will become famous soon enoughAncient Dragon will become famous soon enough
Re: unable to install or run the application

.NET framework has to be on the target computer, so if it doesn't have it then you will have to install it. See this chart for which version of .net framework will be needed.
__________________
PFO's FAQ is here
Forum Rules

There is no cow level (Diablo III)
If you never push yourself you will never improve (Diablo III)
Ancient Dragon is offline   Reply With Quote
Old May 18th, 2011, 9:06 PM   #3
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 766
Rep Power: 9 King is on a distinguished road
Re: unable to install or run the application

What I usually do for application deployment deployment testing is load up a clean XP install in a virtual machine (with VirtualBox) and install the application in their. This way you can figure out exactly what dependencies your application requires on the platform you are targeting.
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Old May 18th, 2011, 9:46 PM   #4
Robocop
Programmer
 
Join Date: Sep 2004
Location: Puerto Rico
Posts: 81
Rep Power: 10 Robocop is on a distinguished road
Re: unable to install or run the application

I think this has to do with ClickOnce deployment, along with the correspnding .Net Framework, because you say "publish".

1. Go to your project properties, "Publish" tab, click on the "Application Files" button and then on the form shown change the according referenced dll's "Publish Status" to "Include".

2. Re-publish your application.

Hope this helps.
Robocop is offline   Reply With Quote
Old May 19th, 2011, 2:37 AM   #5
Serigraphie
Newbie
 
Serigraphie's Avatar
 
Join Date: Feb 2011
Posts: 29
Rep Power: 0 Serigraphie is on a distinguished road
Re: unable to install or run the application

Hi Ancient Dragon,
Thank you for providing the chart!
Serigraphie is offline   Reply With Quote
Old May 19th, 2011, 2:37 AM   #6
Serigraphie
Newbie
 
Serigraphie's Avatar
 
Join Date: Feb 2011
Posts: 29
Rep Power: 0 Serigraphie is on a distinguished road
Re: unable to install or run the application

Hi King,
I will do that the next time I publish my applications.
Serigraphie is offline   Reply With Quote
Old May 19th, 2011, 2:38 AM   #7
Serigraphie
Newbie
 
Serigraphie's Avatar
 
Join Date: Feb 2011
Posts: 29
Rep Power: 0 Serigraphie is on a distinguished road
Re: unable to install or run the application

Hi Robocop,
That solved my problem.
Thanks a ton!
Serigraphie is offline   Reply With Quote
Old May 19th, 2011, 2:38 AM   #8
Serigraphie
Newbie
 
Serigraphie's Avatar
 
Join Date: Feb 2011
Posts: 29
Rep Power: 0 Serigraphie is on a distinguished road
Re: unable to install or run the application

Okay, this solved my problem, it seems that other computer's microsoft.office.tools.excel version is v9 or that they dont have that kind of dll. I opened the "applications" tab and included the required dll's as well as prerequisites.

I cleaned, I build, then re-published, the error was gone.

Thank you very much all for your help.
I appreciate it so much!
Serigraphie is offline   Reply With Quote
Old May 19th, 2011, 8:51 AM   #9
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 766
Rep Power: 9 King is on a distinguished road
Re: unable to install or run the application

That is good you got it going, but are you legally allowed to distribute the Excel DLL? I am sure Microsoft requires the person using that DLL to pay for Excel, which they won't have to do if you distribute the dll with your application. This is something you may have to look into.
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Application wont run on terminal services bart21 C# 1 Dec 2nd, 2010 8:11 AM
Run app without install permissions Shmotka C# 3 Nov 9th, 2009 9:54 AM
triggering another program to run using serial port infineonintern C++ 11 Jul 21st, 2009 8:02 AM
running a console application .jar file by double clicking cwl157 Java 3 May 22nd, 2008 1:22 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:38 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC