C
Ching-Lung
Hi,
*********
MyHost.cs
*********
using System;
using System.IO;
using System.Web;
using System.Web.Hosting;
using System.Diagnostics;
public class MyHost : MarshalByRefObject
{
public void CreateHtmlPage(string webPage, string
query, string file)
{
StreamWriter stream = new StreamWriter(file);
SimpleWorkerRequest swr = new SimpleWorkerRequest
(webPage, query, stream);
HttpRuntime.ProcessRequest(swr);
stream.Close();
}
}
********
Form1.cs
********
I am getting the following error message:
An unhandled exception of
type 'System.IO.FileNotFoundException' occurred in
mscorlib.dll
on line:
host = (MyHost)ApplicationHost.CreateApplicationHost
(typeof(MyHost), "/foo", Environment.CurrentDirectory);
Which file is it trying to open? Please help.
Thanks.
*********
MyHost.cs
*********
using System;
using System.IO;
using System.Web;
using System.Web.Hosting;
using System.Diagnostics;
public class MyHost : MarshalByRefObject
{
public void CreateHtmlPage(string webPage, string
query, string file)
{
StreamWriter stream = new StreamWriter(file);
SimpleWorkerRequest swr = new SimpleWorkerRequest
(webPage, query, stream);
HttpRuntime.ProcessRequest(swr);
stream.Close();
}
}
********
Form1.cs
********
I am getting the following error message:
An unhandled exception of
type 'System.IO.FileNotFoundException' occurred in
mscorlib.dll
on line:
host = (MyHost)ApplicationHost.CreateApplicationHost
(typeof(MyHost), "/foo", Environment.CurrentDirectory);
Which file is it trying to open? Please help.
Thanks.