Unable to run the application From IIS Express - ASP.NET
Swami_Satti
Posts: 1 New member
Using ANTS Memory Profile 10.1 Unable to run the application From IIS Express - ASP.NET. it is throwing the error
Could not load file or assembly 'IBM.Data.DB2' or one of its dependencies. An attempt was made to load a program with an incorrect format.
If the application is running from visual studio 2015 it is working
Tagged:
Answers
Hi @Swami_Satti!
I believe we have a ticket open with you regarding this, so I'm just summarizing the details here:
From the IBM website I found an article with a similar error (https://www-01.ibm.com/support/docview.wss?uid=swg21902663) , I recommended having "Copy local" set to true, but I realized I misread that and the value should be set to false. Can you kindly set this back to false if you haven't already?
As the error has remained, I've found another suggestion from the ibm site which says the issue may be related to bitness: https://www.ibm.com/developerworks@Swami_Satti /community/forums/html/topic?id=77777777-0000-0000-0000-000014635027
Can you please try enabling "run application as 32-bit" to see if that resolves this?
If not, can I check-- do you have any environment variables set for when it runs in Visual Studio? Properties>Debug>Environment variables
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
@Swami_Satti!
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
It sounds like a different issue you may be running into. The profiler should say Connected and start displaying metrics once the application loads the .NET Framework. Does your IIS Express site immediately load .NET?
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?