Network Bridging or forcing specific NICs

So this is a challenging problem, which I have yet to find an answer.
At work we have wired and wireless connections, the wired i use my laptop thru proxy to connect to RDC of a windows server, it also have very restricted internet access. The wireless connection does not need the proxy and I want to set up an internet browser to use the wireless while the RDC uses wired.
Question is, is there any way to force a program firefox or safari to use one interface while others use the other interface. I have tried rearranging the order of service in networks but that just makes the wired services not work.

Per application would probalby require a special proxy running local on the system.
However, per destination is definitely possible.
Set your box back up so that your wireless is the default path since if I understood you correctly, that sends you out direct and what you want for most things.
Open Terminal (spotnight/terminal)
run 'netstat -rn' and get the default gateway for your en0 interface (wired).
add a static route for the proxy that you want to use only over Wired to that gateway.
For instance, if the proxy was 5.4.3.2 and your next hop off en0 is 192.168.1.1, you would enter:
sudo route -nv add -host 5.4.3.2 192.168.1.1

Similar Messages

  • Creating Network Bridge in Windows 7 on wired port causes cable unplugged

    So I created a Microsoft Loopback interface and tried to create a Network Bridge in Windows 7 with the wired Ethernet port on my E7440 laptop.  But once the bridge is created and the interfaces added, the Ethernet port says 'cable unplugged'.  If I take the interface out of the bridge, it sits there for quite a while before it says it is active again.
    I'm pretty sure I have been able to do this on other PCs.  Is there something new here or a bug with this model?
    Thanks,
    Greg

    Hi Greg,
    I don't know of anything specific to the E7440 that would cause that problem.  I would think any security software, or hardware, would block pings to the loopback address, not report it as cable unplugged.  I just wonder if there is something with the driver that is causing it?  (Since it sounds like without the loopback that the NIC is functioning correctly). 
    The E7440 comes with Intel AMT for remote maintenance, but I wouldn't think it would block what you're trying to do.  And even if it did, then it still shouldn't give that media unplugged message.
    To be honest, these forums aren't the best place to get answers to this sort of question.  We try to do best possible support but this might be an issue where you need to contact Dell's Tech Support and speak to the software agents who are more experienced in advanced software support.  
    Sorry we couldn't be of more help to you.
    Todd

  • Configuring RDS to specific NIC Adapter + Avoid Office 2013 Volume Licensing

    Background: Small Company basically 1 User (me)... I've recently purchased a new server class computer and have downloaded and installed Windows Server 2012 R2 Essentials.  I have 2 routers, 1 for home use (192.168..) and other provided to me by the
    company I contract to (10.41..).  I have a 4 port independent NIC card.  I connect to a company configured VM through a Remote Desktop Connection.  I also need to run Lync 2013 on the Windows Server 2012 machine in order to communicate internally
    with other members of the company.
    My Understanding: In order to configure the remote desktop connection to my VM to use a specific NIC adapter I must first install the Remote desktop Session Host service.  Then I should be able to configure the RDP-TCP connection to use a specific NIC
    adapter.  However, when I install the Remote desktop Session Host Service and I try and run Lync 2013 I receive an message stating that because I'm running Remote Desktop Services on this server I need to purchase volume licensing for my Office 2013 product.
    Question: Is there a way for me to configure my Windows Server 2012 R2 environment so that I can first specify a specific NIC adapter to use during my RDP session into my VM and also allow me not to have to purchase volume licensing for the Office 2013 product.
    -=Duane=-

    Hi Duane,
    As per my research, if you have RDS license and CAL installed still you need to purchase Office licensing to use office product. Office Professional Plus 2013 and Office Standard 2013 are licensed on a per-device basis. Users can only remotely access a copy
    of Office Professional Plus 2013 or Office Standard 2013 running on a network server from a licensed device. Therefore, your windows need the latest Office suite license assigned to the device.
    For more information.
    1.  Licensing Office on Remote Desktop Services
    2.  Microsoft Office
    For Network Adapter, you can try PowerShell Command and rename your NIC specific to RDS so that you can identify that specific NIC is used by RDS for connection. For that you can do following things.
    List of Network Adapter: Get-NetAdapter 
    Rename Network Adapter: Rename-NetAdapter -Name "Wired Ethernet Connection 4" PublicInternet1
    Please find below snap and link for more information.
    1.  Using PowerShell for NIC Configuration Tasks
    2.  Use PowerShell to Configure the NIC on Windows Server 2012
    Hope it helps!
    Thanks.

  • Bug in Hyper-V: Network Bridge's ARP proxying broken in certain scenarios

    Edit
    I am quite sure now this is a bug. The ARP proxying does not work for VMs if the packet-recipient is not directly attached
    to the external vswitch that is bridged to the wifi-nic!
    /Edit
    I am running a test lab on my Windows 8.1 using Hyper-V.
    My problem is, that the virtual LAN has limited connectivity, when the external vSwitch is configured to use the wifi interface, instead of the cable interface. I am troubleshooting this issue for hours now and I reached the point where I believe the Network
    Bridge, that is created by the Hyper-V Virtual Switch Manager, is not forwarding packets.
    Pings are delivered from 192.168.178.2 to 192.168.178.1 and back again.
    Pings from 192.168.0.10 are delivered to 192.168.178.1, and the reply does reach the wifi interface …
    == Trace on the WiFi interface ==
    Here you see a log of the trace on the WiFi interface of the Hyper-V-Host,
    while 192.168.0.10 is pinging 192.168.178.1
    No Time Source Destination HW Source HW Destination Protocol Info
    3 0.003340000 192.168.0.10 192.168.178.1 24:65:11:cc:c0:9e 24:65:11:2b:35:e4 ICMP Echo (ping) request id=0x0001, seq=44/11264, ttl=127 (reply in 4)
    4 0.006094000 192.168.178.1 192.168.0.10 24:65:11:2b:35:e4 24:65:11:cc:c0:9e ICMP Echo (ping) reply id=0x0001, seq=44/11264, ttl=64 (request in 3)
    5 0.006152000 192.168.178.1 192.168.0.10 24:65:11:cc:c0:9e 24:65:11:2b:35:e4 ICMP Echo (ping) reply id=0x0001, seq=44/11264, ttl=64
    … but is never forwarded to the Network Bridge interface.
    == Trace on the Network Bridge interface ==
    Here you see a log of the trace on the Network Bridge interface of the Hyper-V-Host,
    while the Hyper-V-Host is pinging 192.168.178.1 (#1)
    and the 192.168.178.2 is pinging 192.168.178.1 (#7)
    -> Note: The ping-reply from 192.168.178.1 to 192.168.0.10 is missing!
    1 0.000000000 192.168.178.1 192.168.178.21 24:65:11:2b:35:e4 24:65:11:cc:c0:9e ICMP Echo (ping) reply id=0x0001, seq=9/2304, ttl=64
    7 7.852500000 192.168.178.1 192.168.178.2 24:65:11:2b:35:e4 00:15:5d:b2:21:18 ICMP Echo (ping) reply id=0x0001, seq=439/46849, ttl
    How do I solve this problem?

    Hi,
    In that article I read this :
    " This is supported on wired physical NICs (by putting the NIC in promiscuous mode),
    but not supported on wireless NICs since the wireless channel established by the WiFi NIC and its access point only allows Ethernet packets with the WiFi NIC’s MAC address and nothing else. In other words, Hyper-V couldn’t use WiFi NICs for
    an external switch if we continued to use the current virtual switch architecture."
    Based on my understanding , the prerequisite of external virtual switch is physical NIC supports promiscuous mode . The blogger's opinion is that wireless NIC do not support promiscuous mode ,so the workaround "mac bridge " arises .
    (but "microsoft MAC Bridge" is designed by microsoft to support creating external Vswitch on these wireless NIC which doesn't support promiscuous mode , so I think it is not a bug , it is by design ).
    Also we have not yet tested with a wireless NIC which supports promiscuous mode .
    "In computer networking, promiscuous mode or promisc mode is a mode for a
    wired network interface controller (NIC) or wireless network interface controller
    (WNIC) that causes the controller to pass all traffic it receives to the central processing unit (CPU) rather than passing only the frames that the controller is intended to receive. "
    http://en.wikipedia.org/wiki/Promiscuous_mode
    Best Regards
    Elton JI
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Statically assign xenbr0 (eth0) interface to one specific NIC

    Hi,
    I have multiple NICs on my Oracle VM server. Everytime it reboots, xenbr0 (eth0) will be dynamically assigned to one of the NICs card, depending on which one comes up first. My xenbr0 is assigned a public address. That means that I will not be able to connect to the server remotely if it is assigned to a different NIC. Can someone tell me how I can assign xenbr0 to one specific NIC statically?
    Regards,
    Ming
    Edited by: user2872557 on Sep 12, 2011 2:19 PM

    user2872557 wrote:
    I have multiple NICs on my Oracle VM server. Everytime it reboots, xenbr0 (eth0) will be dynamically assigned to one of the NICs card, depending on which one comes up first. My xenbr0 is assigned a public address. That means that I will not be able to connect to the server remotely if it is assigned to a different NIC. Can someone tell me how I can assign xenbr0 to one specific NIC statically?What version of Oracle VM are you talking about here? In Oracle VM 2.2, it automatically creates xenbrX bridges for each ethX device it finds. If this is changing, it means your NICs are changing on boot. You need to ensure that your ifcfg-ethX device configurations have HWADDR fields to fix them to a particular NIC.
    In Oracle VM 3.0, we do not create xenbrX bridges by default and this is all handled by the Manager.

  • Creating a network bridge from ethernet to wifi for xbox

    Hey guys, I'm trying to create a network bridge from eth0(ethernet port) to ra0(wifi) in an attempt to avoid buying a wireless adapter for my new Xbox 360 I got this Christmas. With Windows, it looks incredibly simple(just going into network settings and right clicking basically) but I don't want to boot into windows every time I want to use live... I have searched around the net but I always get DNS errors whenever I play with iptables, does anyone have a good way to get this to run?

    Any chance you guys are going to finish answering it? Since Arch is the do-it-yourself distro, can we get a group of people together who want to make a package or go "fix" the NetworkManager source code to include support for autoconfiguration of bridges?
    Windows calls them bridges now, just for your information. In windows you select or highlight both network interface devices at the same time, right click on either one, and select "Bridge Connections". This is incredibly easy for the user, and it is just as powerful as that mess of instructions you gave up there.
    scripts are OK, but they should never be the final solution to a problem. Remember it helps if more people don't have to know everything about an operating system. If people can avoid the complexity of Linux, they will be happier, more productive, and will enjoy contributing software to Linux or telling their friends about Linux.
    If it requires this "splint" scripting that doesn't work 100% of the time, Linux is going to die a very grisly death. I know more and more people nowadays who know to Bridge the connections in Windows to get internet on their xbox 360s. I can't convince any of them that Linux is better because they ignore the rest of Linux and complain about this one missing feature. Indeed even I can't use Linux to bridge my laptop's connections for use with my desktop or another computer that needs to download 3rd party wireless drivers from the internet.
    I am a huge proponent of Linux, but to be honest, I notice that a bunch of work still needs to be done. I realize the market and business forces are set against Linux right now, but if everyone would stop making new distros and instead fix the packages that go into the existing ones, we could have Linux replace Windows within 5 years.
    If you don't like a distro, go work for the company and help them improve it. Making your own distro is not going to help solve the watered-down developer population.
    Networking is something that is VERY important to people. NetworkManager was a great success and boon to everyday Linux usage. It needs a bit of polishing; that is all.

  • Network Bridging incredibly slow

    Hello, I have a small server running Windows Server 2012 Essentials R2. My problem is the speed of network bridging. The server has two Intel 82574L Gigabit NIC's one of which is connected to my router and the other to my main PC. I have done this to allow
    my PC to talk to server over gigabit and the rest of the devices to talk to it over 10/100 or Wireless. If I select the two adapters and then bridge them to allow my PC to talk to the rest of the network transfer speed to and from the server become very slow
    (This is the same for all the devices in the house). However if I remove the bridge and instead choose the share internet option on the NIC connected to router my speeds go back to normal. (Just to clarify slow is 200 kilobytes per second and normal is 30
    megabytes per second approximately).
    Any help would be much appreciated
    Thanks
    Nathan

    Hi Nathan,
    Both of network bridge and ICS are the ways you can choose to connect network segments. network bridge enable all of the computers to communicate with each other, and making them appear to be a single IP subnet. ICS uses DHCP to assign private IP addresses,
    and NAT  to allow computers on the private network to connect to the public network through the ICS host.
    Based on different network topology, traffic and some other factors, as Dave Patrick said, hardware device will performance better than software device(Windows Server 2012 that is not dedicated to performing network bridge only, but which performs bridge
    as one of multiple processes running on the computer). These two methods will have different impact on network performance.
    For further confirm this problem, I suggest you to use System Monitor
    within Windows, or Network Monitor( down load link:
    http://www.microsoft.com/en-us/download/details.aspx?id=4865) to monitor network performance.
    Best Regards,           
    Eve Wang

  • 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. (p

    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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)(Microsoft SQL Server, Error: 2)
    The system cannot find the file specified
    Cannot connect to COWBOYS.
    Here are the technical details===================================
    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:
    Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
    Error Number: 2
    Severity: 20
    State: 0
    Program Location:
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer
    timeout)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance,
    SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
       at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
    ===================================
    The system cannot find the file specified
    I have tried from so many forms. This is so frustrating. Thank for everyone/anyone who wants to help. So this is what happened: I had to uninstall my previous sqlserver 2012(which worked great) for some reason, and I uninstalled everything from that download.
    Then I installed the trial edition of sql server 2012 (64 Bit) and It wouldn't connect to the database. (Error mentioned above.) My local DB is COWBOYS. (COWBOYS is also my computer name.) After this, I have tried downloading sqlexpress and sqlserver 64bit
    many times and cannot connect to my local DB. 
    How do I connect to my Local DB? 
    Also, I think this might help: (When I run sqlserve.exe, which I was able to find in C:\Program Files\Microsoft SQL Server\110\LocalDB\Binn, I get an error: Your SQL server installation is either corrupt or has been tampered with(Error getting
    instance ID from name). Please uninstall then re-run setup to correct this problem.
    I would happily re install it, if it wasn't my 20th time.
    I don't have any remote connections, I don't use username/password, only window authentication. I work mostly on visual studio, but without able to store /retrieve data, I don't know how to survive.
    May be the solution is very simple, but I am too frustrated. 
    Some of the things I have tried:
    From a command prompt, enter one of the following commands:
    net start "SQL Server Agent (MSSQLSERVER)" OR 
    net start "SQL Server Agent(instancename)"(for instance)
    on my sql configuration, I cannot start anything because there is nothing there to start. I can post more details, if that would help. Also, some more details about the error:
    Details
    Product:
    SQL Server
    ID:
    2
    Source:
    MSSQLServer
    Version:
    10.0
    Component:
    SQLEngine
    Message:
    An error has occurred while establishing a connection to the server. When connecting to SQL Server, 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) (.Net SqlClient Data Provider)
    Explanation
    SQL Server did not respond to the client request because the server is probably not started.
    User Action
    Make sure that the server is started.
    Version:
    9.0
    Component:
    SQLEngine
    Message:
    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) (.Net SqlClient Data Provider)
    Explanation
    SQL Server did not respond to the client request because the server is probably not started.
    User Action
    Make sure that the server is started.
    Any one that can help me, I will be greatful. Thank you so much. p.s. please ask me anything if you have any questions.

    It sounds like there are a couple things going on here.  First check if you have a successful install of SQL Server, then we'll figure out the connection issues.
    Can you launch SQL Server Configuration Manager and check for SQL Server (MSSQLSERVER) if default instance or SQL Server (other name) if you've configured your instance as a named instance.  Once you find this, make sure the service is started. 
    If not started, try to start it and see if it throws an error.  If you get an error, post the error message your hitting.  If the service starts, you can then launch SSMS and try to connect.  If you have a default instance, you can use the machine
    name in the connection dialog.  Ex:  "COWBOYS" where Cowboys is the machine name.  However, if you named the SQL Server instance during install, you'll need to connect using the machine\instance format.  Ex:  COWBOYS\Romo (where Romo
    is the instance name you set during install).
    You can also look at the summary.txt file in the SQL Server setup error logs to see what happened on the most recent install.  Past install history is archived in the log folder if you need to dig those up to help troubleshoot, but the most
    recent one may help get to the bottom of it if there is an issue with setup detecting a prior instance that needs to be repaired.
    Thanks,
    Sam Lester (MSFT)
    http://blogs.msdn.com/b/samlester
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and
    "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Azure Webjobs with EF DB - A network-related or instance-specific error occurred while establishing a connection to SQL Server

    Hi,
    I have been trying to get a very simple WebJob developed and deployed onto Azure with little to no luck.  I have a MVC Website which has a common project which handles my Data Access Layer with Entity Framework.  I have created a WebJob project
    using Visual Studio and added the following lines of code to the Manual Trigger Function
    [NoAutomaticTrigger]
    public static void ManualTrigger(TextWriter log, int value, [Queue("queue")] out string message)
    RitualDBEntities db = new RitualDBEntities();
    log.WriteLine("Function is invoked with value={0}", value);
    List<Location> locations = db.Locations.ToList();
    string msg = string.Empty;
    foreach (Location location in locations)
    msg += location.Name;
    message = msg;
    log.WriteLine("Following message will be written on the Queue={0}", message);
    In my app.config of my WebJob i have the following connection strings:
    <add name="RitualDBEntities" connectionString="metadata=res://*/RitualDBEntities.csdl|res://*/RitualDBEntities.ssdl|res://*/RitualDBEntities.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=ritual-pc\sqlexpress;initial catalog=RitualDB;integrated security=True;persist security info=False;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
    <add name="RitualContext" connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=RitualDB;Data Source=ritual-pc\sqlexpress" providerName="System.Data.SqlClient" />
    <add name="AzureWebJobsDashboard" connectionString="DefaultEndpointsProtocol=https;AccountName=ritual***;AccountKey=tQAP0gyMYKtWPJeIbsqk2iT2k69gyd1FwcyRf3+5Mc9b9EdYzpj0Dq8X2VHUmF*****"/>
    <add name="AzureWebJobsStorage" connectionString="DefaultEndpointsProtocol=https;AccountName=ritual***;AccountKey=tQAP0gyMYKtWPJeIbsqk2iT2k69gyd1FwcyRf3+5Mc9b9EdYzpj0Dq8X2VHUmF*****" />
    When i test locally (F5 Debugging) the webjob runs successfully and does the loop of the objects returned from the database.  When i deploy this Azure the WebJob fails with the following error:
    [03/29/2015 22:07:39 > 6ca05b: SYS INFO] Status changed to Initializing
    [03/29/2015 22:07:41 > 6ca05b: SYS INFO] Run script 'Ritual.WebJobs.Members.exe' with script host - 'WindowsScriptHost'
    [03/29/2015 22:07:41 > 6ca05b: SYS INFO] Status changed to Running
    [03/29/2015 22:07:44 > 6ca05b: INFO] Found the following functions:
    [03/29/2015 22:07:44 > 6ca05b: INFO] Ritual.WebJobs.Members.Functions.ManualTrigger
    [03/29/2015 22:07:44 > 6ca05b: INFO] Executing: 'Functions.ManualTrigger' because This was function was programmatically called via the host APIs.
    [03/29/2015 22:08:01 > 6ca05b: INFO] Function had errors. See Azure WebJobs SDK dashboard for details. Instance id is e99d7205-3ca0-4674-9414-f0381d5c2316
    [03/29/2015 22:08:01 > 6ca05b: ERR ]
    [03/29/2015 22:08:01 > 6ca05b: ERR ] Unhandled Exception: System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: 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)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlConnection.Open()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.<Open>b__36(DbConnection t, DbConnectionInterceptionContext c)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.EntityClient.EntityConnection.<Open>b__2()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass1.<Execute>b__0()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Action operation)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.EntityClient.EntityConnection.Open()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] --- End of inner exception stack trace ---
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.EntityClient.EntityConnection.Open()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__5()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Ritual.WebJobs.Members.Functions.ManualTrigger(TextWriter log, Int32 value, String& message)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at lambda_method(Closure , Object[] )
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.VoidInvoker.InvokeAsync(Object[] arguments)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<ExecuteWithWatchersAsync>d__23.MoveNext()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] --- End of stack trace from previous location where exception was thrown ---
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<ExecuteWithOutputLogsAsync>d__1c.MoveNext()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] --- End of stack trace from previous location where exception was thrown ---
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<ExecuteWithLogMessageAsync>d__c.MoveNext()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] --- End of stack trace from previous location where exception was thrown ---
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<ExecuteWithLogMessageAsync>d__c.MoveNext()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] --- End of stack trace from previous location where exception was thrown ---
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<TryExecuteAsync>d__1.MoveNext()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] --- End of stack trace from previous location where exception was thrown ---
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.ExceptionDispatchInfoDelayedException.Throw()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.JobHost.<CallAsyncCore>d__7.MoveNext()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] --- End of stack trace from previous location where exception was thrown ---
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.JobHost.Call(MethodInfo method, Object arguments)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Ritual.WebJobs.Members.Program.Main()
    [03/29/2015 22:08:01 > 6ca05b: SYS INFO] Status changed to Failed
    [03/29/2015 22:08:01 > 6ca05b: SYS ERR ] Job failed due to exit code -532462766
    If i remove any of my database code and use just the basic Stub code my webjob will run successfully so i know that my connection strings (outside of the DB ones) are correct.  My MVC web application also runs perfectly using the same connection strings
    in Azure so i also know that they have also been configured.  
    I am now lost and need some guidance, so if someone is able to assist me that would be much appreciated.
    Thanks
    Ritual.

    Can you try to log the connection string you are using in both cases to make sure they are the same?
    Also can you share your site name, either directly or indirectly?
    This will help us investigate.
    Thanks,
    Amit

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server2012

    TITLE: Connect to Server
    Cannot connect to RAVI\SQLEXPRESS.
    ADDITIONAL INFORMATION:
    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) (Microsoft SQL Server, Error: -1)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=-1&LinkId=20476
    BUTTONS:
    I installed it many times correctly,every thing installed succeeded  but when trying to connect getting the above error...
    please help me to solve this..:(((

    Hi,
    Following should be taken care of
    1. Make sure TCP/IP and named pipes protocol is enabled
    2. Make sure browser service is up and running
    3. Make sure SQL express service is up and running
    4. If you are connecting from remote make sure exception in firewall should be made.
    5. If your SQL Server is listeing on port apart from 1433 make sure you connect like
    RAVI\SQLEXPRESS,portno
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server.

    Dear all,
    I know that this topic may be a bit old school; but it really make me mad as I tried all solutions i found and it still cant be resolved....please give a hand...
    The situation is like this,my company divided different platform as a status of project, like DEV, SIT and UAT. I got a project that require me to upgrade an vs2003 project to vs2005. I upgraded it completely and
     successfully, it works fine in development and UAT platform; EXCEPT, the SIT platform.
    The situation is very strange that, once I move the source to SIT, it return the following error:
    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)
    but it never happen in either DEV or UAT platform and even do I copy the workable web.config from DEV or UAT platform to SIT, the error still here and unable to resolve it.
    I search a lot in the internet by Google, but solution suggested are not suitable or fail in my case. Most answer suggest that "enable remote control", "check fire wall", "check server" etc......But as I can connect well the
    DBServer in DEV and UAT properly, I dont think those are the cause(but still, I check them all, and all are enabled properly, except my firewall setting is OFF, so adding port is ignored).
    After all the searching and testing, I believed and have reason to believe that, the cause is inside my web.config:
      <appSettings>
        <!--   User application and configured property settings go here.-->
        <!--   Example: <add key="settingName" value="settingValue"/> -->
    <clear/>
        <add key="Environment" value="UAT v1.31"/>
        <add key="DBServer" value="DB_UAT"/>
        <add key="cnBPSS.ConnectionString" value="data source=DB_UAT\BPSS;persist security info=True;user id=theloginid;workstation id=RP_UAT;packet size=4096;pwd=theloginpwd"/>
        <add key="UTBPSSConn.ConnectionString" value="data source=DB_UAT\BPSS;persist security info=False;user id=theloginid;workstation id=RP_UAT;packet size=4096;pwd=theloginpwd"/>
        <add key="UTDSBDBConn.ConnectionString" value="workstation id=RP_UAT;packet size=4096;user id=theloginid;data source=DB_UAT\DSBDB;persist security info=False;password=theloginpwd"/>
        <add key="cnDSBDB.ConnectionString" value="workstation id=RP_UAT;packet size=4096;user id=theloginid;data source=DB_UAT\DSBDB;persist security info=False;password=theloginpwd"/>
        <add key="Timer1.Enabled" value="True"/>
        <add key="Timer1.AutoReset" value="True"/>
        <add key="cnbpss.ConnectionString" value="data source=DB_UAT\BPSS;password=theloginpwd;persist security info=True;user id=theloginid;workstation id=RP_UAT;packet size=4096"/>
        <add key="cnbpss1.ConnectionString" value="data source=DB_UAT\BPSS;password=theloginpwd;persist security info=True;user id=theloginid;workstation id=RP_UAT;packet size=4096"/> 
    </appSettings>
    </configuration>
    I know such kind of setting is old school; But due to this program runs for few years from tons of ppl...I dont dare to modify it unless I am very sure they are the cause.....
    May I ask if anyone cna give me some advice and help in this issue please? I already tried for weeks and turning mad....Please I really need some help...
    Many thanks.
    Ksun Chan

    Checklist of possible reason of this error
    1. Check SQL services are running
    2. Check SQL Browser service is running
    3. Check remote connections are enabled
    4. Network connectivity between database & application servers by TRACERT command
    5. Check TCP/IP protocol enabled at SQL server
    6. Check talent connectivity – telnet <IP address> <port no on SQL server running>
    7. Check UDP port 1434 is open or not on SQL Server
    8. Check firewall is running or not Check
    9. If firewall running, SQL Server & UDP port must be added in exception in firewall
    Regards,
    Rohit Garg
    (My Blog)
    This posting is provided with no warranties and confers no rights.
    Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

  • "a network related or instance specific error in sql server 2008..." error in sbs 2011 standard.

    Hi All,
    When we try to open "Sql Server 2008 R2" in SBS 2011.......... we are getting the error message" “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) ”
    How can we resolve the issue?
    Thanks in advance.
    Ram.
    Ramakrishna

    Hi Ram, you can check the solutions in the following links and see if that helps:
    A network-related or instance-specific error occurred while establishing a connection to SQL Server
    http://social.technet.microsoft.com/wiki/contents/articles/a-network-related-or-instance-specific-error-occurred-while-establishing-a-connection-to-sql-server.aspx
    A network-related or instance-specific error occurred while establishing a connection to SQL Server 
    http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/3a1c4d72-300c-4f9b-a0ac-23027ce04d1c/
    Also, rather than a SBS specific issue, it seems only relate to SQL server, you can also post it to SQL server forum so that SQL server experts there can provide more accurate solutions:
    http://social.technet.microsoft.com/Forums/en-US/category/sqlserver
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.

    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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
    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.
    Exception Details: System.Data.SqlClient.SqlException: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [SqlException (0x80131904): 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)]
    System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846887
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
    System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +4860189
    System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +90
    System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +342
    System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
    System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
    System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185
    System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
    System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
    System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
    System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
    System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
    System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
    System.Data.SqlClient.SqlConnection.Open() +122
    System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +31
    System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +112
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +287
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +92
    System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1297
    System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
    System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
    System.Web.UI.WebControls.GridView.DataBind() +4
    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
    System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +72
    System.Web.UI.Control.EnsureChildControls() +87
    System.Web.UI.Control.PreRenderRecursiveInternal() +44
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

    On what website/link did you received this error message ??

  • A network related or instance specific error when I run VS2005 application

    I am new to programming, I am a system and network engineer so not much understanding in coding. I have an application which has been created in VS2005 .net which has an sql database. The SQL server version is 2000 which is running on Windows 2003 serer.
    This application is running fine on existing Windows XP machines. But I have tried to installed on new Windows XP, 7 and 8 PC's but all the clients getting error "A network related or instance specific error.........error 40 could not open a connection
    to SQL server. I have tried to connect the sql server with an UDL file and I can connect successfully. Also installed VS2005 and able to connect the SQL server successfully but some reason the application cannot connect to the sql server. My exe.config connection
    string as follow (this connection string works fine with the exiting windows XP PC's).
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <configSections>
      </configSections>
      <connectionStrings>
        <add name="xxx.MySettings.SQLConString" connectionString="server=10.0.0.23;database=XXX;Persist Security Info=True;User ID=sa;Password=password"
          providerName="System.Data.SqlClient" />
        <add name="xxx.MySettings.OLEConString" connectionString="Provider=SQLOLEDB;server=10.0.0.23;Persist Security Info=True;Password=password;User ID=sa;database=XXX"
          providerName="System.Data.OleDb" />
        <add name="xxx.MySettings.ConnectionString" connectionString="Provider=SQLNCLI.1;server=10.0.0.23;Persist Security Info=True;Password=password;User ID=sa;database=XXX"
          providerName="System.Data.OleDb" />
        <add name="xxx.MySettings.WGCConnectionString" connectionString="server=192.0.0.23;database=XXX;Persist Security Info=True;User ID=sa;Password=password"
          providerName="System.Data.SqlClient" />
      </connectionStrings>
      <appSettings>
        <!--   User application and configured property settings go here.-->
        <!--   Example: <add key="settingName" value="settingValue"/> -->
      </appSettings>
    </configuration>
    We have two sites, IP 10 range is the head office and 192 is a sub office and both sites using same application but different databases.
    Please help!
    Thanks
    Kumar

    Debug 
    'MyApps.exe': Loaded 'C:\MySuite\MySuite\bin\MyApps.exe', No native symbols in symbol file.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\shimeng.dll', No symbols loaded.
    'MyApps.exe': Unloaded 'C:\WINDOWS\system32\shimeng.dll'
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.6195_x-ww_44262b86\msvcr80.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Culture.dll', No symbols loaded.
    'MyApps.exe': Unloaded 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Culture.dll'
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\mscorlib\dae02331a443fb52216ca83292cb2f21\mscorlib.ni.dll', No symbols loaded.
    'MyApps.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\msctf.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\Program Files\TeamViewer\Version9\tv_w32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\version.dll', No symbols loaded.
    'MyApps.exe' (Managed): Loaded 'C:\MySuite\MySuite\bin\MyApps.exe', Symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System\4b0455ae94e3cecca4bb3ba8c96828c9\System.ni.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Drawing\424bff3295c6e7539cc6df62b9425bd0\System.Drawing.ni.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Windows.Forms\1cdfe1998ad6794db3237006906c6fa2\System.Windows.Forms.ni.dll', No symbols loaded.
    'MyApps.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'MyApps.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'MyApps.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'MyApps.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\Microsoft.VisualBas#\aa86b1a0c9a5bd2a973bef106c0461f9\Microsoft.VisualBasic.ni.dll', No symbols loaded.
    'MyApps.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualBasic\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Data\af8afdcab485e00a04b18ed487981f3d\System.Data.ni.dll', No symbols loaded.
    'MyApps.exe': Loaded 'System.Data.dll', No symbols loaded.
    'MyApps.exe': Unloaded 'System.Data.dll'
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll', No symbols loaded.
    'MyApps.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Configuration\4b6e70acd99dc22e29b7fc8f9ac340c4\System.Configuration.ni.dll', No symbols loaded.
    'MyApps.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Xml\7faf645dc46781225cb722edf9e1e738\System.Xml.ni.dll', No symbols loaded.
    'MyApps.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\apphelp.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\msctfime.ime', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.6002.23084_x-ww_f3f35550\GdiPlus.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\xpsp2res.dll', Binary was not built with debug information.
    'MyApps.exe' (Managed): Loaded 'C:\MySuite\MySuite\bin\en\MyApps.resources.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Transactions\7e310942e6e9a5d623e003130ec3d9bd\System.Transactions.ni.dll', No symbols loaded.
    'MyApps.exe': Loaded 'System.Transactions.dll', No symbols loaded.
    'MyApps.exe': Unloaded 'System.Transactions.dll'
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\GAC_32\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll', No symbols loaded.
    'MyApps.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\sxs.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\clbcatq.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\comres.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\Program Files\Common Files\System\Ole DB\oledb32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\msdart.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\comdlg32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\Program Files\Common Files\System\Ole DB\oledb32r.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\Program Files\Common Files\System\Ole DB\sqloledb.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\Program Files\Common Files\System\Ole DB\msdatl3.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\comsvcs.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\colbact.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\mtxclu.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\clusapi.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\resutils.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\userenv.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\dbnetlib.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\security.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\msapsspc.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\msvcrt40.dll', No symbols loaded.
    'MyApps.exe': Unloaded 'C:\WINDOWS\system32\msapsspc.dll'
    'MyApps.exe': Unloaded 'C:\WINDOWS\system32\msvcrt40.dll'
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\schannel.dll', No symbols loaded.
    'MyApps.exe': Unloaded 'C:\WINDOWS\system32\schannel.dll'
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\digest.dll', No symbols loaded.
    'MyApps.exe': Unloaded 'C:\WINDOWS\system32\digest.dll'
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\msnsspc.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\msvcrt40.dll', No symbols loaded.
    'MyApps.exe': Unloaded 'C:\WINDOWS\system32\msnsspc.dll'
    'MyApps.exe': Unloaded 'C:\WINDOWS\system32\msvcrt40.dll'
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\msv1_0.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\cryptdll.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\iphlpapi.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\ntdsapi.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\dnsapi.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\wldap32.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\mswsock.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\hnetcfg.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\wshtcpip.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\schannel.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\rsaenh.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\dssenh.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.EnterpriseSe#\78e7a4c3acd1a345c4ef1f73ff48a1dd\System.EnterpriseServices.ni.dll', No symbols loaded.
    'MyApps.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'MyApps.exe': Loaded 'ImageAtBase0x10000000', No symbols loaded.
    'MyApps.exe': Unloaded 'ImageAtBase0x10000000'
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.EnterpriseSe#\78e7a4c3acd1a345c4ef1f73ff48a1dd\System.EnterpriseServices.Wrapper.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll', No symbols loaded.
    'MyApps.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'MyApps.exe': Loaded 'ImageAtBase0x11000000', No symbols loaded.
    'MyApps.exe': Unloaded 'ImageAtBase0x11000000'
    'MyApps.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorsec.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\wintrust.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\riched20.dll', No symbols loaded.
    'MyApps.exe': Unloaded 'C:\WINDOWS\system32\riched20.dll'
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\cryptnet.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\psapi.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\sensapi.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\winhttp.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\MySuite\MySuite\bin\C1.Win.C1TrueDBGrid.2.dll', Binary was not built with debug information.
    'MyApps.exe' (Managed): Loaded 'C:\MySuite\MySuite\bin\C1.Win.C1TrueDBGrid.2.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll', No symbols loaded.
    'MyApps.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\Accessibility\06b454361516e65eca55a743cd93cefc\Accessibility.ni.dll', No symbols loaded.
    'MyApps.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Accessibility\2.0.0.0__b03f5f7f11d50a3a\Accessibility.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    *** HR originated: -2147024774
    ***   Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302
    *** HR propagated: -2147024774
    ***   Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144
    'MyApps.exe': Loaded 'C:\WINDOWS\system32\mslbui.dll', No symbols loaded.
    The thread 'Win32 Thread' (0xc20) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0x9b4) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0x1464) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0x6a8) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0xdf4) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0x1110) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0xc04) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0x1188) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0xd9c) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0x153c) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0x10d8) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0x914) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0x175c) has exited with code 0 (0x0).
    The program '[5412] MyApps.exe: Managed' has exited with code 0 (0x0).
    The program '[5412] MyApps.exe: Native' has exited with code 0 (0x0).
    The program '[5412] MyApps.exe: T-SQL' has exited with code 0 (0x0).

  • "Network-related or instance specific error", Works OK for Administrator

    I've been handed a legacy .Net Windows application that was previously used on Windows XP, and asked to debug a few problems encountered on Windows 7 clients.  The original developers are all gone.  I'm down to only a single
    error -- a seemingly common one: 
    "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: Named Pipes
    Provider, error: 40 - Could not open a connection to SQL Server)"
    Curiously, this error only occurs for ordinary users.  When the application is started using "Run as Administrator" it connects to the database immediately.  We believe we can configure the app to always start as an administrator,
    but obviously we'd like to run it without that if we can.  However, I haven't seen any good suggestions why the database connection would only fail this one way.
    Any ideas?  I've seen at least one troubleshooting guide that suggested trying with Run as Administrator, but it didn't say how to proceed if that fixes it.  Am I just supposed to stop at this point?  If I was having a UI problem I might understand
    that some old apps just aren't going to work in Windows 7, but this is just connecting to the database.  Seems like we should be able to do this.  I just don't know what to check.
    Thanks in advance.
    EDIT:
    I have looked more closely at this, and perhaps there are more clues.  I use the same user account to log on to two Win7 machines. One is a developer workstation with VS10 installed. The other is representative of a client workstation the app will
    run on. My user account is actually an administrator on both machines.
    At runtime we invoke advapi32.dll logonuser impersonation to logon to SQL server with a dedicated account.
    What we're seeing is that I can run the app freely on the developer workstation.  Even with UAC on, and even if I am not using "run as administrator".  This may point to something about how the SQL drivers/provider are installed
    on that machine.
    When I run on the regular user workstation, even though I am an administrator myself, I must "run as administrator" to launch it. And when I do, I get a UAC prompt.  When we turn UAC off, of course, the app runs fine.

    Hi,
    I think you are in the similar case with:
    http://support.microsoft.com/kb/2009672
    By default SSIS always uses the low privileged token resulting in a failure when connecting to a SQL Destination. Full administrator access token is required in your case.
    Unlike earlier versions of Windows, when an administrator logs on to a computer running Windows 7 or Windows Vista, the user’s full administrator access token is split into two access tokens:
    a full administrator access token and a standard user access token.
    During the logon process, authorization and access control components that identify an administrator are removed, resulting in a standard user access token. The standard user access token is then used to start the desktop, the Explorer.exe process. Because
    all applications inherit their access control data from the initial launch of the desktop, they all run as a standard user.
    After an administrator logs on, the full administrator access token is not invoked until the user attempts to perform an administrative task. When a standard user logs on, only a standard user access token is created. This standard user access token is then
    used to start the desktop.
    To get around this, you may configure an application to always run elevated.
    http://technet.microsoft.com/en-us/library/cc709691%28WS.10%29.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

Maybe you are looking for