我正在忙着尝试将hangfire
添加到我的MVC项目中。我下面的Quick Start GuideHangfire错误连接字符串缺少SQL错误日志
我已经加入这个我startup.cs
文件
public void Configuration(IAppBuilder app)
{
ConfigureAuth(app);
//Hangfire
GlobalConfiguration.Configuration.UseSqlServerStorage("data source=ip;initial catalog=Name;user id=Hangfire;password=Password;");
app.UseHangfireDashboard();
app.UseHangfireServer();
}
然而,当我跑我的项目,我得到以下错误:(它突出在我startup.cs类GlobalConfiguration.Configuration.UseSqlServerStorage
线)
Connection string is missing for the SQL error log.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Elmah.ApplicationException: Connection string is missing for the SQL error log.
也许错误消息是误导性的,它只是不是一个有效的连接字符串。连接字符串通常也有一个提供者。只是猜测 –