How to "call" an ASP.NET page without using IIS?

1

I need to get through the programming, the result of processing a page in ASP.NET, but I can not use IIS.

Pseudocode that I need:

processePagina("c:\caminho\para\meu\aspx\index.aspx", "url.ficticia?param1=valor1.....")

This code has to return the same as the browser would receive if it had accessed the file by IIS.

Detail, I can not use IIS Hostable Web Core because I can not install anything on the client computer and have to support Windows XP.

Any ideas how to do this?

    
asked by anonymous 06.09.2014 / 15:42

1 answer

1

You can use OWIN to have an HTTP server built into the application without having to install anything extra. On the linked page you have the baseline information and other associated technologies that will be useful, especially the Katana that I think is the OWIN implementation you need (it is a server to embed in your application, ie you do not need to install anything other than your own application).

You can also find out something else right here in SOpt: OWIN and Katana - How does it really work and how do I use it? and Motivation for OWIN .

There are other workarounds but I would not use them unless you have a reason that will not make OWIN unfeasible. This solution is supported by Microsoft, it is modern and active, I can not say the same of the examples you gave in the comments.

  

This code has to return the same as the browser would receive if it had accessed the file by IIS

On the other hand if you want to read a page that is meant to do something with it the best solution would probably be to use WebClient " which is simpler or HttpWebRequest " if you need something more powerful. I believe this is the second part of what you want.

    
09.09.2014 / 15:48