Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai All,

I have developed a project in Visual Studio 2008. Then I installed .NET Framework 4.5 for using System.IO.Compression.FileSystem. When I publish my project and install in my system it works fine. But when when installed in other system it shows

"Unable to install or run the application. The application requires that assembly System.IO.Compression.FileSystem Version 4.0.0.0 be installed in the Global Assembly Cache (GAC) first.
Please contact your system administrator."

What should I do to recover this problem?


Thank you.
Posted
Comments
TheRealSteveJudge 5-Feb-15 6:53am    
1) What is the Target Framework of your solution?
2) Which version of the .Net Framework is installed on "the other system"?

1 solution

Try the following...

In the references section of Solution Explorer click on your reference to System.IO.Compression.FileSystem and confirm that you have the right version as a reference (hit F4 to see the properties if they are not visible). If not then remove the reference and re-add it.

Make sure property Copy Local is set to True

Make sure when you publish your project that everything from the bin folder is copied to the target machine.

I have assumed that the target machine also has .NET 4.5 installed - if not then include that as a pre-requisite for your install.

EDIT:
System.IO.Compression.FileSystem is only available in .NET 4.5+ and I've now realised that the question is (quite clearly) tagged with Visual Studio 2008. You will either have to use VS2012 (or possibly VS2010) to build your project or find an alternative means of doing file compression.
 
Share this answer
 
v2
Comments
K Dharanya 5-Feb-15 4:17am    
Thank you. In the prerequisites
1. .NET Framework 3.5 SP1
2. .NET Framework 3.5 SP1 Client Profile
3. Microsoft .NET Framework 4
4. Microsoft .NET Framework 4 Client Profile
are only available. 4.5 is not available.
CHill60 5-Feb-15 6:19am    
I've updated my solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900