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

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: EP (reply_at_newsgroup.only.please)
Date: 12/14/04


Date: Tue, 14 Dec 2004 08:56:08 -0600

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



Relevant Pages

  • error while hosting asp.net in managed c++ dll.
    ... listener if the platform is win2k or xp, ... c# dll. ... HttpWorkerRequest and properly maps the directory to where I have my ...
    (microsoft.public.dotnet.framework)
  • error while hosting asp.net in managed c++ dll.
    ... listener if the platform is win2k or xp, ... c# dll. ... HttpWorkerRequest and properly maps the directory to where I have my ...
    (microsoft.public.inetserver.asp.general)
  • error while hosting asp.net in managed c++ dll.
    ... listener if the platform is win2k or xp, ... c# dll. ... HttpWorkerRequest and properly maps the directory to where I have my ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Better architecture for cross-platform project
    ... would simply be for a UI that leverages the shared DLL. ... Obviously each platform must have it's own main Form ... > multiple project files for the same set of source files, ... > Then I came up with an idea of creating an abstract class subclassing ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: problems with 3d sound using directmusic
    ... > Above is the overall design of my current project, the platform can run ... > different game depend on user choice. ... The sound engine maintain a static ... but the wave file loaded and played by game dll do not come ...
    (microsoft.public.win32.programmer.directx.audio)