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

  • SEARCH
  • Home
  • 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 344817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:01:33+00:00 2026-05-12T11:01:33+00:00

I am trying to get a ASP.NET Unit Test running and I keep getting

  • 0

I am trying to get a ASP.NET Unit Test running and I keep getting a DirectoryNotFoundException: Could not find part of the Path ‘C:\inetpub\wwwroot\WebsiteName\GPS\web.config. The problem is the path to the GPS web.config is C:\inetpub\wwwroot\WebsiteName\website\GPS\web.config. I can’t figure out how to set the path of this web.config. My attributes are posted below. As you can see the logical convention seems to be what the test is looking for, but our Website is just not set up like that. Any help would be appreciated.

    [TestMethod()]
    [HostType("ASP.NET")]
    [UrlToTest("http://localhost/WebsiteName/GPS/Default.aspx")]
    [DeploymentItem("GPS.dll")]
  • 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-12T11:01:33+00:00Added an answer on May 12, 2026 at 11:01 am

    Shouldn’t you change the UrlToTest attribute parameter to
    http://localhost/WebsiteName/website/GPS/Default.aspx?

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

Sidebar

Related Questions

I'm trying to get my head around how one would unit test an ASP.NET
I'm only new to Unit Testing and ASP.NET MVC. I've been trying to get
I'm trying to get a set of reports running in an (VB) ASP.NET project
I'm trying to get an ASP.NET website running on Vista (IIS7), using SQL Server
So I'm trying to get an Asp.Net application running on Windows 2008R2 / IIS
I am trying to get my feet wet with asp.net mvc3 and unit testing.
I am trying to get a asp.net 4.0 beta 2. website running that is
I'm running Win 7 and I'm trying to get a ASP.NET website, to run
I am trying to get ASP.Net MVC 4 working on IIS6 and am running
I've trying to get an ASP.net (v2) app to work in the debugger and

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.