views:

37

answers:

1

In Framework 4.0 I have a little console app. I have a self-contained .aspx page (no codebehind) and would like to run the console app just to host this page. I searched around for tricks with System.ServiceModel.Web or System.Web.Services trying to find a way to do this.

Can anyone help me get clue?

Thanks.

+1  A: 

Have you seen this article? It's not written for asp.net 4.0, it's written for asp.net 2.0, but I don't think there's much difference.

Onkelborg
This cannot handle ASPX.
Aliostad
It can, I've tried
Onkelborg
@aliostad - Works just fine.
Kev
It basically works, basically. There seems to be no Close() method although it is in the source, I had to comment it out so the build works. But I get the idea. Thanks!
ScSub
Yes, that's what I had to change to get it working :)
Onkelborg