Is anyone can help me to find out why im getting an error:
********
An unhandled exception of type 'System.IO.FileNotFoundException'
occurred in mscorlib.dll
Additional information: File or assembly name aspxvm_test, or one of
its dependencies, was not found.
*********
on this source code:
Module Common
Public Sub Main()
Dim Arguments As String() =
System.Environment.GetCommandLineArgs
Dim vHost As New AspxVM
vHost.ProcessRequest(Arguments(1))
End Sub
End Module
Public Class AspxVM
Inherits MarshalByRefObject
Private _AppPath As String = AppDomain.CurrentDomain.BaseDirectory
Public Property BaseDirectory() As String
Get
Return _AppPath
End Get
Set(ByVal Value As String)
_AppPath = Value
End Set
End Property
Public Sub ProcessRequest(ByVal p_aspx As String)
Web.HttpRuntime.ProcessRequest(New
Web.Hosting.SimpleWorkerRequest(p_aspx, Nothing, Console.Out))
End Sub
Sub New()
System.Web.Hosting.ApplicationHost.
(GetType(AspxVM), "/foo", BaseDirectory)
End Sub
End Class