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 02:39:43 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Chris Peeters
          2    Alvin Bruney [MVP] some guy without an email address


Using WebParts generates SQL-error ???   
Hi,

I try to use WebParts but when browsing to my page I get following error
:

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

Actually I get the error as soon as I drag a WebPartManager on the page.
Right now my page doesn't contain anything else.
Following is the ONLY code in my project (no .cs files, no web.config) :

<%@ Page Language="C#" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:WebPartManager ID="WebPartManager1" runat="server">
            </asp:WebPartManager>
       </div>
    </form>
</body>
</html>


As you can see I am not using any DB at all ! 
I browse to it and bang !!!

how come ? 

thank you 
Chris


*** Sent via Developersdex http://www.developersdex.com ***
Date:Fri, 17 Aug 2007 02:39:43 -0700   Author:  

Re: Using WebParts generates SQL-error ???   
I get that error in VS2005, absolutely annoying. I don't remember the exact 
remedy, but I think I dragged another web part that wasn't hooked to sql, 
and loaded the page, closed the browser and VS2005. Re-opened, removed the 
web part and added the right one. It worked for me, not sure if it will work 
for you.

-- 
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET - MS Press
Professional VSTO 2005 - Wrox/Wiley
OWC Black Book www.lulu.com/owc

"Chris Peeters"  wrote in message 
news:%23MaNLKL4HHA.4476@TK2MSFTNGP06.phx.gbl...

> Hi,
>
> I try to use WebParts but when browsing to my page I get following error
> :
>
> "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"
>
> Actually I get the error as soon as I drag a WebPartManager on the page.
> Right now my page doesn't contain anything else.
> Following is the ONLY code in my project (no .cs files, no web.config) :
>
> <%@ Page Language="C#" %>
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head runat="server">
>    <title>Untitled Page</title>
> </head>
> <body>
>    <form id="form1" runat="server">
>        <div>
>            <asp:WebPartManager ID="WebPartManager1" runat="server">
>            </asp:WebPartManager>
>       </div>
>    </form>
> </body>
> </html>
>
>
> As you can see I am not using any DB at all !
> I browse to it and bang !!!
>
> how come ?
>
> thank you
> Chris
>
>
> *** Sent via Developersdex http://www.developersdex.com *** 
Date:Mon, 20 Aug 2007 20:24:43 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


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