2

I deployed a ASP.NET MVC4 app with SQL Server CE database, but I'm getting

Sorry, an error occurred while processing your request

I am using VS2012 to publish this app to azure website. How can I solve this issue? Thanks.

6
  • Read this answer and verify that it isn't the same problem Commented Sep 16, 2012 at 11:08
  • Thanks, I think it might be different problem, as I am using .net framework4.This is working fine locally. I think it might be missing some dependency files.But I am not sure which one is missing. Commented Sep 17, 2012 at 9:35
  • Have you turned on the debug settings in the web.config to get the ASP.NET Yellow Screen of Death with more specific error information? If so, I would suggest posting an image of that (scrubbing it of any private information of course) Commented Sep 18, 2012 at 2:37
  • After turning on debug settings, I get the message: Could not load file or assembly 'System.Data.SqlServerCe.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. Commented Sep 18, 2012 at 11:51
  • Can you verify that this is the proper version of the assembly, as well as check to see that it is getting uploaded to azure-web-sites you can browse the files that were uploaded to your site via ftp. I've seen issues in the past where a .gitignore was filtering out a bin directory which would cause this exact problem (and multiple others) Commented Sep 18, 2012 at 22:37

2 Answers 2

2

To summarize and so an answer can get marked on this to help the next person that comes by.

When running into issues on FTP is a handy debugging tool which enables you to:

  • Verify that the dll exists in your bin directory
    • Sometimes the .gitignore file blocks directories from being checked in
  • Verify that your web.config file has the proper version of the assembly configured
    • NuGet can help, but it's ultimately up to you to verify your dependencies
Sign up to request clarification or add additional context in comments.

1 Comment

Another handy tool is WebMatrix 2 with which you can connect and have a remote view. It works nicely with WAWS btw.
1

Here is a good article to follow on the subject: http://www.dotnetcurry.com/showarticle.aspx?ID=883 Unfortunately with VS 2013 Compact edition is not supported any more, so things are somewhat tricky.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.