Azure MVC应用程序上的数据库错误 [英] Database Error on Azure MVC Application

查看:71
本文介绍了Azure MVC应用程序上的数据库错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用实体框架在Azure上托管MVC WebApp,以在Azure上访问我的SQL数据库.使用代码优先迁移,通常我会在代码中更新Databse结构,然后再更新Azure DB和应用程序.

I'm hosting a MVC WebApp on Azure using the Entity Framework to acces my SQL Database on Azure. Using Code First Migrations I usually update my Databse structure in Code and update the Azure DB and the application afterwards.

通常,这对我来说很好,但目前我遇到了一个问题,即使我绝对没有进行任何更改,我的MVC应用程序也抛出了一个异常,指出数据库模型已更改.这个问题从字面上看是一夜间 隔天工作的第二天就抛出了错误.

Usually this works fine for me, but currently I ran into the issue, that my MVC Application threw an exception stating that the database model had changed, even though I definitely made no changes at all. This problem appeared literally over night, the one day it worked the next day it threw the error.

有人在使用WebApplication和AzureDB的Azure上遇到过类似的行为吗?这可能是Azure问题,或者更可能是我的应用程序本身的问题?我知道这是一个不太明确的问题,在Azure网络平台上是否有放置位置 在哪里可以获得有关可能在一夜之间出现的错误的信息/日志?

Has anyone experienced similar behaviour on Azure using WebApplication and AzureDBs? Could this be an Azure Problem or more likely a problem in my application itself? I know this is a rather unspecific question, is there a place on the azure web plattform where I could get infos/logs about errors that might have appeared over night?

先谢谢了!

Thanks in advance!

推荐答案

您可以查看服务健康"和资源健康"通知.

服务运行状况-服务问题视图显示了影响您资源的Azure服务中任何正在进行的问题. 您可以了解问题何时开始以及哪些服务和区域受到影响.您还可以阅读最新更新,以了解Azure正在解决此问题.

The ‘Service Health’ - Service issues view shows any ongoing problems in Azure services that are impacting your resources. You can understand when the issue began, and what services and regions are impacted. You can also read the most recent update to understand what Azure is doing to resolve the issue. 

您可以想参考文档 Azure资源运行状况概述 Azure服务运行状况 了解更多详细信息.

You may want to refer the documentations Azure resource health overview and Azure Service Health for more details.

此外,我建议你 为Azure应用服务中的Web应用启用诊断日志记录 启用了 可以解决此问题的根本原因

Also, I suggest you Enable diagnostics logging for web apps in Azure App Service in case if you haven’t enabled earlier for getting to the root cause of this issue.

对于任何服务中断/中断 天青状态记录 .

For any service interruption/outages refer Azure status history.

- -------------------------------------------------- --------------------------------------
如果此答案有帮助,请单击标记为答案"或上投票".要提供有关您的论坛体验的其他反馈,请单击 span> .

------------------------------------------------------------------------------------------
If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here.


这篇关于Azure MVC应用程序上的数据库错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆