473,378 Members | 1,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

CreateApplicationHost and 'System.IO.FileNotFoundException' is killing me

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
Jul 21 '05 #1
1 5041
cdyne
1
Try this:

Properties of your application..
Build Events..
Post Build Event.

And put this in:

if not exist bin md bin
copy *.exe bin

This thing needs a bin within a bin to work.
Jun 25 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ulf | last post by:
Hello, After I got a FileNotFoundException in my real life CSharp code, I nailed it down to the following line: System.EnterpriseServices.ResourcePool rp = new...
0
by: Jeremy Chapman | last post by:
How can I use ApplicationHost.CreateApplicationHost without having to make a copy of the assembled file (the .EXE) to the "bin" subdirectory? Is this possible?
1
by: SDS | last post by:
If you host an ASP.NET application within a Win32 assembly using CreateApplicationHost(), does the ASP.NET code running within that host still have access to HTTP-related members such as the...
0
by: Shemesh | last post by:
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...
3
by: James | last post by:
Hi guys Do you ever get the exception in Managed C++? How can I know which file or dll is missed?
1
by: kkizer | last post by:
I have a problem with this simple code below. Moving the files works perfectly, but once in a blue moon the file that it is trying to move dissapears before it can move it. and when this happens...
1
by: Vlad Hrybok | last post by:
Hi, I noticed that releasing the reference ot the returned by CreateApplicationHost() is not enough to free memory taken by AppDomain created by CreateApplicationHost(). I have to created and...
2
by: jjlagtap | last post by:
Hey everyone When I try to open a file i get the Exception listed below. The weird thing is it works when I run the web app locally and when i use a remote server and open a file on my computer....
2
by: =?Utf-8?B?c2FtMDFt?= | last post by:
I have a remoting application that was developed on a Windows XP SP2 machine with VS2005 SP1. I finally got everything deployed using Wix 3.0, and it works great. Problem is, when I install the msi...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.