Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > ClickOnce Global Assembly Cache Error
 

ClickOnce Global Assembly Cache Error

I have been able to deploy my project on a CD with ClickOnce. Since updating to 3.5 SP1 the following error occurs when distributing the project on PC with Windows XP. Although it will load on another PC with Vista.

‘Unable to install or run application. The application requires that assembly System Data Entity Version 3.5.0.0 be installed in the Global Assembly Cache (GAC) first.�/span>

My project property settings: Prerequisites, Windows Installer 3.1, Net Framework 3.5 SP1 both checked and Download Prerequisites from vender’s web site Checked

Manifest: Create desktop shortcut Checked.

I have searched the forum, although there appears to be similar threads none seem to address my problem.

I would be grateful for help with installing the system data entity in (GAC).

latoc

latoc  Tuesday, July 14, 2009 3:53 PM
It looks to me like it is looking for the Entity Framework, which shold be part of .Net. My guess is (and it's only a guess) they don't have .Net 3.5 SP-1 on the machine you're trying to install, but they do have .Net 3.5. IIRC, the Entity Framework was an addition to .Net 3.5 that is included in SP-1. Can you install SP-1 for the user and see if it makes the error go away?

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Wednesday, July 15, 2009 5:48 AM

Update on installing SP1 on machine with XP. Yes, the ClickOnce project did install without error. Clearly the missing file has been installed. However the problem remains, how to include the missing file in the publish project. Obliviously it’s no practical the install SP1 on all clients pc’s. Any suggestions will be Welcome.

latoc

hemo  Wednesday, July 15, 2009 6:01 PM
Is it possible to remove the dependency on .NET 3.5 SP1?
mcfnord  Thursday, July 16, 2009 10:23 PM

I have tried only checking Net Framework 3.5 but the error remains. I have just pickup another thread with the same problem with a Blog reference http://blogs.blackmarble.co.uk/blogs/msteeples/archive/2008/08/12/your-clickonce-clients-complain-of-a-missing-system-data-entity-reference-in-the-gac.aspx identifying the issues,which I am working through.

Initially it seems installing 3.5 SP1 and using any of the new features conflict with ClickOnce.

Any additional info would be helpful.

latoc  Friday, July 17, 2009 10:48 AM
I posted a question in a separate thread where someone is having a similar problem. I seem to remember that if you target .Net 3.5 Sp-1 and the user has .Net 3.5 already installed, it doesn't install the service pack.

You might see if you can find the service pack as a separate redistributable and use that as a prerequisite n addition to .Net 3.5 sp-1, in case it doesn't do the first install.

If I get a message back on the other post, I'll come post the answer here. I could be barking up the wrong tree.

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Tuesday, July 21, 2009 6:10 AM

Thank you. I am aware of the other thread and I am trying your suggestion, however, initially I am having problem merging the Framework, but will persevere.

latoc

latoc  Tuesday, July 21, 2009 9:09 AM

You can use google to search for other answers

Custom Search

More Threads

• Permissions difference from deploy to local file system vs UNC path?
• Creating custom action in setup project for windows application
• GenerateBootstrapper - my own programs
• Install to CSIDL_COMMON_DOCUMENTS from VS 2005 Setup Project
• Change the Background color of User Interface.
• Use Both Windows Installer and ClickOnce
• USERPROFILE variable blank
• What do ClickOnce changes depend on?
• Configuring ODBC connection in a Setup Project
• ClickOnce Error: "the manifest may not be valid or the file could not be opened"