error while hosting asp.net in managed c++ dll.

E

EP

I have a pluggable asp.net hosting provider which uses a cassini-based http
listener if the platform is win2k or xp (non sp2), and uses a HTTPAPI
(http.sys) based listener in a managed c++ dll if the platform in win2k3 or
XPsp2.

The solution works perfectly when the HttpWorkerRequest is implemented in a
c# dll. When it is implemented in the managed c++ dll, I always get the
following error:

The application's configuration files must contain 'trust' section.

Stepping through the code, I can see that asp.net receives my
HttpWorkerRequest and properly maps the directory to where I have my
web.config. Adding a trust section doesn't help for any values in it. It's
not a permissions problem because I've not only given the file full control
for Everyone, but when debugging I can see that the process is in fact
running as an administrator.

Could anyone help?

-EP
 

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

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top