17.07.2015 Views

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 5: <strong>FILESTREAM</strong> with ASP.NET and SilverlightFigure 5-10:Error displayed when you click Save.<strong>The</strong> Open() method <strong>of</strong> the connection object raises an error. This is because we haveconfigured the connection to use Integrated Security (Windows authentication), butthe user account under which the web application runs does not have permissionsto access the database. However, Windows authentication is necessary for accessingthe <strong>FILESTREAM</strong> data through the Managed or Win32 APIs, which means we need topersevere with Integrated Security. So, we now need to fix this error by reconfiguring thesecurity settings.Configuring IIS to use <strong>SQL</strong> <strong>Server</strong> IntegratedSecurity<strong>The</strong>re are a number <strong>of</strong> ways to fix the login error we saw in the previous section, and themost suitable method depends upon the security level required, the type <strong>of</strong> application,the way users access the application, and so on. We'll use one <strong>of</strong> the simpler options here.181

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!