Sir i have same problem and i deploy my website and when i try to run it in web this is the error. im using visual studio 11
hope we can fix it before our thesis ^^.
Server Error in '/' Application.
Invalid value for key 'attachdbfilename'.
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.ArgumentException: Invalid value for key 'attachdbfilename'.
Source Error:
Line 4: Partial Class CNews
Line 5: Inherits System.Web.UI.Page
Line 6: Dim Mycon As New SqlConnection("Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\MNHS.mdf;Integrated Security=True") Line 7: Protected Sub BtnCreate_Click(sender As Object, e As EventArgs) Handles BtnCreate.Click
Line 8:
aspkeichi23
Member
2 Points
1 Post
Invalid value for key 'attachdbfilename'
Sep 30, 2012 08:19 AM|LINK
[Split off from: http://forums.asp.net/t/966680.aspx/1?Invalid+value+for+key+attachdbfilename]
Sir i have same problem and i deploy my website and when i try to run it in web this is the error. im using visual studio 11
hope we can fix it before our thesis ^^.
Server Error in '/' Application.
Invalid value for key 'attachdbfilename'.
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.ArgumentException: Invalid value for key 'attachdbfilename'.
Source Error:
Line 4: Partial Class CNews Line 5: Inherits System.Web.UI.Page Line 6: Dim Mycon As New SqlConnection("Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\MNHS.mdf;Integrated Security=True") Line 7: Protected Sub BtnCreate_Click(sender As Object, e As EventArgs) Handles BtnCreate.Click Line 8: