DbProviderFactoryRepository: Managing DbProviderFactories in code(sandrinodimattia.net)

submitted by sandrinosandrino(270) 1 year, 3 months ago

After creating a small console application with LINQ to SQL and SQL CE 3.5 all worked fine. Based on the How to: Deploy a SQL Server Compact Edition Database with an Application article on MSDN I deployed this small application to Windows XP running on a Virtual Machine with only a few Service Packs installed. Running the application raised an InvalidOperationException: Cannot open 'TestDatabase.sdf'. Provider 'System.Data.SqlServerCe.3.5' not installed. When working with LINQ to SQL it wasn't sufficient to deploy the assemblies to the applciation folder, the application also required a provider for SQL Server CE. After a quick search I found the following topic on the MSDN forum: Can I XCopy SQL CE 3.5? yes and no, see message. In this topic someone described how you can create the provider using the App.config

add a comment |category: |Views: 4

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story