Guillermo G. Blog

Software Architect
ASP.NET MCP
"The best way to predict the future is to invent it"

Tip: System.Data.Entity and ClickOnce Deployment Issue

I was developing a Windows forms application in .net framework 3.5, and I needed to include ClickOnce Deployment in my solution project. Recently I downloaded and installed the last Service Pack (SP1) for Microsoft Visual Studio 2008 and .net framework 3.5, so far, everything was normal. The only application setup prerequisite was .net framework 3.5.

I published my application in a web server normally, and when I click the Install button to start the install process, I received the next error message from the ClickOnce Installer:

ClickOnce Message

The funny thing is that I didn't have any reference to System.Data.Entity in my solution, so? what's wrong? Why was ClickOnce requesting this assembly?

Well, after a quick search in Google, I found and read this Post from Mat Steeples, and I understood why ClickOnce was referencing System.Data.Entity assembly, simple!, I included a new feature (Create a Desktop Icon) and that functionality requires the mentioned assembly.

Thanks to Mat Steeples for sharing it.

Comments

funny wallpaper » Tip: System.Data.Entity and ClickOnce Deployment Issue said:

Pingback from  funny wallpaper » Tip: System.Data.Entity and ClickOnce Deployment Issue

# August 20, 2008 4:14 PM

Dave T said:

Click Once starts out nice but eventually it becomes pure evil. Don't believe me - Search Google for Click Once Problems. Hanker down and use Windows Installer.

# August 21, 2008 1:00 AM

gugonzar said:

Thanks Dave for your suggestion, but it's difficult to change the solution's deployment method at this time. Anyway I'll remember your comment, for future developments.

# August 21, 2008 5:48 PM

Paley said:

Stay well clear of ClickOnce - I could have manually installed my software on 1000s of desktops in the time I have wasted trying to get ClickOnce to work

# January 16, 2009 8:12 AM

Deb Shankar Jha said:

Please send me a small application on the click once applicationusing VisualStudioC#3.5 ...I will be helpful ..please send as soon as possible..

# February 13, 2009 8:36 AM

gugonzar said:

Paley, it's true sometimes setting up ClickOnce could be a headache, but it works :).

# February 20, 2009 11:41 AM

gugonzar said:

Deb Shankar Jha,

Look this post: weblogs.asp.net/.../how-to-use-clickonce-to-deploy-your-applications.aspx

Maybe it can help you!

# February 20, 2009 11:42 AM

Prashant said:

you should distribute the .net Framework 3.5 SP1. with your Click once deployment. You have to download the  .net Framework 3.5 SP1 redistributable package for same and inlcude in prerequisit files.

# October 15, 2009 1:51 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)