Solved

The directory name is invalid - ASP.NET website

Posted on 2014-02-10
3
387 Views
Last Modified: 2014-03-11
I am trying to create a website using the code I got from the training.
It is basically html and javascript website...
The first page is default.aspx

I hosted the website using IIS 7, I created a virtualwebsite on my machine - http://mywebsite using that code...

When i browse to http://mywebsite, I got the error - Exception Details: System.ComponentModel.Win32Exception: The directory name is invalid
 
please help

its just html-5 and javascript website
0
Comment
Question by:ts84zs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 39849800
How did you create the virtual directory?
0
 
LVL 34

Assisted Solution

by:Paul MacDonald
Paul MacDonald earned 200 total points
ID: 39850172
Yes, the obvious question is "Did you create the complete directory structure?"  This would include folders that are empty, but which your code expects to be present.
0
 
LVL 23

Accepted Solution

by:
Christopher Kile earned 300 total points
ID: 39851611
You say you created a "virtual website" on IIS 7.0.  You can create a virtual folder, or a Web application; I'm assuming you created the former.

You need to validate that the base directory for the website is present.  IIS does not create directories, it expects you to.  You should have been informed during construction of the site that the directory was invalid or inaccessible.  Highlight the website in IIS Manager and click on Basic Settings (which should be on the right-hand side of the window); when Basic Settings comes up, select  Test settings and report any errors that come up, or tell us it was successful.  Then we can proceed to the next step, which is to analyze your code to see what other directories you are accessing and if any of them aren't actually present.
0

Featured Post

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question