How do I get ELMAH to store the cached errors in my database?
Has anyone implemented it already? If yes please guide me how to do that step by steps please?
Thank you
Here's an article that describes how to configure ELMAH to log to a SQL Server database.
http://www.codeproject.com/KB/ThirdParty/ErrorloggingUsingElmah.aspx
Related
I am new to Prestashop. Please help me. I was trying to use webservices but I am receiving this error. What should I do? I am using Prestashop 1.5.
You need to set _PS_MODE_DEV_ to true. This file is found at config/defines.inc.php.
Once this flag is enabled, you will see a useful error message instead of the generic one.
See Add product to PrestaShop 1.5 via Web Service for where I found this tip.
Check all the configuration before running web application. Make sure Webservice is enabled in the back office.:)
Internal error, may be you missing some configuration. Check all the configuration before running web application.
I have used Elmah for many of my web applications till date Thanks to Atif Aziz.
Now I am trying to use Elmah in one of my windows based application. Before implementing
I m trying out some Examples and so far everything works Good.
But Do we have any configuration which can help me stopping Elmah at once ?
My Client doesnt want to have Elmah enabled for few of his Environment. I didnt come across
such kind of settings in Elmah except I have heard once about ErrorEmail configuration.
DO any one knows how to stop Elmah using configuration from logging emails ?
Thanks in advance.
I have a quite slow admin interface in a django application, the application is supported by apache2 and PostgreSQL.
I suspect the problem to be unoptimized sql request but I cannot understand which one. I believe that a request is sent for every row instead of a request for all row.
Is it possible to log every sql requests actually sent to my database?
Thank for your advice.
Use the log_min_duration option in the configuration file:
http://www.postgresql.org/docs/current/static/runtime-config-logging.html#GUC-LOG-MIN-DURATION-STATEMENT
You might also want to install the auto-explain module which will also dump the execution plan of the slow queries to the log file.
More details here: http://www.postgresql.org/docs/current/static/auto-explain.html
Recently, i am working on a project using Sitecore Azure.
when creating a web form, we use Web Forms for Marketers module provided by Sitecore.
It works fine in local environment. but when we publish it to Azure. it dose not work.
Because there is no database for web form in Azure.
Has anyone experienced this before, maybe you guys can help me. Thanks
Finally, i get it down.
first, you need to create a same database for WFFM as the local one Sitecore_WebForms in SQL Azure.
Here is a link tells you how to do it.
second, change the connection string in forms.config to point to the database in sql azure.
here is a example.
<formsDataProvider type="Sitecore.Forms.Data.DataProviders.WFMDataProvider,Sitecore.Forms.Core">
<param desc="connection string">Database=Sitecore_WebForms;Data Source=tcp:YOURSERVERNAME.database.windows.net,1433;user id=YOURID;password=YOURPASSWORD;Connect Timeout=60</param>
</formsDataProvider>
This is how i fix it. Hope it helps if anyone has the same problem.
Only Web Forms for Marketers (WFFM) 2.4 or higher is compatible with Sitecore Azure module. Additionally, you must use SQL Server version of WFFM database, which must be shared between all WebRole Instances. Please check the details here: https://kb.sitecore.net/articles/880886
How to add WFFM database in Sitecore Azure and automatically deploy it with entire Sitecore solution read in the following article: https://kb.sitecore.net/articles/179306
Best Wishes, Oleg
I have set up elmah to log exceptions on my SQL server. Is there any way to define a fallback mechanism if the SQL server fails. I would like elmah to start logging to xml files if the sql server is inaccessible. Any idea how to do that?
Elmah doesn't yet support fallback or concurrent logging locations.
What to do if Elmah can't reach the database to log an exception?
I released a composite errorlog which address exactly this issue.
You can install it via Nuget or copy it from sources into your projects.
More details in my answer here.