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:
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.
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.