DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 17 Aug 2007 11:17:32 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    ZZ_Scarab
          2    ZZ_Scarab
          3    ZZ_Scarab
          4    Juan T. Llibre


Web Site Administration Tool: Unable to Connect to Database   
Hi,

<I posted this on the microsoft.public.dotnet.framework.aspnet.security 
newsgroup but before I got a reply this newsgroup has become unavailable!! 
So I'm posting it here again. Sorry for the inconveneice.>

I tried using the ASP.Net Web Site Administration Tool to setup security for
a web site I'm creating using VS 2005 C#. When clicking on the Security tab,
I get the error message: "Unable to connect to SQL Server database". I then
created the ASPNETDB database with the ASPNET_REGSQL utility in the
Windows\Microsoft.net\Framework\v2.0.50727 and can now see the database in
SQL Server Management Studio (I'm running SQL Server 2005). I tried the Web
Site Administration Tool  and got the same error. It is interesting that the
tool does not ask for the server name or the database. Is it getting this
info from some setting setup by the ASPNET_REGSQL utility when creating the
ASPNETDB database?

I have no problems connecting from my application or VS proper to the
database, only from the Web Site Administration Tool. What am I missing?

Thanks for any pointers.
Date:Fri, 17 Aug 2007 11:17:32 -0700   Author:  

Re: Web Site Administration Tool: Unable to Connect to Database   
Another quick question: I couldn't get the ASPNET_REGSQL tool to build the 
ASPNETDB database in my App_Data folder so I can separate out the different 
web site databases. How can I get it to do that? And I suspect that I would 
need to use a different name for the database since no two databases can 
have the same name on the same server in SQL Server. If so, what would I 
need to change in order to reference this changed database name?

Thanks

"ZZ_Scarab"  wrote in message 
news:uUAvirP4HHA.748@TK2MSFTNGP04.phx.gbl...

> Hi,
>
> <I posted this on the microsoft.public.dotnet.framework.aspnet.security 
> newsgroup but before I got a reply this newsgroup has become unavailable!! 
> So I'm posting it here again. Sorry for the inconveneice.>
>
> I tried using the ASP.Net Web Site Administration Tool to setup security 
> for
> a web site I'm creating using VS 2005 C#. When clicking on the Security 
> tab,
> I get the error message: "Unable to connect to SQL Server database". I 
> then
> created the ASPNETDB database with the ASPNET_REGSQL utility in the
> Windows\Microsoft.net\Framework\v2.0.50727 and can now see the database in
> SQL Server Management Studio (I'm running SQL Server 2005). I tried the 
> Web
> Site Administration Tool  and got the same error. It is interesting that 
> the
> tool does not ask for the server name or the database. Is it getting this
> info from some setting setup by the ASPNET_REGSQL utility when creating 
> the
> ASPNETDB database?
>
> I have no problems connecting from my application or VS proper to the
> database, only from the Web Site Administration Tool. What am I missing?
>
> Thanks for any pointers.
>
> 
Date:Fri, 17 Aug 2007 13:03:17 -0700   Author:  

Re: Web Site Administration Tool: Unable to Connect to Database   
Another quick question: I couldn't get the ASPNET_REGSQL tool to build the 
ASPNETDB database in my App_Data folder so I can separate out the different 
web site databases. How can I get it to do that? And I suspect that I would 
need to use a different name for the database since no two databases can 
have the same name on the same server in SQL Server. If so, what would I 
need to change in order to reference this changed database name?

Thanks

"ZZ_Scarab"  wrote in message 
news:uUAvirP4HHA.748@TK2MSFTNGP04.phx.gbl...

> Hi,
>
> <I posted this on the microsoft.public.dotnet.framework.aspnet.security 
> newsgroup but before I got a reply this newsgroup has become unavailable!! 
> So I'm posting it here again. Sorry for the inconveneice.>
>
> I tried using the ASP.Net Web Site Administration Tool to setup security 
> for
> a web site I'm creating using VS 2005 C#. When clicking on the Security 
> tab,
> I get the error message: "Unable to connect to SQL Server database". I 
> then
> created the ASPNETDB database with the ASPNET_REGSQL utility in the
> Windows\Microsoft.net\Framework\v2.0.50727 and can now see the database in
> SQL Server Management Studio (I'm running SQL Server 2005). I tried the 
> Web
> Site Administration Tool  and got the same error. It is interesting that 
> the
> tool does not ask for the server name or the database. Is it getting this
> info from some setting setup by the ASPNET_REGSQL utility when creating 
> the
> ASPNETDB database?
>
> I have no problems connecting from my application or VS proper to the
> database, only from the Web Site Administration Tool. What am I missing?
>
> Thanks for any pointers.
>
> 
Date:Fri, 17 Aug 2007 13:03:55 -0700   Author:  

Re: Web Site Administration Tool: Unable to Connect to Database   
re:
!> It is interesting that the tool does not ask for the server name or the database.

By default, the connection is made to a SQL Server Express database.
You need to have SQL Server Express 2005 for the default to work.

If you want to setup a SQL Server 2000 or a SQL Server 2005 database, see :

http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx





Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"ZZ_Scarab"  wrote in message news:uUAvirP4HHA.748@TK2MSFTNGP04.phx.gbl...

> Hi,
>
> <I posted this on the microsoft.public.dotnet.framework.aspnet.security newsgroup but before I got a reply this 
> newsgroup has become unavailable!! So I'm posting it here again. Sorry for the inconveneice.>
>
> I tried using the ASP.Net Web Site Administration Tool to setup security for
> a web site I'm creating using VS 2005 C#. When clicking on the Security tab,
> I get the error message: "Unable to connect to SQL Server database". I then
> created the ASPNETDB database with the ASPNET_REGSQL utility in the
> Windows\Microsoft.net\Framework\v2.0.50727 and can now see the database in
> SQL Server Management Studio (I'm running SQL Server 2005). I tried the Web
> Site Administration Tool  and got the same error. It is interesting that the
> tool does not ask for the server name or the database. Is it getting this
> info from some setting setup by the ASPNET_REGSQL utility when creating the
> ASPNETDB database?
>
> I have no problems connecting from my application or VS proper to the
> database, only from the Web Site Administration Tool. What am I missing?
>
> Thanks for any pointers.
>
> 
Date:Fri, 17 Aug 2007 18:35:59 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us