I have a C# web form 2010 application that I obtained from a contract shop that wrote this application for my small company. it is now my job to support this application. I can get the application to execute from my visual studio.net 2010 professional
ide. However my problem is the project file that contains the 'web' component is unavailable to me? i know the files are there since I can see the code through windows explorer.
Thus can you tell me what I need to do so I can open the 'unavailable' files in the visual studio.net 2010 ide?
It could be that the project is looking for the files in a different location, such as a url like
http://localhost/devsite or something.
You can just add the web files again. Does the web directory have a project file? If it doesn't, it could be a website project. You can then just add an existing website project to your solution and point to the directory with the web files in it. If it's
a web application project you just add it to the solution as if it was an ordinary project.
Don't forget to mark useful responses as Answer if they helped you towards a solution.
The web project is configured to virtual directory in IIS, then your code should in the directory mappead in IIS or your project is FileSystem where your code is in directory.
Kindly mark this post as "Answer", if it helped you.
If I understand correctly you can see the files in Windows Explorer but not in the Solution Explorer.
It is possible that the folders containing the content you want are set to not be included in the project.
IF this is the case then do the following...
At the top of Solution Explorer there is a button that when hovered over displays the tooltip "Show all files" click this and if the folder appears but is white rather than yellow then this is your problem. Right click on the folder and select "Include in
Project". Problem solved :-)
If you notice this notice you'll notice this notice is not worth noticing!
Marked as answer by peggy_girl on Apr 19, 2012 09:29 PM
peggy_girl
Member
33 Points
47 Posts
web form 2010 file opening problem
Apr 18, 2012 05:48 PM|LINK
I have a C# web form 2010 application that I obtained from a contract shop that wrote this application for my small company. it is now my job to support this application. I can get the application to execute from my visual studio.net 2010 professional ide. However my problem is the project file that contains the 'web' component is unavailable to me? i know the files are there since I can see the code through windows explorer.
Thus can you tell me what I need to do so I can open the 'unavailable' files in the visual studio.net 2010 ide?
pierrefrc
Participant
947 Points
201 Posts
Re: web form 2010 file opening problem
Apr 18, 2012 05:59 PM|LINK
Hi
Do you know how what language is your code? This language is installed in you VS 2010 IDE?
peggy_girl
Member
33 Points
47 Posts
Re: web form 2010 file opening problem
Apr 18, 2012 06:26 PM|LINK
the language is C#.net 2010
pierrefrc
Participant
947 Points
201 Posts
Re: web form 2010 file opening problem
Apr 18, 2012 06:29 PM|LINK
Have paste an image of VS with your problem?
markfitzme
All-Star
15403 Points
2368 Posts
Re: web form 2010 file opening problem
Apr 18, 2012 06:55 PM|LINK
It could be that the project is looking for the files in a different location, such as a url like http://localhost/devsite or something.
You can just add the web files again. Does the web directory have a project file? If it doesn't, it could be a website project. You can then just add an existing website project to your solution and point to the directory with the web files in it. If it's a web application project you just add it to the solution as if it was an ordinary project.
peggy_girl
Member
33 Points
47 Posts
Re: web form 2010 file opening problem
Apr 18, 2012 08:36 PM|LINK
How do you tell if the project is looking for a file in a different location?
pierrefrc
Participant
947 Points
201 Posts
Re: web form 2010 file opening problem
Apr 18, 2012 08:43 PM|LINK
In this link have a any kind of templates:
http://msdn.microsoft.com/en-us/library/9d9ats98.aspx
The web project is configured to virtual directory in IIS, then your code should in the directory mappead in IIS or your project is FileSystem where your code is in directory.
Mikee1504
Member
123 Points
59 Posts
Re: web form 2010 file opening problem
Apr 18, 2012 08:55 PM|LINK
If I understand correctly you can see the files in Windows Explorer but not in the Solution Explorer.
It is possible that the folders containing the content you want are set to not be included in the project.
IF this is the case then do the following...
At the top of Solution Explorer there is a button that when hovered over displays the tooltip "Show all files" click this and if the folder appears but is white rather than yellow then this is your problem. Right click on the folder and select "Include in Project". Problem solved :-)