Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

Cannot open connection with SQL Server from ISAPI dll

$
0
0

SQL Server 2008 R2 Express

I have a dll that worked perfectly under Win 7 and IIS 7.5. I am trying to move it to Server 2012 and IIS 8.5. My .net app talks to the SQL Server and so does my dll code (identical connection code and connection string) when run as a standalone app. However, when I run the code as a dll, it works fine until I reach the line that opens the SQL connection. Then it throws an exception but the exception does not provide a string to explain itself (the string is NULL). There is nothing in the Windows event logs for SQL Server, no login failure.

I presume that the dll is being run by IIS_IUSRS but this is not available to be added as a New Login to SQL Server. Adding IUSR does not help and it has no effective access to my dll app/folder according to IIS.


Viewing all articles
Browse latest Browse all 4729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>