Hello everybody, I am developing a small ASP.NET website for online shopping, when testing it out in Visual Studio, everything works fine, however that is no longer the case when I deploy it to IIS.
The problem seems to be in a DLL file that I reference, this DLL file contains the Classes I need to initialize and send query requests to another server that has all the product information. This DLL was originally a Jar file which I converted to DLL using IKVM.
When I deploy the app to IIS, any page that attempts to instantiate an object defined in that DLL fails with a null reference, for example:
Fulfiller fulfiller = new Fulfiller(); string result = fulfiller.initialize("host", port, "user", "pass");
returns this error:
System.NullReferenceException: Object reference not set to an instance of an object. at Fulfiller.toLog(String ) at Fulfiller.initialize(String str1, Int32 i, String str2, String str3) at Orders.createDataSource()
Now again, this works perfectly on the VS development server but breaks in IIS and I don't know why. Is it some sort of coding problem where the DLL is not loaded properly when running on IIS? or is it a problem with IIS maybe blocking the DLL from executing or sending out requests, I'm very desperate to solve this problem
thanks