Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7552101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:40:30+00:00 2026-05-30T10:40:30+00:00

I am using the default Sitemap provider with secutiry trimming . But, some how,

  • 0

I am using the default Sitemap provider with secutiry trimming. But, some how, I get:

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

I’m thinking the sitemap provider is looking for the roles in the wrong place. My configuration is like this:

<connectionStrings>
   <add name="DB" ... />
</connectionStrings>


   <membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
      <providers>
        <clear/>
        <add name="SqlProvider" .../>
      </providers>
    </membership>
    <roleManager enabled="true">
      <providers>
        <add connectionStringName="DB"  type="System.Web.Security.SqlRoleProvider" ... />
      </providers>
    </roleManager>

The Sitemap tag is defined like this:

<siteMap defaultProvider="XmlSiteMapProvider" enabled="true"  >
      <providers>
          <clear/>
          <add name="XmlSiteMapProvider"
            description="Default SiteMap provider."
            type="System.Web.XmlSiteMapProvider "
            siteMapFile="Web.sitemap"
            securityTrimmingEnabled="true"  />
      </providers>
  </siteMap>

Why am I getting the sql error? How does the trimming get the roles?

EDIT:
the ysod

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:40:31+00:00Added an answer on May 30, 2026 at 10:40 am

    The core error from your screenshot is

    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

    unfortunatly, this is truncated. The message would normally then continue with ” is configured to allow remote connections.“, and this may further be followed by a specific reason (for example, it may state (amongst various other reasons) “provider: SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified”)

    However, with the message you have so far, it looks like a connectivity problem between the client machine and the SQL Server box. So I’d look at doing due-diligence against the SQL Server box and network connectivity first:

    • The SQL Server server name can resolve
    • That the server can be reached with ping
    • That SQL server is configured to accept remote connections
    • That the SQL Browser service is running on the SQL Server box
    • That Windows Firewall isn’t getting in the way
    • That SQL Server itself is actually running in the first place

    If they pass then you need to validate than you can log-on. I’d normally use the SQL management tools, especially the command line tool sqlcmd to test basic connectivity (for example: sqlcmd -E -S mysqlserver\instance to connecto to the default database or sqlcmd -E -S mysqlserver\instance -d database to connect to a specific database). Obviously you’ll need to run these as the user that your web application is running as, otherwise they’ll attempt to authenticate as you (either use runas or start a command prompt under different credentials [find a command prompt in the start menu then, shift-right-click -> “Run as a different user].

    However what would ultimately help would be if you can get the full error message text (rather than the truncated version), then that may help narrow down the specific problem you’re having.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using the default cookies as my single sign on (SSO) but some
I implemented a simple sitemap class using Django's default sitemap application. As it was
I'm using default ASP.NET user controls and SQL user provider. How can I log
I am using default application preferences to store information related to my app. Basically
I'm using default membership class in my website. But I'm a little confused with
I am using Default.png for iPhone and Default-Landscape.png for ipad. But in case of
I've integrated Asp.net MVC with Sharepoint site. It works great. But I'm using default
I'm currently using default implementation of STL for VS2005 and I'm not really satisfied
Are there any implications to using default values, such as empty strings, when inserting
I´m trying to separate a gridViewColumn into two rows. Im using default style for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.