Forum > ASP.NET 1.x och 2.x > Generella frågor
Har skaffat konto hos surftown och har laddat upp mina filer men jag får felmeddelande:
[error=]
någon som har koll på vad detta kan vara för fel??Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.
Source Error:
Line 149: <roleManager>
Line 150: <providers>
Line 151: <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 152: <add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 153: </providers>
Source File: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config Line: 151
Låter ju som att det är att du har en tom connection sträng i din applikation config.
<connectionStrings>
<clear />
<add name="ConnectionStringStar" connectionString="Data Source=212.97.133.34;Initial Catalog=star;User Id=Nanabush;Password=*****; "/>
<add name="LocalSqlServer" connectionString="data source=212.97.133.34;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />
</connectionStrings>
så här ser connectionstringen ut nu men det fungerar inte ändå
Redigerad av Nanabush
Anledning:
En dum fråga: Men vad är det egentligen du är ute efter? Du ger ny kod hela tiden, är det någon guide du följer?
En google sökning ger:
http://www.velocityreviews.com/foru...sing-roles.html
har fått det att fungera men jag var tvungen att bygga en ny databas online med deras verktyg...tyvärr... illa men det funkar. Tack för hjälpen