Panelen



Forumnavigering
Senast inloggade
RSS
Sponsorer

Forum > ASP.NET 1.x och 2.x > Generella frågor

sidan fungerar hemma men inte på webhotellet

Nanabush
Nanabush

Gradering

#14590

Har skaffat konto hos surftown och har laddat upp mina filer men jag får felmeddelande:

[error=]

Server Error in '/' Application.

An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) [error=]

ID: #14590 | Skapades: 2009-02-22 18:45:33 | Tråden har 20 svar och har lästs 898 gånger.
Sida: 12

Nanabush
Nanabush

Gradering

#14862

 

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

 

någon som har koll på vad detta kan vara för fel??

ID: #14862 | Skapades: 2009-03-12 18:43:16

voigtan
voigtan

Gradering

#14863

The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.

Låter ju som att det är att du har en tom connection sträng i din applikation config.

Hur man ställer en fråga: http://support.microsoft.com/kb/q555375
ID: #14863 | Skapades: 2009-03-12 18:48:11

Nanabush
Nanabush

Gradering

#14864

<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:

ID: #14864 | Skapades: 2009-03-12 20:16:53

voigtan
voigtan

Gradering

#14865

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

 

Hur man ställer en fråga: http://support.microsoft.com/kb/q555375
ID: #14865 | Skapades: 2009-03-12 20:26:15

Nanabush
Nanabush

Gradering

#14878

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

ID: #14878 | Skapades: 2009-03-14 10:41:12
Sida: 12
© Copyright 2007-2009 Shadi Domat | Version 3.0 | Sidkarta | Policy