Click here to Skip to main content
Click here to Skip to main content
Go to top

Visual Studio 2005: "The Directory Name is Invalid" Error

, 27 May 2006
Rate this:
Please Sign up or sign in to vote.
When renaming a control ID in VS2005 Web Project at design, IDE may trough an error.

Visual Studio 2005: "The Directory Name is Invalid" Error

Visual Studio 2005: "Failed to find definition" Error

Description

When working with a Web Site project in Visual Studio 2005 you may get an error when re-naming control ID in design mode. Error message can be one of the following:

  • Failed to find definition.
  • The directory name is invalid.

Sample Image - VSPropRenameBug.gif

The error may not happen if you don't have App_Code directory defined within your project.

Workaround

1. Navigate to the directory
..\Documents and Settings\<%UserName%>\Local Settings\Application Data\Microsoft\WebsiteCache

2. Create a folder with the same name as the name of your project.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Alex B. Clarke
Web Developer
United Kingdom United Kingdom
Alex B. Clarke is a professioinal software developer specialising in .Net, C#, Asp.Net, SQL, ADSI, CDO, and other technolgies. He writes applications that automate business processes.

You may also be interested in...

Comments and Discussions

 
GeneralI was such kind of problem.. [modified] Pinmembergggmarketing10-Sep-11 3:16 
General5 from me PinmemberMANSATAN27-Jul-09 22:45 
GeneralFantastic !!! PinmemberMember 448943818-May-09 21:05 
GeneralBest solution PinmemberNguyennamhs18-May-09 18:33 
GeneralThts a great find Pinmemberangsram3-Mar-08 5:51 
GeneralThank you PinmemberMukesh_B5-Jul-07 23:40 
GeneralThis is the complete fix Pinmemberjlavigne17-May-07 8:47 
GeneralRe: This is the complete fix PinmemberAlex B. Clarke18-May-07 9:34 
GeneralAnother soultion. Pinmemberhibias15-Aug-06 5:06 
GeneralRe: Another soultion. Pinmembercider12328-Sep-06 5:31 
GeneralRe: Another soultion. PinmemberAlex B. Clarke28-Sep-06 9:15 
GeneralThe Easiest Solution Pinmemberrjainx29-Sep-06 5:32 
GeneralSolved in 2 seconds last night. PinmemberScurvee3-Oct-06 11:15 
GeneralRe: Solved in 2 seconds last night. PinmemberScurvee13-Nov-06 6:08 
GeneralRe: Solved in 2 seconds last night. Pinmemberjdkulkarni13-Nov-06 21:36 
General.A Big Help - Thank you. PinmemberEdTheBurger28-Jun-06 22:09 
GeneralPossible Pattern PinmemberRobEmDee11-Jun-06 17:27 
GeneralIt happens to me all the time PinmemberAnatoly Rapoport28-May-06 21:05 
GeneralRe: It happens to me all the time PinmemberAlex B. Clarke28-May-06 22:33 
GeneralRe: It happens to me all the time Pinmemberdapoussin30-May-06 0:04 
AnswerRe: It happens to me all the time [modified] PinmemberAlex B. Clarke30-May-06 1:53 
GeneralRe: It happens to me all the time PinmemberAlex B. Clarke31-May-06 1:04 
GeneralRe: It happens to me all the time PinmemberAnatoly Rapoport31-May-06 1:38 
Questionhow to recreate error? Pinmembercodebased27-May-06 22:43 
AnswerRe: how to recreate error? PinmemberAlex B. Clarke28-May-06 1:54 
AnswerRe: how to recreate error? PinmemberEfimPechat5-Dec-06 4:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web04 | 2.8.140926.1 | Last Updated 28 May 2006
Article Copyright 2006 by Alex B. Clarke
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid