MVC app deployment; System.Data.SqlClient.SqlException: Could not find stored procedure 'ELMAH_GetErrorsXml'

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 07:26:51

问题


I have deployed my MVC app but the error handling does not work. I use a SQLite database and when I try to navigate to the error messages in Elmah i get this exception;

System.Data.SqlClient.SqlException: Could not find stored procedure 'ELMAH_GetErrorsXml'.

Of course I need to deploy the SQLite database, defined in my web.config as;

add name="ELMAH.SQLite" connectionString="Data Source=|DataDirectory|errors.s3db" />

I am thinking that I did not deploy a SQLite database when I deployed my application. Yet I cannot locate the errors.s3db on my local file system, so I am not sure how I set one up on my live environment.


回答1:


You'll need to run the SQL script to create the ELMAH objects. It can be found in the 'db' folder of the download ( http://code.google.com/p/elmah/downloads/list )



来源:https://stackoverflow.com/questions/5380033/mvc-app-deployment-system-data-sqlclient-sqlexception-could-not-find-stored-pr

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