Solved

The directory name is invalid - ASP.NET website

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

786 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