Quantcast
Channel: CodeProject Latest postings for ASP.NET
Viewing all articles
Browse latest Browse all 3938

Problems with Profiles ...

$
0
0
I have this code is web.config
<anonymousIdentificationenabled="true"/><profileenabled="true"><properties><addname="FName"type="String"allowAnonymous="true"/></properties></profile><authenticationmode="Windows"/>
 
and this code is default.aspx.cs page
 
Profile.FName = TextBox1.Text;
Response.Write("Your name is: " + Profile.FName);
 
after runing the page, when I enter a data to text and click on button it gives me an error and this is error:
 
this.SetPropertyValue("FName", value);
 
and on the page error is:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
So, please help me to solve this problem.

Viewing all articles
Browse latest Browse all 3938

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>