问题
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.
回答1:
To summarize and so an answer can get marked on this to help the next person that comes by.
When running into issues on azure-web-sites 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
回答2:
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.
来源:https://stackoverflow.com/questions/12446226/how-to-deploy-asp-net-mvc4-application-with-sql-server-ce-to-azure-website