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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5: <strong>FILESTREAM</strong> with ASP.NET and SilverlightWe have selected the Publish Method and Target Location, so now click the Publishbutton to start the publication process. <strong>The</strong> project is published into the fsweb virtualdirectory under the local IIS web server. <strong>The</strong> Visual Studio status bar will show theprogress <strong>of</strong> the operation.When the operation completes, we can go ahead and run the application from thebrowser. Open a web browser and enter: http://localhost/fsweb/default.aspx (or theappropriate URL if your local configuration is different). This will open the web page wecreated in the previous lab (Figure 5-9).Figure 5-9:<strong>The</strong> resulting web page.Now fill the data entry page with information for a new item, and click Save to send theinformation to the database. Surprisingly, in most cases you will see the error shown inFigure 5-10 (or similar) when you click Save.180

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

Saved successfully!

Ooh no, something went wrong!