Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Cannot download application, the application is missing required files

Posted on 2011-02-25
29
Medium Priority
?
2,652 Views
Last Modified: 2012-05-11
Hey,

Every time I compile my application, during install I get the error:
Cannot download application, the application is missing required files

It should not be downloading anything, as it is a local install...

Any idea why this is?

Thanks!
Jessee
0
Comment
Question by:Letsgetcoding
  • 13
  • 10
  • 2
  • +1
27 Comments
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 34987557
is it asp.net / windows?
0
 

Author Comment

by:Letsgetcoding
ID: 34987623
Sorry, was tired when I wrote this.

Software is Microsoft Visual Studio 2010 on Windows 7.
0
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 34987748
Sorry I stil dont get you. You are using VS2010 on Windows 7 and you are compiling which application? is it a web application or windows application?
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 

Author Comment

by:Letsgetcoding
ID: 34987763
Oh sorry.

It is a Windows Application.
0
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 34987787
Please provide the code the exception is thrown.
0
 

Author Comment

by:Letsgetcoding
ID: 34987861
There is no exception thrown as it is not in the editor.

Let me clarify:
After I have compiled my application, I send the setup.exe file to my friend. He then tries to install it on his machine, and gets this error: Cannot download application, the application is missing required files

Sorry I did not explain it very well.
0
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 34987881
Is that setup file an installation file or an exe file from your applications's debug folder?
0
 

Author Comment

by:Letsgetcoding
ID: 34987931
It's the installation file create by going to Publish > Publish Wizard.
0
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 34998291
You might not have properly published the project. Please provide the steps you followed.
0
 

Author Comment

by:Letsgetcoding
ID: 34998412
Ok.

Clicking My Project. Switching to the Publish tab, clicking the Publish Wizard button.
Changing publish location to desktop and clicking next.
Clicking the CD-ROM option and clicking next.
Clicking the option to not check for updates and clicking next.
Clicking finish.
0
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 35000224
you need to share the whole folder that is created while publishing for installation. i.e.,

You folder should contain Application Files folder, *.Application file, setup.exe file.

There are other ways to create a setup file. You can add a new setup project to your existing project and create setup.exe.

See this link .
http://www.dreamincode.net/forums/topic/58021-deploying-a-c%23-application-visual-studio-setup-project/
0
 

Author Comment

by:Letsgetcoding
ID: 35004456
Hey there,

I had a look at the link, but I cannot see in my project where the option is to create an installation project.
0
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 35007511
It is not in your project. You need to add a new project to the existing project from File-->Add-->New Project-->Other project types-->Setup and Deployment. Please go through the complete tutorial.
0
 

Author Comment

by:Letsgetcoding
ID: 35014937
There is no Other Project Types, nor is there anything I can see about Setup and Deployment.
0
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 35017804
May be you need to install Visual Studio 2010 again to include setup and deployment project types.
0
 

Author Comment

by:Letsgetcoding
ID: 35017904
Will it mess up anything in my projects uninstaling/ reinstalling?
0
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 35018167
What edition of VS 2010 r u using?  I dnt think u need to re install bur can update it to have this option
0
 

Author Comment

by:Letsgetcoding
ID: 35018952
Express edition.
0
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 35020260
It looks like VS 2010 express edition doesn't have the deployment project.

http://www.dreamincode.net/forums/topic/199820-deployment-options-with-vs-2010-express/
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 35021244
On the Publish tab, press the Application Files button. Against each file that is shown there, select "Include" in the drop down.

Make sure your friend has the .NET framework installed.

If possible, show us a screenshot of the Application Files window.
0
 

Author Comment

by:Letsgetcoding
ID: 35025272
Screenshot attached.

 screenshot
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 35035342
Change the Required(Auto) to Required for the mysql.data.dll.
0
 

Author Closing Comment

by:Letsgetcoding
ID: 35056922
Thanks heaps!
0
 

Expert Comment

by:brightentech
ID: 35149457
I had the same problem.
Solution:
When you publish a program by using Visual Studio, in the "How will users install the application" section of Publish wizard, you need to choose "From a Web site" not "From a UNC path or files hare".
If you do this, you won't get the same error again.
Image-1.png
0
 

Author Comment

by:Letsgetcoding
ID: 35149695
Even though I am installing from a local file?
0
 

Expert Comment

by:brightentech
ID: 35150920
Especially if you are installing from a local file!
When you try to deploy an installation package from a local file, publish wizard adds such lines into manifests
 "file://c:\user_name\documents\application........."
 
Because of these paths are local, a remote installer cannot find the files and give "missing required files" error.
You need to prepare (host) a web page and keep the installation files in it. I mean publish your program by selecting "From a Web site" option in the publish wizard.
Good Luck...
0
 

Author Comment

by:Letsgetcoding
ID: 35175334
Problem is my Application is available offline which means it has to be installed locally.

Any other way?
0

Featured Post

Technology Partners: 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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

876 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