Profiles ASP.Net 2 - Error :(

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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top