Ok i created a .net assembly and it works fine from my asp.net website. I now want to host it as COM, so i can use it on an old legacy asp website. It kinda works, except it won’t read the appsettings from the configuration file.
I would think it should read it from the same folder where i registered my assembly with regasm and where the .dll resides. I tried copying the config file to two extra files (in case it read from a different named file besides “assembly-file-name”+.config
The two files are app.config and application.config – it doesn’t seem to read from any of them.
Where does my .net assembly read its configuration from when hosted as COM?
If by COM you mean a COM application, then you should put your configuration in a file named after the EXE.
YourApp.Exe -> YourApp.exe.config
If by COM you mean COM+, then take a look at http://blogs.msdn.com/heikkiri/archive/2005/11/10/491568.aspx