Click here to Skip to main content
14,663,178 members
Home » Discussions » ASP.NET
   

ASP.NET

 
QuestionHow to implement https for mvc site Pin
Mou_kol22-Dec-17 5:10
MemberMou_kol22-Dec-17 5:10 
AnswerRe: How to implement https for mvc site Pin
A_Griffin22-Dec-17 22:43
MemberA_Griffin22-Dec-17 22:43 
GeneralRe: How to implement https for mvc site Pin
Nathan Minier27-Dec-17 6:44
professionalNathan Minier27-Dec-17 6:44 
GeneralRe: How to implement https for mvc site Pin
A_Griffin27-Dec-17 7:08
MemberA_Griffin27-Dec-17 7:08 
GeneralRe: How to implement https for mvc site Pin
Nathan Minier27-Dec-17 7:19
professionalNathan Minier27-Dec-17 7:19 
SuggestionRe: How to implement https for mvc site Pin
Richard Deeming8-Jan-18 6:44
mveRichard Deeming8-Jan-18 6:44 
GeneralRe: How to implement https for mvc site Pin
A_Griffin8-Jan-18 6:46
MemberA_Griffin8-Jan-18 6:46 
QuestionASP.Net MVC:How to implement Elmah in separate project Pin
Mou_kol22-Dec-17 5:01
MemberMou_kol22-Dec-17 5:01 
i have a ASP.Net MVC project where i can integrate elmah but the problem is my project solution has many projects like asp.net mvc, BAL, DAL. if i integrate elmah in asp.net mvc project then i will not be able to log error by elmah from DAL or BAL. i want to log error from any project and for that i need to implement elmah in separate project.

i read two write up but still could not figure out the way to achieve my goal. those urls are

https://dzone.com/articles/writing-custom-error-loggers-for-elmah
https://www.codeproject.com/Articles/566705/Making-elmah-axd-a-log-viewer-for-multiple-applica

i am following first article link. they said we need to install elmah core library which i did and also i create a class file

ElmahLog : Elmah.ErrorLog extending Elmah.ErrorLog and override few elmah functions.

now do not understand what to write inside those function.

here is the code
public class ElmahLog : Elmah.ErrorLog
{
    public override string Log(Error error)
    {

        throw new System.NotImplementedException();

    }

    public override ErrorLogEntry GetError(string id)
    {

        throw new System.NotImplementedException();

    }

    public override int GetErrors(int pageIndex, int pageSize, IList errorEntryList)
    {

        throw new System.NotImplementedException();

    }
}


so please tell me how to log error from the above function into sql server db. also tell me how to incorporate elmah.axd log viewer in asp.net mvc project to view all error which logged from my UI,DAL and BAL.

please tell me what config entries i need to add in mvc project and separate project where i add elmah core.

please guide me if anyone did it before.
AnswerRe: ASP.Net MVC:How to implement Elmah in separate project Pin
jkirkerx22-Dec-17 10:12
professionaljkirkerx22-Dec-17 10:12 
Questionint retryattempts = Convert.ToInt32(dr["retryattempts"]); Pin
Lay_Kay21-Dec-17 3:39
MemberLay_Kay21-Dec-17 3:39 
AnswerRe: int retryattempts = Convert.ToInt32(dr["retryattempts"]); Pin
David Mujica21-Dec-17 4:54
MemberDavid Mujica21-Dec-17 4:54 
GeneralRe: int retryattempts = Convert.ToInt32(dr["retryattempts"]); Pin
Lay_Kay21-Dec-17 17:50
MemberLay_Kay21-Dec-17 17:50 
SuggestionRe: int retryattempts = Convert.ToInt32(dr["retryattempts"]); Pin
Richard Deeming22-Dec-17 2:08
mveRichard Deeming22-Dec-17 2:08 
AnswerRe: int retryattempts = Convert.ToInt32(dr["retryattempts"]); Pin
Richard Deeming22-Dec-17 2:11
mveRichard Deeming22-Dec-17 2:11 
GeneralRe: int retryattempts = Convert.ToInt32(dr["retryattempts"]); Pin
Lay_Kay22-Dec-17 5:19
MemberLay_Kay22-Dec-17 5:19 
AnswerRe: int retryattempts = Convert.ToInt32(dr["retryattempts"]); Pin
Richard MacCutchan21-Dec-17 5:18
mveRichard MacCutchan21-Dec-17 5:18 
QuestionHow to ensure user either checks a box or fills out the form? Pin
samflex18-Dec-17 7:48
Membersamflex18-Dec-17 7:48 
QuestionAdvice on Partial View Pin
sunsher17-Dec-17 2:37
Membersunsher17-Dec-17 2:37 
Questionmaintain position DIV on Postback Pin
Member 1317428015-Dec-17 5:42
MemberMember 1317428015-Dec-17 5:42 
AnswerRe: maintain position DIV on Postback Pin
jkirkerx18-Dec-17 8:17
professionaljkirkerx18-Dec-17 8:17 
GeneralRe: maintain position DIV on Postback Pin
Member 1317428018-Dec-17 23:41
MemberMember 1317428018-Dec-17 23:41 
QuestionProblem consuming soap web service - content mismatch Pin
anto200515-Dec-17 5:42
Memberanto200515-Dec-17 5:42 
AnswerRe: Problem consuming soap web service - content mismatch Pin
Richard Deeming18-Dec-17 2:40
mveRichard Deeming18-Dec-17 2:40 
GeneralRe: Problem consuming soap web service - content mismatch Pin
anto200518-Dec-17 5:44
Memberanto200518-Dec-17 5:44 
GeneralRe: Problem consuming soap web service - content mismatch Pin
Richard Deeming18-Dec-17 6:34
mveRichard Deeming18-Dec-17 6:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.