Problem accessing MSSQL from ASP

timruns

Perch
Not sure why this isn't working -- I am developing live on win14, and MS VWD Express is creating the code (and confirms that it works), then it blows up when I view in a browser... Maybe I just need sleep...
Error is viewed here:
http://dentech-inc.com/metal/inventory.aspx or
Server Error in '/metal' Application.

The connection name 'dentech_databaseConnectionString' was not found in the applications configuration or the connection string is empty.

[FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif] 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.InvalidOperationException: The connection name 'dentech_databaseConnectionString' was not found in the applications configuration or the connection string is empty.

Source Error:

Line 49: </Columns>
Line 50: </asp:GridView>
Line 51: <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dentech_databaseConnectionString %>"
Line 52: SelectCommand="MetalGetCurrentInventory" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
Line 53: </p>
Source File: D:\hshome\dentech\dentech-inc.com\metal\Inventory.aspx Line: 51

Stack Trace:

[InvalidOperationException: The connection name 'dentech_databaseConnectionString' was not found in the applications configuration or the connection string is empty.]
System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) +2959789
ASP.inventory_aspx.__BuildControlSqlDataSource1() in D:\hshome\dentech\dentech-inc.com\metal\Inventory.aspx:51
ASP.inventory_aspx.__BuildControlform1() in D:\hshome\dentech\dentech-inc.com\metal\Inventory.aspx:15
ASP.inventory_aspx.__BuildControlTree(inventory_aspx __ctrl) in D:\hshome\dentech\dentech-inc.com\metal\Inventory.aspx:1
ASP.inventory_aspx.FrameworkInitialize() +69
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +40
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.inventory_aspx.ProcessRequest(HttpContext context) +29
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

[/FONT] [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif] Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210 [/FONT]
 
ok,
all is working now -- there was a problem with the VWD putting in the wrong connection string...
 
Back
Top