Re: Random DLLs and Web Hosting Services

Siegfried Heintze <[email protected]> Fri, 10 Sep 2004 08:31:20 -0600
Newsgroups gmane.comp.windows.devel.soap.general
Message-ID <200409100835406.SM01216@fasolt>
>> Our hosting service uses software to detect whenever a new DLL is loaded
on
>> their system. It appears that ASP.NET copies my DLL into the temporary
>> directory with some random file name. This makes our hosting service very
>> upset because it looks like they are under attack whenever ASP.NET makes
a
>> DLL in the temporary directory.
>>
>>
>
>I don't think it is a copy of the Native C DLL.
>An ASP.NET application
>will create a new Assembly ( a .NET .DLL) whenever the code in your
>application is changed.


Ah hah! I'm not manually or explicitly compiling the C# code. I'm just using
the auto-compilation feature which compiles the code when I first hit the
page (or in this case, the service). If I was to explicitly compile the C#
into a DLL on my local machine and copy the DLL (instead of the C# source
code) to the hosting service, would this fix the problem?


>If you are P/Invoking functions from a Native
>.DLL then the .NET framework uses the systems dynamic loading capability
>to discover the location of the .DLL, load it and call the methods - so
>in this respect is no different to a native application.

No we are not.

>The only other
>occasion you may get a new .DLL that you didn't explicitly create is
>when you are instantiating a COM object from a .NET application by
>referencing it directly, in this case you will get an 'interop assembly'
>that takes care of the loading and so forth and make it appear that you
>are dealing with a .NET class, but this is not the case in your example.
>
No we are not.