Visual Studio :: Can't Drag Files From Windows Explorer Into Solution Explorer
Nov 7, 2010
Weird Sunday morning question: I routinely drag files into my projects from Windows Explorer. But I just created a new project and I get the slashed circle every time I try to drag in a file from Windows Explorer. I closed the project and opened another one just to confirm that I wasn't having a foggy Sunday morning problem but I _am_ able to drag files into the this other project. Trying to drag the same file into my new project won't work. What's up with this?!
by mistake a .aspx and its corresponding .vb file was deleted from my project's solution explorer.Its not there in Recycle Bin too.Is there any method to recover that file ? I am using Visual Studio 2008. Win XP SP1.
Is there a way to change the colors (or perhaps add an overlay) to the files in Solution Explorer?It would be great to be able to 'tag' the files with different colors so that you can see for example what status the different files have.
I used the ASP.net Web Site Administration tool to create a database with two users and two roles. The database created successfully and is showing up in Solution Explorer in the App_Data folder of my project, as expected. The problem is, that when I click on the database I get an error message saying that "SQL Server database files (.mdf) require SQL Server 2005 Express or SQL Server 2008 Express to be installed and running on the local computer." I, in fact, have 3 versions of SQL Server running on my computer. SQL Server Express (default instance), SQL Server Express (named instance for Outlook 2010 Business Contact Manager), and SQL Server 2008 R2 (Developer Edition). If I create a new connection in Server Explorer and then attach the database file, it attaches fine. It's only in Solution Explorer that it somehow is not connecting.
I have two web forms inside the same project folder that will be very similar when completed. When I copy a web form and paste it in the project folder by its new name I can see the .aspx file, the aspx.cs and aspx.designer.cs all by the new name. Appears to work perfect...........Why don't these show up when I view the Solution Folder? I was hoping to copy one, make changes and rename the second one saving time. Appears to not be tied into the Project.
Even though I when I create a linqtosql class I mark C# as the language it was always shows up as a Visual Basic file in the App Code file. I can't get it to stop doing that. ????? What is going on?
I have noticed today that when you create a directory in code in a web application the resulting folder structure is not created in the solution explorer (It is fine on disk and app can still access all the files I am not sure if there is a setting that I am missing or is this a bug?Steps to reproduce
Create a new C# web application in VS 2010. Create a new web page (Default.aspx) and add a file upload control and a button.on the click event on the button add the following code
[Code]....
When the form posts back refresh the solution explorer and the new directory does not appear.Check your file system and the file will be there.Not a massive issue but frustrating.
I am using VWD 2010 Express, usually with several site pages open in tabs. For some reason, when I move from one tab to another, the newly active page is not highlighted in the Solution Explorer pane. Is there some setting that is causing this? I often have two similar pages open, referring to the code on one as I work on the other, and not having the Solution Explorere correctly highlighting the active page make it really easy to be working on the wrong page.
I have a solution that I pasted some files into. The files that were pasted into it won't show up in the solution explorer. These files are for a tutorial from MSDN. The files were pasted into the folder that contains the solution using the file system.I then refreshed the solution explorer to include the files. I've done this before with out issue. For some reason it won't work this time. When I did this before I pasted the files into the folder that holds the solution, refreshed the solution explorer and then had to include the files into the project and all was good.
I have installed google chrome in my computer and mozilla, and when i do start debugging open with the google chrome ..how to change to the open with Internet explorer 8
I'm making a web site in ASP.NET. Until now i was always debugging with Firefox. After i implemented an UpdatePanel i wanted to test it also on internet explorer. If i choose IE as standard browser then is the debugging of visual studio very very very slow and it crashes also (on second time debugging).
I also have seen that every time i do ctrl-F5, then a new ASP.NET Development Server starts with a different port, in Firefox there is always 1 ASP.NET Development Server...
This useful effect seems not to happen anymore. I'm in VS2008. If I have several files open as tabs, when clicking on each of them, VS used to highlight that file in Project Explorer, which is very useful to quickly see where in the Solution that file is, even if it's not in the Web Project.
I noticed that when I download a framework say like "Coolite" and open the solution, and find the Connection to the Database showed up in the Server Explorer.
In some other times, the Connection Dose not show.
I can create a connection to a Database in Server Exploere, but I need say to add it to my Web.Config directly, but not sure how. I am trying to drag-and-drop from the Server Explorer to Web.Config, it is not working.
When and how the Connections to Databases will show in Server Explorer ?
How I can create a connection to a Database using say a Wizard, and add it directly to Web.Config ?
I added a DateTime column to a table in my database through the Server Explorer. Because the team lead for this project wasn't savvy on nullable types, one of the requirements was that there be no null values in the database. This requires me to program all sorts of useless code into the system, but that's another story. My problem arises when assigning a default value to this column. I typed the following into the cell for the "Default Value or Binding":
1/1/1753 12:00:00 AM
When I went to inspect the content of the table, I found that all of the dates had been populated with:
When one creates a new Web Form, Solution Explorer reflects it by adding it to the list, correct? Okay, let me describe this the only way I know how, seeing how I'm a noob and all.The icon representing the item is colorful, with certain features on it with a little bit of yellow at the bottom part of thebackground. While executing my application I notice that certain functionality has ceased to work, when I had made no changes to it, or so I think. I look over at my Solution Explorer and notice that the icon has changed. Now it looks like a simple blank piece of paper. Also, when I highlight the item in Solution Explorer, the Properties window is now missing two attributes: 'Build Action' and 'Copy to Output Directory'.
I have all my images in image folder in my project, when I try to open that folder in my project then I cannot see those images listed in it, though I can attach those images to it is there anything in the settings?
I have sql database db1..I am using this db1 for my web application...I had taken a back up for this file db1.bak......I want to restore this .bak file to a machine where no sql server is installed..Visual studio is working with solution explorer,where we can create tables,sp's etc...can I able to restore the .bak file to solution explorer?
I m uploading a file and reading it. The problem is I dont want to save that file in a folder which is in my solution explorer. I want to save it in a different Drive. I m saving the file in a different drive using web.cofig <add key="UploadFileLocation" value="C:\VOL0\Upload\"/> and I m saving using code FileUpload1.PostedFile.SaveAs(ConfigurationManager.AppSettings["UploadFileLocation"] + SaveLocation); all goes fine, but I m reading the file and it is throwing an exception when I m trying to read file.
In my company app we have organized it something like the following:
1. Solution (Transcripts) Solution Folder - Lib Solution Folder - Debug Solution Folder - Release Class Library Project Web Project
My Question:
1. All my references from Web Project are referencing to the DLL's in the Lib folder under Solution (Transcripts). Why can't we refere to DLL's directly under Web Project why the need of creating a new solution folder "Lib"?
2. When we publish the Web Project. Does that mean that all the DLL's under Lib solution folder also gets published?
I have VS 2010 professional. I am trying to open "ASP.Net Configuration" through Project -> ASP.Net Configuration.
It pops up the Notification about the ASP.Net Development Server localhost but doesn't open ASP.Net Configuration in the default browser.I clicked on the Root Url (by double clicking on the 'development server' at the right bottom from Notification Manager).
It throws following error
"An error was encountered. Please return to the previous page and try again."
Clicking on "How do i use this tool".It opened page with error.
I have a site that was created with VWD2005. I tried to open the solution with VS 2008. This prompted me to convert it which I did. Now when I look at the project in the Solution Explorer in VS 2008, I see all of the files but they are now with in a folder named "2" that's within a folder named "back up". I also see another folder with in the solution that's named _UpgradeReport_Files.
The files for my project that are with in the folder "2" that is with in the folder "back up" are actually in the back up folder for my project in the Visual Studio 2005 folder with in My Documents. I assume this is because I chose the "create back" up option when doing the conversion. I don't understand why these files and this project aren't in the project directory with in the VS2008 folder with in My Documents.
I want all of my files for this project to be in the projects folder with in the Visual Studio 2008 folder in My documents, the same as if I had created this project in Visual Studio 2008 originally. But the conversion doesn't seem to have done this. Instead I seem to be using a solution/project that references the original files with in the back up folder as mentioned above.
Can I just create a new project in VS 2008 and paste these files into it? Will this work? I'm not sure if it will because the original one was created in VWD 2005 which I think uses the .net framework 2.0. My Visual Studio 2008 uses version 3.5 Sp1 of the .NET framework.
I am trying to set up a solution - projects folder structure. I am trying to keep CSS, master pages, Themes, Images and login page as a common web application project and reference them when needed in any other web site or web application in the same solution. Is it possible to do it? If so, is it a best practice? If not, what is the best practice to do this?
I would like to create a webpage that collects a users search criteria. Then when they click a button, send the parameters to the Windows Explorer Search utility and run it. Can this be done? If so, how? I am using asp.net to create my webpages.