Solved

The directory name is invalid - ASP.NET website

Posted on 2014-02-10
3
375 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

733 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