|
-
Feb 14th, 2013, 12:59 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Embedded Web Server that supports ASP.Net 4
Hello guys,
I am trying to make a asp.net app easier to use for my client; Currently I have him download Abyss Web Server and configure it, however that is causing him headaches. I am now looking into a Embedded Web Server.
I have read I can use Mono's Web Server that will run off of .NET versus the Mono platform if on windows; And I tried to use it, however I can't get anywhere special.
ASPNetServe looks great, but it appears it only uses .NET 2-3.x, and unfortunately the controls i use will not allow me to downgrade from 4 to 3.5. I keep receiving not declared messages.
While using Mono.WebServer, I am using the following code:
VB Code:
Imports System.Net
Imports Mono.WebServer
Public Class myserv
Dim port As Integer = 80
Dim path As String = "E:\Clients\Chuck\Website\Photoviewer\Photoviewer\"
Dim websource As XSPWebSource = New XSPWebSource(IPAddress.Any, port)
Dim WebAppServer As ApplicationServer = New Mono.WebServer.ApplicationServer(websource)
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
'Dim cmdLine As String = port & ":/:" & path
WebAppServer.AddApplication(vbNull, 80, "/", path)
'websource.SetListenAddress(80)
WebAppServer.Start(True)
MsgBox("Servers Started")
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
WebAppServer.Stop()
MsgBox("Servers Stopped")
End Sub
Private Sub myserv_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
End Class
The server starts up, however when I try to visit http://localhost/ it just hangs. Nothing gets returned to the browser.
Any help or recommendations of me using a easily controlled standalone, or some form of embedded web server would be fantastic. Thanks.
-
Feb 15th, 2013, 12:04 PM
#2
Thread Starter
Fanatic Member
Re: [RESOLVED] Embedded Web Server that supports ASP.Net 4
Fixed the issue.
The debug messages were actually being sent to a console which helped me fix it.
My path was wrong, and for some reason it was also looking for the Mono.WebServer & Mono.Security dll's in the website...Once I did that, everything worked fine.
-
Dec 3rd, 2013, 05:10 PM
#3
New Member
Re: [RESOLVED] Embedded Web Server that supports ASP.Net 4
 Originally Posted by TCarter
Fixed the issue.
The debug messages were actually being sent to a console which helped me fix it.
My path was wrong, and for some reason it was also looking for the Mono.WebServer & Mono.Security dll's in the website...Once I did that, everything worked fine.
Excuse me, sorry for reviving an old post, but I'm wondering how to fix this too. How exactly did you go about fixing this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|