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

Re: error while hosting asp.net in managed c++ dll. by Bob

Bob
Tue Dec 14 09:01:04 CST 2004

There was no way for you to know it, but this is a classic asp
newsgroup.(dotnet groups removed from this post)
While you may be lucky enough to find a dotnet-savvy person here who can
answer your question, you can eliminate the luck factor by posting your
question to a newsgroup where the dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.

HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.