Showing posts with label web. Show all posts
Showing posts with label web. Show all posts

Tuesday, March 20, 2012

Could we discuss Web Data Administrator one last time?

I installed MSDE (SQL2KDeskSP3) from the command prompt with the following command line:

Setup.exe /qb+ INSTANCENAME=newsdb_engine DISABLENETWORKPROTOCOLS=1 SAPWD=dotNet

I then installed WebDataAdmin using all of the defaults.

I opened WebDataAdmin and at the login entered these credentials:

Username: sa
Password: dotNet
Server: newsdb_engine

Each time the error is returned that the username or password is invalid and/or the server does not exist.

So I tried a different server name, adding the computer name:
Server: AZT12YXM/newsdb_engine

Same error message occurred.

Then I read that SQL Authentication mode has to have the correct registry setting.
I went to HKLM/Microsoft/MSSqlServer/MSSqlServer/ and changed the login from "1" to "0"
and rebooted.

Same error message occurred.

I do have a developer edition of SqlServer 2000, but I want to be able to install msde and configure it without enterprise tools so that msde is the sole database engine (for deployment reasons).

Could someone suggest a list of steps from start to finish for installing msde on a machine where the instance you create is the sole database on the target machine and how to configure it to be Web Data Administrator "friendly"?

Maybe this could be the "one-stop" Web Data Admin keyword search thread.

Thank you.The servername should be: MachineName\InstanceName

Cheers
Ken

Could not setup Web Service Identity --> Error Code 80070003

Hello!
I′m trying to setup a Report Server on my SQL 2005 server. In Reporting Services Configuration Manager I get an error when i try to create the Web Sevice Identity

ReportServicesConfigUI.WMIProvider.WMIProviderException: An unknown error has occurred in the WMI Provider. Error Code 80070003
at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.SetWebServiceIdentity(String applicationPool)

The default website contains an office sharepoint 2007 beta solution if that could cause the error..

Would be real grateful for some hints...

Regards

Erik B

Have you found a solution to this? I'm getting the same error after moving the Identities from one Website to another.|||

8007003 is ERROR_PATH_NOT_FOUND. Are you on Win2K3? I suspect this has something to do with ASP.NET setup. Either the WMI provider could not open the ASP.NET registry keys, or it could not find the machine.config file. Make sure you have run aspnet_regiis -i -enable.

If it doesn't work, I would start using regmon and filemon to looks for suspicious errors that could lead to 8007003. Unfortunately at this point the error code is too general to provide any clue.

|||

Hi... I reinstalled SQL 2005 and then it worked fine.. However I think it had to do something with the Encryption Keys... Gwired if I were you I′d delete those from the Reporting Services Configuration Manager, create new ones and then setup a Web Service Identity.

Have a nice day

/Erk

|||

I ran into the same problem, and discovered the issue had to do with the fact that I installed SQL Server 2005, SP1, SP2 and THEN installed Reporting Services. Because I had installed SP2 before Reporting Services, SP2 was not applied to Reporting Services.

The only other thing of note that happened was that when I tried to run the User Provisioning Tool after installing SP2 I got a 'object not set to an instance of an object error'. I didn't really think anything about it at the time, but I think it was only because I figured I'd find the problem down the road. I guess you can say that I did.

Could not setup Web Service Identity --> Error Code 80070003

Hello!
I′m trying to setup a Report Server on my SQL 2005 server. In Reporting Services Configuration Manager I get an error when i try to create the Web Sevice Identity

ReportServicesConfigUI.WMIProvider.WMIProviderException: An unknown error has occurred in the WMI Provider. Error Code 80070003
at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.SetWebServiceIdentity(String applicationPool)

The default website contains an office sharepoint 2007 beta solution if that could cause the error..

Would be real grateful for some hints...

Regards

Erik B

Have you found a solution to this? I'm getting the same error after moving the Identities from one Website to another.|||

8007003 is ERROR_PATH_NOT_FOUND. Are you on Win2K3? I suspect this has something to do with ASP.NET setup. Either the WMI provider could not open the ASP.NET registry keys, or it could not find the machine.config file. Make sure you have run aspnet_regiis -i -enable.

If it doesn't work, I would start using regmon and filemon to looks for suspicious errors that could lead to 8007003. Unfortunately at this point the error code is too general to provide any clue.

|||

Hi... I reinstalled SQL 2005 and then it worked fine.. However I think it had to do something with the Encryption Keys... Gwired if I were you I′d delete those from the Reporting Services Configuration Manager, create new ones and then setup a Web Service Identity.

Have a nice day

/Erk

|||

I ran into the same problem, and discovered the issue had to do with the fact that I installed SQL Server 2005, SP1, SP2 and THEN installed Reporting Services. Because I had installed SP2 before Reporting Services, SP2 was not applied to Reporting Services.

The only other thing of note that happened was that when I tried to run the User Provisioning Tool after installing SP2 I got a 'object not set to an instance of an object error'. I didn't really think anything about it at the time, but I think it was only because I figured I'd find the problem down the road. I guess you can say that I did.

Sunday, March 11, 2012

Could not locate entry (stored procedure error)

hello everyone,

I am using VS 2005 and sql server 2000. I have a web application which uses a connectionstring with a user id and pwd. Everything is fine, I can execute normal sql statements from the code behind. I cannot execute a stored procedure...I get this error.


Could not locate entry in sysdatabases for database 'exec usp_add2DB (my parameters are included here, deleted for simplicity reasons)

No entry found with that name. Make sure that the name is entered correctly.

I have given execute permission for the user, and the name of the storedproc is correct. the name of the server is also correct...pls pls help me what is wrong here...

Post the code you have and someone here can help.|||

Thank you for the response.here is the code...shortened for simplicity sake.

BtnClick event:

string sql = exec sp_add2DB '" + tShiptoSiteNo.Text +"','" txtShipToSiteName.Text

ClassA a = new ClassA("dev_connectionstr");

if(a.ExecuteSP(sql))

{

Response.Write("executed");

}

I am using enterprise library 2.0: (Everything is set up properly,pretty confident about it ,because many apps i am using it).

In Class A:

public class A :BaseDAO

{

public bool ExecuteSP(string sql)
{
DbCommand dbCommand = SqlDatabase.GetStoredProcCommand(sql);

int a = SqlDatabase.ExecuteNonQuery(dbCommand);
return true;}

In web.config:

<connectionStrings>
<add name ="dev_connectionstr" connectionString ="Data Source=ServerName;Initial Catalog=TestDB;User ID=test_user;Password=xxxx" providerName ="System.Data.SqlClient"/>
</connectionStrings>


Thanks for the help.

|||

Hi sankar,

When executing a stored procedure, you cannot list your parameters after the stored procedure name and execute with EXEC.

You need to create a SqlCommand object, and make CommandText as "sp_add2DB". Then use SqlCommand.Parameters.Add() method to add the parameters one by one. After this is done, open the connection and call SqlCommand.ExecuteNonQuery to execute it.

|||Thanks a lot for the reply Kevin Yu....tht explains why! Thank you very much!.

Could not load file or assembly when vew data source

I use VS2008 to develop a web application.
When I open a local report, it's report datasource does not show.
I click the report->DataSource to see it's datasource, but it appear an
error message:
"Could not load file or assembly ### "
But the file or assembly does exist. How can I solve this problem?Did any one find a solution for this issue, yet?

Saturday, February 25, 2012

Could not establish trust relationship with remote server.

Error comes up when I try to deploy RS to my web server, "The underlying
connection was closed: Could not establish trust relationship with remote
server." Web server has valid certificate, and I'm using https in my
connection.
OverwriteDataSources: True
TargetFolder: Reports
TargetServerURL: https://webserver/ReportServer
I'm able to see https://webserver/ReportServer through IE, and I see the
folder Reports. I clicked on Reports and I see my old RS files.I also tried without the s in https, but I still get the same error message.
http://webserver/ReportServer
"Mike L" wrote:
> Error comes up when I try to deploy RS to my web server, "The underlying
> connection was closed: Could not establish trust relationship with remote
> server." Web server has valid certificate, and I'm using https in my
> connection.
> OverwriteDataSources: True
> TargetFolder: Reports
> TargetServerURL: https://webserver/ReportServer
> I'm able to see https://webserver/ReportServer through IE, and I see the
> folder Reports. I clicked on Reports and I see my old RS files.
>|||Hello Cadel,
You may try the following steps to disable SSL on report server to test:
1. Within the RSReportServer.config file you'll find in "\Program
Files\Microsoft SQL Server\MSSQL.X\Reporting Services\ReportServer",
set secureconnectionlevel to 0.
Change
<UrlRoot>https://webserver/ReportServer</UrlRoot>
<UrlRoot>http://webserver/ReportServer</UrlRoot>
2. within C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
Services\ReportManager, change
<ReportServerUrl>https://webserver/ReportServer</ReportServerUrl> to
<ReportServerUrl>http://webserver/ReportServer</ReportServerUrl>
Note: Please backup above files to safe place before you try to modify
them. You may need to restart IIS if it is not take effect
After that, you may want to configure deploy server to
http://webserver/ReportServer in VS to test the situatioin.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
>Thread-Topic: Could not establish trust relationship with remote server.
>thread-index: AcYgX/vgGz1j0C1/RduYsSVDkkJvAQ==>X-WBNR-Posting-Host: 204.87.106.66
>From: =?Utf-8?B?TWlrZSBM?= <Cadel@.nospam.nospam>
>References: <18E8F20D-2CC6-4F76-9687-BE23EE3D3687@.microsoft.com>
>Subject: RE: Could not establish trust relationship with remote server.
>Date: Mon, 23 Jan 2006 13:00:04 -0800
>Lines: 18
>Message-ID: <A3C8E145-FFF3-4828-BC7F-C0C443BFCF63@.microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.sqlserver.reportingsvcs
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
>Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.reportingsvcs:67357
>X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>I also tried without the s in https, but I still get the same error
message.
>http://webserver/ReportServer
>"Mike L" wrote:
>> Error comes up when I try to deploy RS to my web server, "The underlying
>> connection was closed: Could not establish trust relationship with
remote
>> server." Web server has valid certificate, and I'm using https in my
>> connection.
>> OverwriteDataSources: True
>> TargetFolder: Reports
>> TargetServerURL: https://webserver/ReportServer
>> I'm able to see https://webserver/ReportServer through IE, and I see the
>> folder Reports. I clicked on Reports and I see my old RS files.
>|||1. I set "secureconnectionlevel" to zero, the URLRoot was already
"<UrlRoot>http://WEBSERVER/ReportServer</UrlRoot>", so I didn't change that.
2. RSReportServer.config in ReportManager, already had
"<ReportServerUrl>http://WEBSERVER/ReportServer</ReportServerUrl>"
When I tried to deploy in VS, I made sure the TargetServerURL was
"http://webserver/ReportServer", and the TargetFolder was "Reports".
I now get the error, "c:\intranet\Claims.rds The permissions granted to user
'WEBSERVER\IUSR_WEBSERVER' are insufficient for performing this operation."
"Peter Yang [MSFT]" wrote:
> Hello Cadel,
> You may try the following steps to disable SSL on report server to test:
> 1. Within the RSReportServer.config file you'll find in "\Program
> Files\Microsoft SQL Server\MSSQL.X\Reporting Services\ReportServer",
> set secureconnectionlevel to 0.
> Change
> <UrlRoot>https://webserver/ReportServer</UrlRoot>
> <UrlRoot>http://webserver/ReportServer</UrlRoot>
> 2. within C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
> Services\ReportManager, change
> <ReportServerUrl>https://webserver/ReportServer</ReportServerUrl> to
> <ReportServerUrl>http://webserver/ReportServer</ReportServerUrl>
> Note: Please backup above files to safe place before you try to modify
> them. You may need to restart IIS if it is not take effect
> After that, you may want to configure deploy server to
> http://webserver/ReportServer in VS to test the situatioin.
> Best Regards,
> Peter Yang
> MCSE2000/2003, MCSA, MCDBA
> Microsoft Online Partner Support
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> =====================================================>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> --
> >Thread-Topic: Could not establish trust relationship with remote server.
> >thread-index: AcYgX/vgGz1j0C1/RduYsSVDkkJvAQ==> >X-WBNR-Posting-Host: 204.87.106.66
> >From: =?Utf-8?B?TWlrZSBM?= <Cadel@.nospam.nospam>
> >References: <18E8F20D-2CC6-4F76-9687-BE23EE3D3687@.microsoft.com>
> >Subject: RE: Could not establish trust relationship with remote server.
> >Date: Mon, 23 Jan 2006 13:00:04 -0800
> >Lines: 18
> >Message-ID: <A3C8E145-FFF3-4828-BC7F-C0C443BFCF63@.microsoft.com>
> >MIME-Version: 1.0
> >Content-Type: text/plain;
> > charset="Utf-8"
> >Content-Transfer-Encoding: 7bit
> >X-Newsreader: Microsoft CDO for Windows 2000
> >Content-Class: urn:content-classes:message
> >Importance: normal
> >Priority: normal
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> >Newsgroups: microsoft.public.sqlserver.reportingsvcs
> >NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
> >Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
> >Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.reportingsvcs:67357
> >X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
> >
> >I also tried without the s in https, but I still get the same error
> message.
> >
> >http://webserver/ReportServer
> >
> >"Mike L" wrote:
> >
> >> Error comes up when I try to deploy RS to my web server, "The underlying
> >> connection was closed: Could not establish trust relationship with
> remote
> >> server." Web server has valid certificate, and I'm using https in my
> >> connection.
> >>
> >> OverwriteDataSources: True
> >> TargetFolder: Reports
> >> TargetServerURL: https://webserver/ReportServer
> >>
> >> I'm able to see https://webserver/ReportServer through IE, and I see the
> >> folder Reports. I clicked on Reports and I see my old RS files.
> >>
> >
>|||Hello Cadel,
It seems your report server is configured to allow anonymous
authentication. Please check the following settings:
1. Run Inetmgr, right click Reportserver virtual
directory->Properties->Directory Security tab
2. Click Edit, and uncheck "Enable anonymouse access", make sure
"Integrated Windows authentication" is checked.
3. Restart IIS to test
Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
>Thread-Topic: Could not establish trust relationship with remote server.
>thread-index: AcYhHcfqfQzv5KrkRySdCQqp8f5RKg==>X-WBNR-Posting-Host: 204.87.106.66
>From: =?Utf-8?B?TWlrZSBM?= <Cadel@.nospam.nospam>
>References: <18E8F20D-2CC6-4F76-9687-BE23EE3D3687@.microsoft.com>
<A3C8E145-FFF3-4828-BC7F-C0C443BFCF63@.microsoft.com>
<Kuu46qKIGHA.1236@.TK2MSFTNGXA02.phx.gbl>
>Subject: RE: Could not establish trust relationship with remote server.
>Date: Tue, 24 Jan 2006 11:38:41 -0800
>Lines: 111
>Message-ID: <38F8AA05-20C3-4BDB-B64F-6629EB127703@.microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.sqlserver.reportingsvcs
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
>Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.reportingsvcs:67414
>X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>1. I set "secureconnectionlevel" to zero, the URLRoot was already
>"<UrlRoot>http://WEBSERVER/ReportServer</UrlRoot>", so I didn't change
that.
>2. RSReportServer.config in ReportManager, already had
>"<ReportServerUrl>http://WEBSERVER/ReportServer</ReportServerUrl>"
>When I tried to deploy in VS, I made sure the TargetServerURL was
>"http://webserver/ReportServer", and the TargetFolder was "Reports".
>I now get the error, "c:\intranet\Claims.rds The permissions granted to
user
>'WEBSERVER\IUSR_WEBSERVER' are insufficient for performing this operation."
>
>
>
>"Peter Yang [MSFT]" wrote:
>> Hello Cadel,
>> You may try the following steps to disable SSL on report server to test:
>> 1. Within the RSReportServer.config file you'll find in "\Program
>> Files\Microsoft SQL Server\MSSQL.X\Reporting Services\ReportServer",
>> set secureconnectionlevel to 0.
>> Change
>> <UrlRoot>https://webserver/ReportServer</UrlRoot>
>> <UrlRoot>http://webserver/ReportServer</UrlRoot>
>> 2. within C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
>> Services\ReportManager, change
>> <ReportServerUrl>https://webserver/ReportServer</ReportServerUrl> to
>> <ReportServerUrl>http://webserver/ReportServer</ReportServerUrl>
>> Note: Please backup above files to safe place before you try to modify
>> them. You may need to restart IIS if it is not take effect
>> After that, you may want to configure deploy server to
>> http://webserver/ReportServer in VS to test the situatioin.
>> Best Regards,
>> Peter Yang
>> MCSE2000/2003, MCSA, MCDBA
>> Microsoft Online Partner Support
>> When responding to posts, please "Reply to Group" via your newsreader so
>> that others may learn and benefit from your issue.
>> =====================================================>>
>> This posting is provided "AS IS" with no warranties, and confers no
rights.
>>
>> --
>> >Thread-Topic: Could not establish trust relationship with remote server.
>> >thread-index: AcYgX/vgGz1j0C1/RduYsSVDkkJvAQ==>> >X-WBNR-Posting-Host: 204.87.106.66
>> >From: =?Utf-8?B?TWlrZSBM?= <Cadel@.nospam.nospam>
>> >References: <18E8F20D-2CC6-4F76-9687-BE23EE3D3687@.microsoft.com>
>> >Subject: RE: Could not establish trust relationship with remote server.
>> >Date: Mon, 23 Jan 2006 13:00:04 -0800
>> >Lines: 18
>> >Message-ID: <A3C8E145-FFF3-4828-BC7F-C0C443BFCF63@.microsoft.com>
>> >MIME-Version: 1.0
>> >Content-Type: text/plain;
>> > charset="Utf-8"
>> >Content-Transfer-Encoding: 7bit
>> >X-Newsreader: Microsoft CDO for Windows 2000
>> >Content-Class: urn:content-classes:message
>> >Importance: normal
>> >Priority: normal
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>> >Newsgroups: microsoft.public.sqlserver.reportingsvcs
>> >NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
>> >Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
>> >Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.sqlserver.reportingsvcs:67357
>> >X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>> >
>> >I also tried without the s in https, but I still get the same error
>> message.
>> >
>> >http://webserver/ReportServer
>> >
>> >"Mike L" wrote:
>> >
>> >> Error comes up when I try to deploy RS to my web server, "The
underlying
>> >> connection was closed: Could not establish trust relationship with
>> remote
>> >> server." Web server has valid certificate, and I'm using https in my
>> >> connection.
>> >>
>> >> OverwriteDataSources: True
>> >> TargetFolder: Reports
>> >> TargetServerURL: https://webserver/ReportServer
>> >>
>> >> I'm able to see https://webserver/ReportServer through IE, and I see
the
>> >> folder Reports. I clicked on Reports and I see my old RS files.
>> >>
>> >
>>
>

Could not establish connection to database

I am having a great deal of difficulty connecting my version of visual web developer 2005 express to the AspNetSqlProvider as stated in the tutorials online at the web developer center. I keep getting the error below.

"Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider. "

When I run the utility I still get a connection error using the hostname of my computer and windows authentication.

The setup failed message is as below also:-

"Setup failed.

Exception:
Unable to connect to SQL Server database.

-
Details of failure
-

System.Web.HttpException: Unable to connect to SQL Server database. > System.Data.SqlClient.SqlException: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner, Boolean& failoverDemandDone, String host, String failoverPartner, String protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean aliasLookup)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString)
End of inner exception stack trace
at System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString)
at System.Web.Management.SqlServices.SetupApplicationServices(String server, String user, String password, Boolean trusted, String connectionString, String database, String dbFileName, SqlFeatures features, Boolean install)
at System.Web.Management.SqlServices.Install(String database, SqlFeatures features, String connectionString)
at System.Web.Management.ConfirmPanel.Execute()"

I have tried some of the suggestions on the forum with no result

Please can you help

Do you in fact have a SQL Server installed?

If you installed SQL Server Express, the 'computer name' to use is probably [ .\SQLEXPRESS ]

Have you tried [ (local) ]

If you have NOT installed SQL Server, you can download (and then install) a free copy of SQL Server 2005 Express here.

|||

Thanks for the reply.

I do have SQL Server Express installed since I can open the configuration tool

|||

Arnie,

Thanks for the info again. I tried it using the aspnet_regsql tool and got a successfult database creation so that worked fine. The only problem now is that the Web Admin tool within Visual web Developer it is saying that the server path is

[Hostname]\John Brindle rather than [Hostname]\SQLEXPRESS which is what it needs to be I guess. Do you know how I change this so I can get a good connection test using the tool and thus be able to use the database with Visual Web Developer?

Regards

John

|||

I am facing the same problem but I have not installed SQL Server 2005 Express Edition

I have SQL Server 2005 Enterprise edition.

I have tried using the aspnet_regsql utility that creates the aspnetdb but I am unable to see its instance in tha app_dev folder

and I am unable to connect to it ...

Any suggestions ?

|||Sorry have no suggestions. My problem seems tro be more basic than even getting the database created which I can now do by specifiying [Hostname of my pc]\SQLEXPRESS as the server path. MY problem is I cannot do a test connection to the database and thuis use it.|||

I have the same problem, I'm using Windows Vista Home Premium, I can establish a connection from the Database Explorer but when using the ASP.NET configuration I get the message:

Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.

I have ran the aspnet_regsql and changed the host to <pcname>\sqlexpress but get the same exact error. Weird because I don't have that problem with my XP machine at work. Any suggestions?

thanks

|||

Ok, I found the solution for not beeing able to use SQL on the webdeveloper. The issue is that SQL Server (express or full version) does not allow user instances to be run by default, when trying to use the security option in webdeveloper a database file (.mdf) is created and a new user instances outside the server is created.

Ok, enough explanation, the solution: open sql management studio and open the master database, make a new query and type sp_configure 'user instances enabled','1' execute this , then type reconfigure and execute this too so the changes take effect. For more information on sp_configure you can read http://msdn2.microsoft.com/en-us/library/ms188787.aspx if you wish to list all the configuration then execute sp_configure without any parameters.

Hope it helps and good luck.

|||

AngelX, my last hope before I call Microsoft.

I'm running Vista and SQL 2005 Developer.

I don't have ' user instances enabled' to set?

Regards

Phil

|||

Phillip,

Open the Microsoft SQL Server Manager Studio (in my case I have the Manager Studio Express version), connect to you database and make a new query with your current connection, then execute the following sp_configure, in the query result tab a list like the following should appear:

Name

Minimum

Maximum

Config_value

Run_value

allow updates

0

1

0

0

clr enabled

0

1

0

0

cross db ownership chaining

0

1

0

0

default language

0

9999

0

0

max text repl size (B)

0

2147483647

65536

65536

nested triggers

0

1

1

1

remote access

0

1

1

1

remote admin connections

0

1

0

0

remote login timeout (s)

0

2147483647

20

20

remote proc trans

0

1

0

0

remote query timeout (s)

0

2147483647

600

600

server trigger recursion

0

1

1

1

show advanced options

0

1

0

0

user instances enabled

0

1

1

1

user options

0

32767

0

0

If you see the list then you're in business, type sp_configure "user instances enabled", 1 and execute this, then execute reconfigure so the changes take effect.

Hope it helps.

Could not establish connection to database

I am having a great deal of difficulty connecting my version of visual web developer 2005 express to the AspNetSqlProvider as stated in the tutorials online at the web developer center. I keep getting the error below.

"Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider. "

When I run the utility I still get a connection error using the hostname of my computer and windows authentication.

The setup failed message is as below also:-

"Setup failed.

Exception:
Unable to connect to SQL Server database.

-
Details of failure
-

System.Web.HttpException: Unable to connect to SQL Server database. > System.Data.SqlClient.SqlException: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner, Boolean& failoverDemandDone, String host, String failoverPartner, String protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean aliasLookup)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString)
End of inner exception stack trace
at System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString)
at System.Web.Management.SqlServices.SetupApplicationServices(String server, String user, String password, Boolean trusted, String connectionString, String database, String dbFileName, SqlFeatures features, Boolean install)
at System.Web.Management.SqlServices.Install(String database, SqlFeatures features, String connectionString)
at System.Web.Management.ConfirmPanel.Execute()"

I have tried some of the suggestions on the forum with no result

Please can you help

Do you in fact have a SQL Server installed?

If you installed SQL Server Express, the 'computer name' to use is probably [ .\SQLEXPRESS ]

Have you tried [ (local) ]

If you have NOT installed SQL Server, you can download (and then install) a free copy of SQL Server 2005 Express here.

|||

Thanks for the reply.

I do have SQL Server Express installed since I can open the configuration tool

|||

Arnie,

Thanks for the info again. I tried it using the aspnet_regsql tool and got a successfult database creation so that worked fine. The only problem now is that the Web Admin tool within Visual web Developer it is saying that the server path is

[Hostname]\John Brindle rather than [Hostname]\SQLEXPRESS which is what it needs to be I guess. Do you know how I change this so I can get a good connection test using the tool and thus be able to use the database with Visual Web Developer?

Regards

John

|||

I am facing the same problem but I have not installed SQL Server 2005 Express Edition

I have SQL Server 2005 Enterprise edition.

I have tried using the aspnet_regsql utility that creates the aspnetdb but I am unable to see its instance in tha app_dev folder

and I am unable to connect to it ...

Any suggestions ?

|||Sorry have no suggestions. My problem seems tro be more basic than even getting the database created which I can now do by specifiying [Hostname of my pc]\SQLEXPRESS as the server path. MY problem is I cannot do a test connection to the database and thuis use it.|||

I have the same problem, I'm using Windows Vista Home Premium, I can establish a connection from the Database Explorer but when using the ASP.NET configuration I get the message:

Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.

I have ran the aspnet_regsql and changed the host to <pcname>\sqlexpress but get the same exact error. Weird because I don't have that problem with my XP machine at work. Any suggestions?

thanks

|||

Ok, I found the solution for not beeing able to use SQL on the webdeveloper. The issue is that SQL Server (express or full version) does not allow user instances to be run by default, when trying to use the security option in webdeveloper a database file (.mdf) is created and a new user instances outside the server is created.

Ok, enough explanation, the solution: open sql management studio and open the master database, make a new query and type sp_configure 'user instances enabled','1' execute this , then type reconfigure and execute this too so the changes take effect. For more information on sp_configure you can read http://msdn2.microsoft.com/en-us/library/ms188787.aspx if you wish to list all the configuration then execute sp_configure without any parameters.

Hope it helps and good luck.

|||

AngelX, my last hope before I call Microsoft.

I'm running Vista and SQL 2005 Developer.

I don't have ' user instances enabled' to set?

Regards

Phil

|||

Phillip,

Open the Microsoft SQL Server Manager Studio (in my case I have the Manager Studio Express version), connect to you database and make a new query with your current connection, then execute the following sp_configure, in the query result tab a list like the following should appear:

Name

Minimum

Maximum

Config_value

Run_value

allow updates

0

1

0

0

clr enabled

0

1

0

0

cross db ownership chaining

0

1

0

0

default language

0

9999

0

0

max text repl size (B)

0

2147483647

65536

65536

nested triggers

0

1

1

1

remote access

0

1

1

1

remote admin connections

0

1

0

0

remote login timeout (s)

0

2147483647

20

20

remote proc trans

0

1

0

0

remote query timeout (s)

0

2147483647

600

600

server trigger recursion

0

1

1

1

show advanced options

0

1

0

0

user instances enabled

0

1

1

1

user options

0

32767

0

0

If you see the list then you're in business, type sp_configure "user instances enabled", 1 and execute this, then execute reconfigure so the changes take effect.

Hope it helps.

Could not establish connection to database

I am having a great deal of difficulty connecting my version of visual web developer 2005 express to the AspNetSqlProvider as stated in the tutorials online at the web developer center. I keep getting the error below.

"Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider. "

When I run the utility I still get a connection error using the hostname of my computer and windows authentication.

The setup failed message is as below also:-

"Setup failed.

Exception:
Unable to connect to SQL Server database.

-
Details of failure
-

System.Web.HttpException: Unable to connect to SQL Server database. > System.Data.SqlClient.SqlException: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner, Boolean& failoverDemandDone, String host, String failoverPartner, String protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean aliasLookup)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString)
End of inner exception stack trace
at System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString)
at System.Web.Management.SqlServices.SetupApplicationServices(String server, String user, String password, Boolean trusted, String connectionString, String database, String dbFileName, SqlFeatures features, Boolean install)
at System.Web.Management.SqlServices.Install(String database, SqlFeatures features, String connectionString)
at System.Web.Management.ConfirmPanel.Execute()"

I have tried some of the suggestions on the forum with no result

Please can you help

Do you in fact have a SQL Server installed?

If you installed SQL Server Express, the 'computer name' to use is probably [ .\SQLEXPRESS ]

Have you tried [ (local) ]

If you have NOT installed SQL Server, you can download (and then install) a free copy of SQL Server 2005 Express here.

|||

Thanks for the reply.

I do have SQL Server Express installed since I can open the configuration tool

|||

Arnie,

Thanks for the info again. I tried it using the aspnet_regsql tool and got a successfult database creation so that worked fine. The only problem now is that the Web Admin tool within Visual web Developer it is saying that the server path is

[Hostname]\John Brindle rather than [Hostname]\SQLEXPRESS which is what it needs to be I guess. Do you know how I change this so I can get a good connection test using the tool and thus be able to use the database with Visual Web Developer?

Regards

John

|||

I am facing the same problem but I have not installed SQL Server 2005 Express Edition

I have SQL Server 2005 Enterprise edition.

I have tried using the aspnet_regsql utility that creates the aspnetdb but I am unable to see its instance in tha app_dev folder

and I am unable to connect to it ...

Any suggestions ?

|||Sorry have no suggestions. My problem seems tro be more basic than even getting the database created which I can now do by specifiying [Hostname of my pc]\SQLEXPRESS as the server path. MY problem is I cannot do a test connection to the database and thuis use it.|||

I have the same problem, I'm using Windows Vista Home Premium, I can establish a connection from the Database Explorer but when using the ASP.NET configuration I get the message:

Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.

I have ran the aspnet_regsql and changed the host to <pcname>\sqlexpress but get the same exact error. Weird because I don't have that problem with my XP machine at work. Any suggestions?

thanks

|||

Ok, I found the solution for not beeing able to use SQL on the webdeveloper. The issue is that SQL Server (express or full version) does not allow user instances to be run by default, when trying to use the security option in webdeveloper a database file (.mdf) is created and a new user instances outside the server is created.

Ok, enough explanation, the solution: open sql management studio and open the master database, make a new query and type sp_configure 'user instances enabled','1' execute this , then type reconfigure and execute this too so the changes take effect. For more information on sp_configure you can read http://msdn2.microsoft.com/en-us/library/ms188787.aspx if you wish to list all the configuration then execute sp_configure without any parameters.

Hope it helps and good luck.

|||

AngelX, my last hope before I call Microsoft.

I'm running Vista and SQL 2005 Developer.

I don't have ' user instances enabled' to set?

Regards

Phil

|||

Phillip,

Open the Microsoft SQL Server Manager Studio (in my case I have the Manager Studio Express version), connect to you database and make a new query with your current connection, then execute the following sp_configure, in the query result tab a list like the following should appear:

Name

Minimum

Maximum

Config_value

Run_value

allow updates

0

1

0

0

clr enabled

0

1

0

0

cross db ownership chaining

0

1

0

0

default language

0

9999

0

0

max text repl size (B)

0

2147483647

65536

65536

nested triggers

0

1

1

1

remote access

0

1

1

1

remote admin connections

0

1

0

0

remote login timeout (s)

0

2147483647

20

20

remote proc trans

0

1

0

0

remote query timeout (s)

0

2147483647

600

600

server trigger recursion

0

1

1

1

show advanced options

0

1

0

0

user instances enabled

0

1

1

1

user options

0

32767

0

0

If you see the list then you're in business, type sp_configure "user instances enabled", 1 and execute this, then execute reconfigure so the changes take effect.

Hope it helps.