hosting asp.net in an application

  • Thread starter Thread starter EP
  • Start date Start date
E

EP

This post isn't how to host pages outside of IIS, but how to fix a problem
when doing so.

I'm hosting asp.net pages outside of IIS using the normal
CreateApplicationHost method.

If all of the code is in the aspx page, it processes fine.

However, if I try to let the page inherit from some other class defined in
the exe (codebehind), it cannot load the inherited type. Why is this?
 
You have to use .NET Remoting in this case.

???

The problem ended up being I was putting
Class="MyClass"
instead of
Class="MyClass, MyAssembly"

Now that it works, why do I have to use .net remoting in this case?
 

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

Back
Top