error I cant seem to fix - WeOnlyDo Discussion board

error I cant seem to fix (wodWebServer / wodWebServer.NET)

by pkcapital, Sunday, October 20, 2019, 21:27 (1871 days ago) @ pkcapital

By using Try/Catches I have found that web1_RequestDoneEvent is not being called when the error happens(any page other than default)

Private Sub initializewebserver()
web1 = New WeOnlyDo.Server.WebServer

web1.DocumentRoot = "c:\test\portal"
web1.DefaultPage = "Default.aspx"
web1.Port = 8080
web1.LicenseKey = "*************"
web1.Start()

End Sub

Private Sub web1_RequestDoneEvent(ByVal Sender As Object, ByVal Args As WeOnlyDo.Server.WebRequestDoneArgs) Handles web1.RequestDoneEvent
'All we need to do in order to process web page is following line...
Try
Args.User.ExecuteASPX("c:\test\portal", "/", "/", "web.config")

Catch ex As Exception
addactivity(ex.Message)
End Try

End Sub

Im running purely your examples at this point.

Hi.

Can you please share your code? Did you put all of your code inside try..catch blocks so you catch the error by yourself?

Kreso


Complete thread: