Click here to Skip to main content
15,910,358 members
Home / Discussions / C#
   

C#

 
QuestionLoading 500000 rows in to a datatable Pin
chandler8330-Nov-06 17:47
chandler8330-Nov-06 17:47 
AnswerRe: Loading 500000 rows in to a datatable Pin
Not Active30-Nov-06 19:30
mentorNot Active30-Nov-06 19:30 
GeneralRe: Loading 500000 rows in to a datatable Pin
chandler8330-Nov-06 19:35
chandler8330-Nov-06 19:35 
GeneralRe: Loading 500000 rows in to a datatable Pin
Not Active30-Nov-06 20:03
mentorNot Active30-Nov-06 20:03 
GeneralRe: Loading 500000 rows in to a datatable Pin
Christian Graus30-Nov-06 22:27
protectorChristian Graus30-Nov-06 22:27 
AnswerRe: Loading 500000 rows in to a datatable Pin
Bassam Saoud30-Nov-06 19:35
Bassam Saoud30-Nov-06 19:35 
AnswerRe: Loading 500000 rows in to a datatable Pin
V.30-Nov-06 20:46
professionalV.30-Nov-06 20:46 
QuestionRunning asmx without iis Pin
pkt3030-Nov-06 17:42
pkt3030-Nov-06 17:42 
Please help to run following code(c#) from msdn(url==>http://msdn.microsoft.com/msdnmag/issues/04/12/ServiceStation/default.aspx)


//the code is
using System;
using System.Web;
using System.Web.Hosting;
using System.Net;
using System.IO;
...

class Program
{
static void Main(string[] args)
{
//error occurs at this line,error message is given below
MySimpleHost msh = (MySimpleHost)
ApplicationHost.CreateApplicationHost(
typeof(MySimpleHost), "/", Directory.GetCurrentDirectory());

HttpListener listener = new HttpListener();
listener.Prefixes.Add("http://localhost:8081/");
listener.Prefixes.Add("http://127.0.0.1:8081/");
listener.Start();

Console.WriteLine(
"Listening for requests on http://localhost:8081/");

while (true)
{
HttpListenerContext ctx = listener.GetContext();
string page = ctx.Request.Url.LocalPath.Replace("/", "");
string query = ctx.Request.Url.Query.Replace("?", "");
Console.WriteLine("Received request for {0}?{1}",
page, query);

StreamWriter sw = new
StreamWriter(ctx.Response.OutputStream);
msh.ProcessRequest(page, query, sw);
sw.Flush();
ctx.Response.Close();
}
}
}

public class MySimpleHost : MarshalByRefObject
{
public void ProcessRequest(string p, string q, TextWriter tw)
{
SimpleWorkerRequest swr = new SimpleWorkerRequest(p, q, tw);
HttpRuntime.ProcessRequest(swr);
}
}

when I run the code the compiler shows following error message
Could not load file or assembly 'wserver, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

What should I put in /bin directory?
Should I add assembly in GAC?

Thanks

tandukar

AnswerRe: Running asmx without iis Pin
Christian Graus30-Nov-06 18:02
protectorChristian Graus30-Nov-06 18:02 
QuestionAnother Thread Question (Dumb) Pin
Tristan Rhodes30-Nov-06 13:12
Tristan Rhodes30-Nov-06 13:12 
AnswerRe: Another Thread Question (Dumb) Pin
S. Senthil Kumar30-Nov-06 23:18
S. Senthil Kumar30-Nov-06 23:18 
QuestionQuestion Pin
tamerana200430-Nov-06 11:06
tamerana200430-Nov-06 11:06 
AnswerRe: Question Pin
Christian Graus30-Nov-06 11:18
protectorChristian Graus30-Nov-06 11:18 
QuestionAsking about the best way to place huge images in a ListView ? Pin
Marcos Hernandez30-Nov-06 10:11
Marcos Hernandez30-Nov-06 10:11 
AnswerRe: Asking about the best way to place huge images in a ListView ? Pin
Christian Graus30-Nov-06 11:18
protectorChristian Graus30-Nov-06 11:18 
GeneralRe: Asking about the best way to place huge images in a ListView ? Pin
Marcos Hernandez30-Nov-06 19:47
Marcos Hernandez30-Nov-06 19:47 
QuestionFunction that never returns Pin
Vega0230-Nov-06 8:46
Vega0230-Nov-06 8:46 
AnswerRe: Function that never returns Pin
Ed.Poore30-Nov-06 8:48
Ed.Poore30-Nov-06 8:48 
GeneralRe: Function that never returns Pin
Vega0230-Nov-06 9:01
Vega0230-Nov-06 9:01 
GeneralRe: Function that never returns Pin
Dave Kreskowiak30-Nov-06 9:11
mveDave Kreskowiak30-Nov-06 9:11 
GeneralRe: Function that never returns Pin
led mike30-Nov-06 11:58
led mike30-Nov-06 11:58 
GeneralRe: Function that never returns Pin
Vega0230-Nov-06 16:50
Vega0230-Nov-06 16:50 
GeneralRe: Function that never returns Pin
Ed.Poore30-Nov-06 12:06
Ed.Poore30-Nov-06 12:06 
AnswerRe: Function that never returns Pin
Pete O'Hanlon30-Nov-06 9:00
mvePete O'Hanlon30-Nov-06 9:00 
AnswerRe: Function that never returns Pin
Guffa30-Nov-06 9:11
Guffa30-Nov-06 9:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.