Avatar billede per2edb Praktikant
04. august 2009 - 10:26 Der er 3 kommentarer og
1 løsning

web.config til NET login control lagt på host

Jeg har en login NET control fra MS Expression web2 der "køre" fint lokalt. Den skal nu uplodes til webserveren hos UNOEURO hvor den skal tilsluttes MSSQL serveren hos dem. Det giver den nedenfor viste fejl. Unoeuro support vil ikke hjælpe da de siger
MSSQL serveren er opsat korekt hos dem.
Unoeuro har oplyst web.config skal indeholde:

<add name="CONNECTION-NAME" connectionString="Data Source=DB-SERVER;Initial Catalog=DB-NAME;User ID=DB-USERNAME;Password=DB-PASSWORD" />

Det har jeg gjort med den nedenfor oplyste fejl til følge.

Når jeg benytter Data source Libary til at danne web.config får jeg providerName="System.Data.SqlClient" /> koblet på ????
Men det giver også samme fejl.

Web.Config efter Unoeuro anvisning:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="DB-NAMEConnectionString1" connectionString="Data Source=DB-SERVER;Initial Catalog=DB-NAME;User ID=DB-USERNAME;Password=DB-PASSWORD" />
</connectionStrings>
</configuration>

Web.Config efter opsætning gennem data source Libary:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="DB-NAMEConnectionString1" connectionString="Data Source=DB-SERVER;Initial Catalog=DB-NAME;User ID=DB-USERNAME;Password=DB-PASSWORD"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>


Jeg er helt lost - hvordan skal Web.Config se ud??????????????????

Server Error in '/' Application.
--------------------------------------------------------------------------------

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)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

SQLExpress database file auto-creation error:


The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:


If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist.
If the applications App_Data directory already exists, the web server account only requires read and write access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database already exists within the applications App_Data directory. Revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the Sql Server Express database already exists. This will cause an error when the provider attempts to create a duplicate of an already existing database. Write access is required because the web server accounts credentials are used when creating the new database.
Sql Server Express must be installed on the machine.
The process identity for the web server account must have a local user profile. See the readme document for details on how to create a local user profile for both machine and domain accounts.
Avatar billede arne_v Ekspert
04. august 2009 - 21:53 #1
Har du rettet alle DB-FOOBAR til de rigtige værdier ?
Avatar billede per2edb Praktikant
05. august 2009 - 13:36 #2
Ja det har UNOEURO (Web host) tjækket. Herudover har jeg via Data Source Libary test connection ok adgang til MSSQL på serveren når jeg "kører" applikationen på serveren (altså ikke lokalt - hvor alt virker) Alligevel får jeg fejlen:
(provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)Se ovenfor.
Jeg kunne tænke UNOEURO ikke har Framework 2 eller visual web developer så jeg "griber" dem???
Jeg har nærmest føelsen af jeg er den første der bruger expression web2 med en login der skal lægges på UNOEURO´s server.

Kan du eller andre hjælpe får i 200 eller flere point :-)
Avatar billede per2edb Praktikant
05. august 2009 - 13:45 #3
Jeg har lige fået dette:


.NET Framework 2.0 er installeret på serveren.
Visual Web Developer Express Edition er ikke installeret på serveren og du har ikke adgang til machine.config.
Skriverettigheder har du lige fået.
Avatar billede per2edb Praktikant
06. august 2009 - 12:13 #4
Lukket
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester