Need to write an HTTP server , can i use a webservice with "NOSOAP"?

J

jens Jensen

Marc Gravell said:
Of course, the best way to get the correct URI is to right-click on the
ashx in the IDE and select "View in Browser"; no copy/paste the URI from
IE ;-p

Marc

I have double checked averything.
I'm of course developing on Cassini but i did map it to a virtual directory
under IIS.

still 404

..I wonder if it would be easier to write a socket server listening on on
port 443 since the system requires client authentication
 
M

Marc Gravell

IMO, if you *have* IIS, *develop* under IIS, otherwise you're just setting
yourself up for a world of hurt.

Drop Cassini, and set the custom server settings. If you can't right-click /
browse on the file in the IDE and have it load correctly, then your IIS
configuration is incorrect. Not a code issue, but a config one.

To rule this out, switch back to Cassini only; browse and capture the
Cassini path (inc. port); point your client at that URI; if this works, then
your code isn't the issue: IIS is.

Marc
 
J

jens Jensen

To rule this out, switch back to Cassini only; browse and capture the
Cassini path (inc. port); point your client at that URI; if this works,
then your code isn't the issue: IIS is.

Marc

I have done this. right now, my ProcessRequest (HttpContext context)
contains no code.
I can browse.

Now my client says, the remote server has timed out.
 
J

jens Jensen

How do i actually choose IIS as dev webserver. I have now spent some time
trying to figure out how to do it.
Thanks
JJ
 
M

Marc Gravell

Well, I kinda already told you...

First step: ensure you really have the IIS path to the project root
1: Configure IIS and get so you can see (in the IIS explorer) the ashx
2: Right-click / browse on the ashx so it loads in IE (it really should
load; if not IIS is knackered)
3: Copy the URL from IE, and cut off the bits after your project root - e.g.
if your ashx is in the root of the project, then keep everything except for
/your.ashx; if your ashx is one level deep keep everything except
/something/your.ashx - etc

Now configure VS:
1: Right-click on the web-project; property pages; start options
2: Change the "Server" to "Use custom server", and paste your project-root
uri into the "Base URL"

Test:
1: Right-click / View in browser on the ashx in VS; it should load again
correctly at the right URL
2: Update any Cassini urls in your project to use the IIS url
3: Go to solution properties; ensure that the client and the web server are
in the startup ("multiple startup projects")
4: (optional) in the web-project properties, set the start page to "None" or
whatever (to wait for a client)
5: Put a break point into the web-project and hit play

Honestly, it really can work!

Marc
 
M

Marc Gravell

Well, since this is the 29th post in this chain, I thought I'd better bullet
point it...

Glad that helped;

This chain has switched topic a few times (xml / httpwebrequest / IIS etc);
if you have any more problems, can I suggest you discuss the specific
problem in a new thread? (just to keep each one "clean").

Best of luck,

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top