I am running Apache 2.0.52 on Windows Server 2003 with
.NET Framework v1.2.30703.

After installing mod_aspdotnet v2.0.0 with MSI
installer and starting .NET application I was getting
this error:

mod_aspdotnet: Failed to create ASP.NET Request, 
...
HandleRequest: Failed with unexpected Exception;
System.TypeLoadException: Could not load type
'Apache.Native.apr_table_t' from assembly 'Apache.Web,
Version=2.0.0.2000, ...

This prompted me to download the source code and
compile it with VS.NET 2003. The problem remained and
now I tried to cheat by copying struct apr_table_t
definition from apr_tables_c into Apache.Web.h. 

That apparently worked but I got the same error for
another internal structure: System.TypeLoadException:
Could not load type 'Apache.Native.apr_bucket_alloc_t'

And so on ... practically all structures defined in
Apache C files would need to be included.

I was away from .NET development for quite some time
but, remembering a bit old problems with COM InterOp
and PINVOKE, somehow this does not surprise me.

What I don't understand is what am I doing wrong and
how do you guys run ASP module without such basic
problems?

Yes, I also had a problem (mentioned here) with
ambiguous symbols compiling mod_aspdotnet.cpp.

Tony

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to