How to deploy ASP.NET MVC4 application with SQL Server CE to Azure website

こ雲淡風輕ζ 提交于 2019-12-07 19:07:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!