S
Saber
I put this line in <profile><properties> of my web.config:
<add name="UserID" type="System.String" allowAnonymous="true"/>
And created a connection to a database of SQL Server 2000 (developer
edition),
registered it using aspnet_regsql.exe
In server explorer of VS 2005, I can see my database, and profile table,
In default.aspx.vb I put this line when form loads:
Profile.UserID = "test"
But when I run the project, an error message appears.
________________________________________________________________
Error Details:
System.Web.HttpException was unhandled by user code
Message="Unable to connect to SQL Server database."
ErrorCode=-2147467259
.....
at ProfileCommon.set_UserID(String value) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\webtesting\74c81c7a\d463bc46\App_Code.xy-khu7d.0.cs:line 24
The 24th line of App_Code.xy-khu7d.0.cs is:
this.SetPropertyValue("UserID", value);
<add name="UserID" type="System.String" allowAnonymous="true"/>
And created a connection to a database of SQL Server 2000 (developer
edition),
registered it using aspnet_regsql.exe
In server explorer of VS 2005, I can see my database, and profile table,
In default.aspx.vb I put this line when form loads:
Profile.UserID = "test"
But when I run the project, an error message appears.
________________________________________________________________
Error Details:
System.Web.HttpException was unhandled by user code
Message="Unable to connect to SQL Server database."
ErrorCode=-2147467259
.....
at ProfileCommon.set_UserID(String value) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\webtesting\74c81c7a\d463bc46\App_Code.xy-khu7d.0.cs:line 24
The 24th line of App_Code.xy-khu7d.0.cs is:
this.SetPropertyValue("UserID", value);