Solved

The directory name is invalid - ASP.NET website

Posted on 2014-02-10
3
358 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
3 Comments
 
LVL 96

Expert Comment

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

Assisted Solution

by:paulmacd
paulmacd 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now