Cannot Find Web Project Item Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error Creating Control - Cannot find web project item up vote 0 down vote favorite I'm getting this error: Error Creating Control - Label1 Cannot find web project item 'http://localhost:61952/WebSite/Default.aspx'. (It's a Visual Studio 2010 Website.) Can't view Labels, User Controls, nothing in design view... Can't drag and drop controls from the tool box either... I have no idea what caused this problem... Any hints? Thanks. c# asp.net visual-studio-2010 website share|improve this question asked Apr 6 '11 at 11:10 naruu 114115 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote Just to get me going with the design mode... Well, I have a visual studio solution, with projects and class libraries... and my website which I described as having the problem. However, this problem seems to only occur when I'm trying to view the website's pages (in design view), after opening the solution. I tried opening just the website (File -> Open Web Site), and in that case, I am able to use the design view with no problems... (Adding a new website to my solution also works, only my existent website doesn't work.) So, solution for the meantime: having two VS opened, one with MySolution/WebSite/, the other with MySolution/CompleteSolution.sln. I do the design stuff in the first and the programming in the second... share|improve this answer answered Apr 6 '11 at 14:35 naruu 114115 add a
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/Visual Studio and Visual Web Developer Express/Error Creating Control - Cannot find Web Project Item Error Creating Control - Cannot find Web Project Item [Answered]RSS 14 replies Last post Jul 08, 2011 11:02 PM by DuongLx ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Related Links Guidance Reply Kinoman None 0 Points 3 Posts Error Creating Control - Cannot find Web Project Item Apr 20, 2008 http://stackoverflow.com/questions/5565371/error-creating-control-cannot-find-web-project-item 09:16 AM|Kinoman|LINK Hello! I'm trying to build a simple web application in Visual StudioTeam System 2008. When I try to add a control in my web form in source mode (for exemple
and got the error message below when open a .ascx file in design mode: http://fangdahai.blogspot.com/2013/08/error-creating-control-cannot-find-web.html Error Creating Control - LinkButtonSubmitCannot find web project item '~/sites/Sandpit/vwpUserProfileUpdate/vwpUserProfileUpdate.ascx'. Warning message is: Warning 1 E:\EricFang\VisualStudio\somepath\usercontrol.ascx: ASP.NET runtime error: Path cannot be null.Parameter name: path E:\EricFang\VisualStudio\somepath\usercontrol.ascx 1 1 usercontrol I even could not drag and drop any control from the tool box to the web form. I built some similar projects cannot find before, and this was the first time that got this error. So I compared the .csproj file with other projects, but didn't notice any difference which cause the problem. Then I spent a while searching on internet. Many developers got similar issues, such as here and here, but they don't suit cannot find web my case. In the end, quite lucky, I noticed that in the "Site URL" of the project, I used the server alias name instead of the computer name. Since it wouldn't hurt, I changed it, and BING! The problem disappeared! (This value is actually stored in ".csproj.user" file) Posted by Eric Fang at 1:08 PM Reactions: Labels: SharePoint 2010, Visual Studio 1 comment: Les ZatonyJanuary 10, 2015 at 2:08 PMThanks for your post! If only I could have the hours back that I spent searching until I finally came across your post.ReplyDeleteAdd commentLoad more... Newer Post Older Post Home Subscribe to: Post Comments (Atom) About Me Eric Fang Sydney, NSW, Australia SharePoint DevOps at Uniting; Work on visual studio from 1996; Work on MS Sql server from 1998; Work on SharePoint from 2007; Open source projects: Web parts: http://efspwebparts.codeplex.com Workflow timer: http://efworkflowtimer.codeplex.com Workflow activities: http://efspwfactivities.codeplex.com File Migrating: http://spfilemigrating.codeplex.com SharePoint reminder: http://efsimplereminder.codepl