c# - Visual Studio External references not working on published website -
I have created a web project that works fine when published and when debugging in Visual Studio. When I add an external reference through the reference manager, it connects it properly and runs within the internal IIS Express within Visual Studio. When I publish the website to my server, external apps do not work and it looks like they are not available.
What do I miss to see these interop DLLs in the web server?
There should be some 'hook' to connect with these DLLs which are run locally when it is not present when deployed. In essence, this is an API that I am trying to deploy on the server where the app is installed and running. The API works normally when localized VS is run inside, but when I put it on the IIS website on the same server, it does not work. There is full permission on the IIS website, which is not an issue because this site runs only on an internal network and not on the web.
UPDATE: Deep digging in the secret I suspect that something is done with the way COM interpaces, or APIs are used, I set property properties for 'COM interop' to generate And AOI reference properties are set to isolated = false and encrypted type type = true. I have also set Commonweb = true for the entire project. There are no errors in the .NET or IIS logs that I can see. I have set the full permissions for all applicable folders. So, what am I missing?
I think I have been stumped on this community. I'm going to try to replace a late collar and if he helps.
For those interested, this issue was with DCOM permissions on the server. Still does not work, but at least the server now sees the API, just COM exception errors but it is out of my capacity. There is no source code or vendor support for the API. Ever since I pay for APIs and when I ask for help, I say no help is available.
If you are referring to local external assemblies, add them as part of the solution ( Say in a third party accessories folder), and then set each DLL to "Always Copy" under properties.
It should be ensured that your assembly has been copied to your bin, and they will be visible on your web server.
Comments
Post a Comment