How to deploy ASP.NET MVC4 application with SQL Se

2019-05-26 18:22发布

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.

2条回答
放我归山
2楼-- · 2019-05-26 18:51

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.

查看更多
Melony?
3楼-- · 2019-05-26 19:05

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
查看更多
登录 后发表回答