Search

Tuesday, September 1, 2009

SQL ERROR when use a Webpart Page

Error:-"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)"

Answer:-
if aspnetdb setup next you should configure web.config to use web parts here is the code:





<system.web>


<
webParts>

<personalization
defaultProvider="AspNetSqlPersonalizationProvider">


<
providers>

<remove
name="AspNetSqlPersonalizationProvider"/>


<add
name="AspNetSqlPersonalizationProvider"



type="System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider"



connectionStringName="BIMembership"


applicationName="/"/>

</providers>


</
personalization>

</webParts>




Blog Archive

Contributors