Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Unable to install or run the application - System.Web.Abstractions required?
 

Unable to install or run the application - System.Web.Abstractions required?

Hi,
All of the sudden when I try to installa seasoned ClickOnce application, I'm getting the error shown below. I don't know if it's saying this is a requirement of the application (which it shouldn't be since this is a .NET 2.0 application) or of ClickOnce itself. Can anyone shed some light on this?

Unable to install or run the application. The application requires that assembly system.web.abstractions version 3.5.0.0 be installed in the global assembly cache (gac) first. Please contact your system administrator.
_xr280xr_  Tuesday, August 18, 2009 3:43 PM
Thanks for your response. I'm in VS 2005 which I guess doesn't have a target framework option and doesn't seem to be "smart" enough to limit the referenced assemblies to .net 2.0.

The problem was that during development, I somehow added a new web custom control or something like that instead of a new class. That added references to System.Design, System.Web, System.Web.Extensions and System.Web.Extensions.Design. I deleted the file immediately but the references remained there w/out me knowing they were added.

The strange part is that even with these references I didn't have a reference to System.Web.Abstractions in my application manifest after building (which makes sense because I don't even have the assembly). That reference showed up when another developer built and published the application. After removing the references that I accidently added, he built the project and the reference to System.Web.Abstractions was also gone so I guess it was a dependency of one of the other assemblies.
  • Marked As Answer by_xr280xr_ Tuesday, August 18, 2009 11:19 PM
  •  
_xr280xr_  Tuesday, August 18, 2009 5:51 PM
Have you added any assemblies or files to your deployment since you last released it? You need to check the list of files in your publish folder against the last version to make absolutely certain.

Did you add any projects to your solution since you last released it? Can you double-check the target framework in the Application tab and make sure it's .Net 2.0?7

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Tuesday, August 18, 2009 5:43 PM
Thanks for your response. I'm in VS 2005 which I guess doesn't have a target framework option and doesn't seem to be "smart" enough to limit the referenced assemblies to .net 2.0.

The problem was that during development, I somehow added a new web custom control or something like that instead of a new class. That added references to System.Design, System.Web, System.Web.Extensions and System.Web.Extensions.Design. I deleted the file immediately but the references remained there w/out me knowing they were added.

The strange part is that even with these references I didn't have a reference to System.Web.Abstractions in my application manifest after building (which makes sense because I don't even have the assembly). That reference showed up when another developer built and published the application. After removing the references that I accidently added, he built the project and the reference to System.Web.Abstractions was also gone so I guess it was a dependency of one of the other assemblies.
  • Marked As Answer by_xr280xr_ Tuesday, August 18, 2009 11:19 PM
  •  
_xr280xr_  Tuesday, August 18, 2009 5:51 PM

My guess is the System.Web.Abstractions is used by one other other web dll's.

Congrats on fixing your problem!

RobinDotNet


Click here to visit my ClickOnce blog!
RobinDotNet  Tuesday, August 18, 2009 11:18 PM

You can use google to search for other answers

Custom Search

More Threads

• Possible to call a script from ClickOnce Deployment?
• How to save VS2008 project into VS2005?
• User customized program group during setup
• Connection string problem
• No program is installed and no error recived
• Automatic Versioning
• IIS Frontpage Extension, Sharepoint & ClickOnce
• checking admin permissions to deploy on targer machine
• .net framework 3.0 unable to install
• How to update Pre requisites in click once deployment methodology