Click here to Skip to main content
6,304,948 members and growing! (18,953 online)
Email Password   helpLost your password?
Web Development » ASP.NET » General     Intermediate

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

By Alex B. Clarke

When renaming a control ID in VS2005 Web Project at design, IDE may trough an error.
Windows, .NET, ASP.NET, Visual Studio, Dev
Posted:27 May 2006
Views:45,050
Bookmarked:8 times
Unedited contribution
Announcements
Loading...
 
Search    
Advanced Search
printPrint   Broken Article?Report       add Share
  Discuss Discuss   Recommend Article Email
23 votes for this article.
Popularity: 5.62 Rating: 4.13 out of 5
3 votes, 13.0%
1

2

3
3 votes, 13.0%
4
17 votes, 73.9%
5

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

About the Author

Alex B. Clarke


Member
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.
Occupation: Web Developer
Location: United Kingdom United Kingdom

Other popular ASP.NET articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 24 of 24 (Total in Forum: 24) (Refresh)FirstPrevNext
GeneralFantastic !!! PinmemberMember 448943822:05 18 May '09  
GeneralBest solution PinmemberNguyennamhs19:33 18 May '09  
GeneralThts a great find Pinmemberangsram6:51 3 Mar '08  
GeneralThank you PinmemberMukesh_B0:40 6 Jul '07  
GeneralThis is the complete fix Pinmemberjlavigne9:47 17 May '07  
GeneralRe: This is the complete fix PinmemberAlex B. Clarke10:34 18 May '07  
GeneralAnother soultion. Pinmemberhibias6:06 15 Aug '06  
GeneralRe: Another soultion. Pinmembercider1236:31 28 Sep '06  
GeneralRe: Another soultion. PinmemberAlex B. Clarke10:15 28 Sep '06  
GeneralThe Easiest Solution Pinmemberrjainx6:32 29 Sep '06  
GeneralSolved in 2 seconds last night. PinmemberScurvee12:15 3 Oct '06  
GeneralRe: Solved in 2 seconds last night. PinmemberScurvee7:08 13 Nov '06  
GeneralRe: Solved in 2 seconds last night. Pinmemberjdkulkarni22:36 13 Nov '06  
General.A Big Help - Thank you. PinmemberEdTheBurger23:09 28 Jun '06  
GeneralPossible Pattern PinmemberRobEmDee18:27 11 Jun '06  
GeneralIt happens to me all the time PinmemberAnatoly Rapoport22:05 28 May '06  
GeneralRe: It happens to me all the time PinmemberAlex B. Clarke23:33 28 May '06  
GeneralRe: It happens to me all the time Pinmemberdapoussin1:04 30 May '06  
AnswerRe: It happens to me all the time [modified] PinmemberAlex B. Clarke2:53 30 May '06  
GeneralRe: It happens to me all the time PinmemberAlex B. Clarke2:04 31 May '06  
GeneralRe: It happens to me all the time PinmemberAnatoly Rapoport2:38 31 May '06  
Generalhow to recreate error? Pinmembercodebased23:43 27 May '06  
GeneralRe: how to recreate error? PinmemberAlex B. Clarke2:54 28 May '06  
GeneralRe: how to recreate error? PinmemberEfimPechat5:29 5 Dec '06  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 27 May 2006
Editor:
Copyright 2006 by Alex B. Clarke
Everything else Copyright © CodeProject, 1999-2009
Web12 | Advertise on the Code Project