Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

IIS 8.5 - Silverlight website can not connect with database

$
0
0

Hi

I am running a Silverlight website under IIS 8.5 on Windows Server 2012. Web site is not able to pull records from the database. However the same website when hosted on IIS 7.5/Windows 7 or IIS 6/Windows Server 2003 works fine.

Connection string used: 

(A) metadata=res://*/ABC.csdl|res://*/ABC.ssdl|res://*/ABC.msl;provider=System.Data.SqlClient;provider connection string="Data Source=XYZ;Initial Catalog=ABC;Persist Security Info=True;User ID=SomeUserId;Password=●●●●●●●●●●;MultipleActiveResultSets=True"

Also, when I host a simple HTML website on IIS 8.5/Windows Server 2012 to try reading from database, it works fine. I am using this connection string:

(B) Data Source=XYZ;Initial Catalog=ABC;User ID=SomeUserId;Password=●●●●●●●●●●●●●●;MultipleActiveResultSets=True;Connection Timeout=360

Database used in both the cases is SQL Server 2012 with SQL authentication.

Is anything wrong in the connection string (A)? Does IIS 8.5 expect string with metadata in any other format? 

Please advise.


Thanks,

Darshana


Viewing all articles
Browse latest Browse all 7363

Trending Articles



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