Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Profiles ASP.Net 2 - Error :(

Reply
Thread Tools

Profiles ASP.Net 2 - Error :(

 
 
Saber
Guest
Posts: n/a
 
      02-09-2006
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\Temp orary 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);


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless and Windows roaming profiles =?Utf-8?B?SXZv?= Wireless Networking 11 04-12-2005 07:32 PM
Moz1.7.5. Multiple profiles, profiles lacking email accts crash. oops Splibbilla Firefox 0 03-21-2005 02:58 AM
setting up profiles? Anonymous Wireless Networking 2 10-29-2004 01:58 PM
Prblm: Radius, WLAN, roaming profiles and software install via group policies Ola Theander Wireless Networking 0 09-08-2004 09:50 PM
Re: Roaming profiles and WPA using PEAP MS-CHAPv2 aLTeReGo Wireless Networking 0 09-02-2004 05:51 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57