Hello,
I just purchased the ASP.NET 2.0 instantResults book. I'm trying to run the Appointment Booking System. When I run it, I can log in fine, but then when I try and go to "Conference Rooms", I get the error message below. Once last thing... I'm not running any instance of SQL server, I'm just running SQL server without the SQLExporess instance. I think the app is hard coding the connection string somewhere... Any help would be appreciated.
PS: I change my connection string to look like the following in my Web.Config file:
<add name="AppointmentBooking" connectionString="server=BRIAN-LPS;AttachDbFileName=|DataDirectory|aspnetdb.mdf;I ntegrated Security=true;User Instance=true" />
Thanks,
Brian.
A user instance was requested in the connection string but the server specified does not support this option.
Changed database context to 'master'.
Changed language setting to us_english.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: A user instance was requested in the connection string but the server specified does not support this option.
Changed database context to 'master'.
Changed language setting to us_english.
Source Error:
Line 37: Catch ex As Exception
Line 38: ' Pass up the error; it will be caught by the code in the Global.asax and the generic error page set up in web.config.
Line 39: Throw
Line 40: End Try
Line 41: End Function
Source File: C:\Documents and Settings\Brian Eskra\my documents\visual studio 2005\WebSites\Book2\App_Code\DataAccess\BookingObj ectManagerDB.
vb Line: 39