Click here to Skip to main content
16,004,828 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionFacing issue in jquery in Asp.net MVc application Pin
vnr5-Apr-12 1:01
vnr5-Apr-12 1:01 
Questionillegal characters in path : system.argumentException Pin
ausia195-Apr-12 0:18
ausia195-Apr-12 0:18 
AnswerCross post from C# forum. Pin
Pete O'Hanlon5-Apr-12 0:55
mvePete O'Hanlon5-Apr-12 0:55 
QuestionExport to Excel and Microsoft Jet Pin
biop.codeproject4-Apr-12 21:43
biop.codeproject4-Apr-12 21:43 
AnswerRe: Export to Excel and Microsoft Jet Pin
Reza Ahmadi8-Apr-12 19:04
Reza Ahmadi8-Apr-12 19:04 
GeneralRe: Export to Excel and Microsoft Jet Pin
biop.codeproject9-Apr-12 15:30
biop.codeproject9-Apr-12 15:30 
GeneralRe: Export to Excel and Microsoft Jet Pin
Reza Ahmadi9-Apr-12 18:08
Reza Ahmadi9-Apr-12 18:08 
QuestionError page not showing Pin
Andy Morris4-Apr-12 17:33
Andy Morris4-Apr-12 17:33 
I have an error page set up and when an error occurs the page is not shown.

From my webconfig file:
VB
<customErrors defaultRedirect="~/Error.aspx" mode="RemoteOnly">
  <error statusCode="404" redirect="~/Error.aspx" />
  <error statusCode="500" redirect="~/Error.aspx" />
</customErrors>


From my Global aspx file:
VB
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
    ' Code that runs when an unhandled error occurs
    ' gets the error occured
    Dim ex As Exception = Server.GetLastError().GetBaseException()
    Try
        ' checks if the event source is registered
        If Not System.Diagnostics.EventLog.SourceExists(".NET Runtime") Then
            System.Diagnostics.EventLog.CreateEventSource(".NET Runtime", "Application")
        End If

        'log the details of the error occured
        Dim log As New System.Diagnostics.EventLog()
        log.Source = ".NET Runtime"
        log.WriteEntry([String].Format(vbCr & vbLf & vbCr & vbLf & "Application Error" & vbCr & vbLf & vbCr & vbLf + "MESSAGE: {0}" &
                                       vbCr & vbLf + "SOURCE: {1}" & vbCr & vbLf + "FORM: {2}" & vbCr & vbLf + "QUERYSTRING: {3}" &
                                       vbCr & vbLf + "TARGETSITE: {4}" & vbCr & vbLf + "STACKTRACE: {5}" & vbCr
                                       & vbLf, ex.Message, ex.Source, Request.Form.ToString(), Request.QueryString.ToString(), ex.TargetSite, _
         ex.StackTrace), System.Diagnostics.EventLogEntryType.[Error])

        Server.ClearError()
    Catch
        ' in case of exception occured in log
        Server.ClearError()
    End Try
    Server.ClearError()
    Response.Redirect(String.Format("Error.aspx?aspxerrorpath={0}", Request.Url.PathAndQuery))
End Sub



What I end up seeing is the master page and the URL shows / Error.aspx, but the error page is not shown with it.
AnswerRe: Error page not showing Pin
Reza Ahmadi4-Apr-12 19:33
Reza Ahmadi4-Apr-12 19:33 
QuestionHow to do impersonation programatically in vb.net? Pin
sanjayv.gade4-Apr-12 1:16
sanjayv.gade4-Apr-12 1:16 
QuestionRe: How to do impersonation programatically in vb.net? Pin
Richard MacCutchan4-Apr-12 2:40
mveRichard MacCutchan4-Apr-12 2:40 
AnswerRe: How to do impersonation programatically in vb.net? Pin
Eddy Vluggen4-Apr-12 2:50
professionalEddy Vluggen4-Apr-12 2:50 
AnswerRe: How to do impersonation programatically in vb.net? Pin
jkirkerx5-Apr-12 12:53
professionaljkirkerx5-Apr-12 12:53 
QuestionHow to test WebService from remote machine on Local network? Pin
Software20073-Apr-12 15:34
Software20073-Apr-12 15:34 
AnswerRe: How to test WebService from remote machine on Local network? Pin
Bernhard Hiller3-Apr-12 20:24
Bernhard Hiller3-Apr-12 20:24 
GeneralRe: How to test WebService from remote machine on Local network? Pin
Software20074-Apr-12 6:04
Software20074-Apr-12 6:04 
GeneralRe: How to test WebService from remote machine on Local network? Pin
Bernhard Hiller4-Apr-12 6:27
Bernhard Hiller4-Apr-12 6:27 
GeneralRe: How to test WebService from remote machine on Local network? Pin
Software20074-Apr-12 7:36
Software20074-Apr-12 7:36 
GeneralRe: How to test WebService from remote machine on Local network? Pin
Reza Ahmadi4-Apr-12 19:45
Reza Ahmadi4-Apr-12 19:45 
GeneralRe: How to test WebService from remote machine on Local network? Pin
jkirkerx5-Apr-12 10:50
professionaljkirkerx5-Apr-12 10:50 
Questionjquery validation Pin
indian1433-Apr-12 10:13
indian1433-Apr-12 10:13 
AnswerRe: jquery validation Pin
Eddy Vluggen4-Apr-12 3:26
professionalEddy Vluggen4-Apr-12 3:26 
QuestionASP.NET menu 2nd level nodes selected value Pin
KUNWAR9993-Apr-12 7:18
KUNWAR9993-Apr-12 7:18 
QuestionPayment Gateway for the Middle East Pin
Jassim Rahma3-Apr-12 6:34
Jassim Rahma3-Apr-12 6:34 
Questionintegrating Paypal into ASP.NET Pin
Jassim Rahma3-Apr-12 6:33
Jassim Rahma3-Apr-12 6:33 

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.