.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Deleting files in VS 2010

Posted By:      Posted Date: October 13, 2010    Points: 0   Category :ASP.Net

When I delete a file in VS 2010 (whether or not the file is in source control) Visual Studio takes at least a minute to finish deleting it. Why is this? I have lots of disk space available and a very fast (32-bit) workstation running Windows XP (latest patches) with 2GB ram. If I delete files from Windows, it happens as expected - sometimes I have to wait a second or two.

Any ideas? Does this happen for others, or is it just me?




View Complete Post

More Related Resource Links

Clean Web.Config Files (VS 2010 and .NET 4.0 Series)

.NET 4 includes a new version of the CLR, and a new .NET 4 specific machine.config file (which is installed side-by-side with the one used by .NET 2, .NET 3 and .NET 3.5).

The new .NET 4 machine.config file now automatically registers all of the ASP.NET tag sections, handlers and modules that we've added over the years, including the functionality for:

.ASP.NET Dynamic Data
.ASP.NET Routing (which can now be used for both ASP.NET WebForms and ASP.NET MVC)
.ASP.NET Chart Control (which now ships built-into ASP.NET V4)
What this means is that when you create a new "Empty ASP.NET application" project in VS 2010, you'll find that the new default application-level web.config file is now clean and simple:

Visual Studio 2010 Creates Two Solution Files


When I create a new file system based web application in Visual Studio 2010, for example, named as "MyWebSite", two folders were created by the studio: MyWebSite and MyWebSite(2). The second folder only contains a solution file while the first folder has the solution file as well. Is this a new feature? Where is the setting that can avoid the second folder? Thanks,

Video: Rendering SharePoint 2010 Media Files in Silverlight

This demonstration illustrates how to render SharePoint media files in a Silverlight application. (Length: 11:28)

Is it possible to create WSP files within Designer 2010?

I'm just getting to grips with Designer 2010 and was wondering if I edited a CSS, Pagelayout or Masterpage (for example), how easy it would be to package them up into a WSP file? Would it be easy to export the changes within Designer into VS2010? Can you import the changes into VS2010? Or would I have to do it the hard way and copy each file and drop them into a WSP project in VS2010 and then build and deploy? Just getting my head around which would be more automated - if at all. Cheers.   Keith.

Creating Lists On Share-point 2010 Server from .stp list template files using Features

Plz, let me know, how to create list on share-point 2010 server from .stp list template files using features in C#

Problem Saving Files to A Sharepoint 2010 Site from Office 2010: Saves locally by default rather tha

Hi we are starting to use sharepoint 2010 / word 2010 and have found an interesting bug/problem. Sometimes when a user tries to save a file (by clicking on the save button in the quick access toolbar for word 2010) the save dialog comes up with the users local "Documents" folder as the path (not the correct sharepoint path where the document should be saved).  (I should say that we are creating the file from sharepoint by using a toolbar on the document library, with the new button)  We are using a content type and a template attached to the document library when we create the file.  This is really annoying because the user might not notice that the document is saving locally and not to sharepoint.  I have found a strange workaround which involves clicking the [File] tab on the ribbon in word 2010, then clicking "Save and Send" and then clicking the save button again.  At this point word 2010 seems to "remember" that it is trying to save document to sharepoint and shows the sharepoint document library. This is a real nuisance which could lead to documents being lost/misfiled if people don't realize that this is happening.  Can anyone help me? Thanks Kevin krd

Missing/Required binary files on one Web-front-end after installed the CU aug 2010 hotfix?

Hi! I have installed the binary files for CU aug 2010 hotfix in a farm with two web-front-ends. In Central Administration you can see that on Web-front-end one (that also is hosting the Central Administration app) the binary files are missing but not on the second Web-Front-End. The installation went fine on both servers with the exception that I had to reboot the Web-Front-end one. When I try to run Psconfig to update my databases I get en error message like this in my command prompt. The upgrade command is invalid or a failure has been encountered. The server farm will not work with missing installs. Add "-cmd installcheck -noi nstallcheck" to the command-line to ignore this warning. The following is missing on web-front-end one: Hotfix for Office (KB2352342) Hotfix for Office (KB2352342) Hotfix for Office (KB2352342) Hotfix for Office (KB2352342) Hotfix for Office (KB2352342) Hotfix for Office (KB2352342) Hotfix for Office (KB2352342) Hotfix for Office (KB2352342) In the event log I get a lot of these errormessages too (EventID 3351): SQL database login for 'SharePoint_Config' on instance 'SqlAliasName' failed. Additional error information from SQL Server is included below. Login failed for user 'Domian\servername (one)$'. The thing is that the files is installed in the filesystems aswell as the dll files in the GAC on both servers. You can´t unistal

how to make working WPF 2010 program make changes to SQL Server 2008 Express files

(1) I have a working WPF 2010 program that manipulates a table in SQL Server 2008 Express (2) the program does delete, update, select and insert correctly however in its own project file folder logbooklmk.mdf   logbooklmk_log.ldf (3) I want the actual SQL Server 2008 express files to be changed yes I know the issue is sharing and the copy option only applies to the local project files. I found this out by trying always copy, never copy and copy if newer. I probably have to change the .xsd folder to refer to the actual SQL Server 2008 Express file. Tried that once and it failed. Something about sharing not allowed.

Indexing files larger than 16 MB in SharePoint 2010

Tonight, I came across an interesting blog post by Fellow MVP, Todd Klidnt in which he explains how to work around the 16 MB limitation for file indexing in SharePoint 2010 using PowerShell. "As with previous versions of SharePoint, SharePoint 2010 will not index the contents of files larger than 16 MB. There are a couple of reasons for this such as network usage pulling large files across and the time it takes to break them apart". Click here to continue to the post.

Advanced Search tiff files sharepoint 2010

hi, I have a question about advanced search in sharepoint 2010 would love if you could help me: I have a document management system that contains files of different types. Performing a standard search system finds documents, Advanced search performed on the document properties the system can not find such documents tiff. We installed ifilter tiff by the following link: http://www.borghoff.com/post/2010/04/02/Windows-TIFF-IFilter-and-SharePoint-2007.aspx But it does not work. Maybe you have another solution for me? Thank you.

Error deleting an item from Custom List in 2010

I have an issue that I can't figure out, concerning deleting an item from a custom list in SharePoint 2010. If I create a custom list and add a few items, and I attempt to delete one of these items by selecting the checkbox to the left and using the "Delete Item" command on the Ribbon, I get this error (in IE):Object Expectedinplview.jsCode:0Line:2Char:20804URI: <a long nondescriptive URI>Interestingly enough, if I attempt to delete the same item by viewing it and selecting "Delete Item" (in the dialog box), it works that way. It seems like I can't delete items using the command in the Ribbon. This is also true for deleting library document items.Any ideas on how to solve this? I can't seem to find out what this inplview.js file is used for, and it doesn't exist on the server PC (I did a file search for it, and came up empty).Thanks,John

Sharepoint 2010 files

Once I upload a picture or document into sharepoint; where are the files stored?

unable to open office files on WSS 2.0 after install office 2010

Hi expert ^^ I have a question as below. Our company have a Windows Sharepoint Services 2.0 edition that working correctly. But recently we have a problem that our clients are unable to open office filles on WSS 2.0 after office upgraded from office 2007 to 2010. As far as I know some office files are able to open (ie: docx, pptx) but others(doc, xls, xlsx) do not. Does anyone know about above issue? Please let me know your advice!! Thanks.

how do you package files with a feature in sharepoint 2010?

In my old sp2007 project, I would create a folder that would contain my feature, when it got deployed, any files would also be deployed along with them, so I could use them during feature activation later on (config xml files). How can I also deploy an xml file in 2010 along with my feature?nonam

RBS Maintainer not cleanup files in file system (SharePoint 2010)

Here's my environment:   Server #1: SQL Server 2008 R2 Express, RBS enabled Server #2: SharePoint Foundation 2010, RBS installed I setup RBS according to this http://technet.microsoft.com/en-us/library/ee663474.aspx successfully. And I can see the files are storing in NTFS file system instead of database. And then I'm configuring RBS Maintainer according to http://technet.microsoft.com/en-us/library/ff943566.aspx . But it doesn't seem working as expected. I deleted the file from SharePoint Document Library and emptied recycle bin, even in site collection recycle bin. And even I delete the whole site collection. The RBS Maintainer doesn't delete the files in file system. I've updated the following rbs config on my content database for test: exec mssqlrbs.rbs_sp_set_config_value 'garbage_collection_time_window', 'time 00:00:00'; exec mssqlrbs.rbs_sp_set_config_value 'delete_scan_period ', 'time 00:00:00'; exec mssqlrbs.rbs_sp_set_config_value 'orphan_scan_period', 'time 00:00:00'; Maintainer output after I deleted the file, emptied end user recycle bin and site collection recycle bin : C:\Program Files\Microsoft SQL Remote Blob Storage 10.50\Maintainer>"C:\Program Files\Microsoft SQL Remote Blob Storage 10.50\Maintainer\Microsoft.Data.SqlRemot eBlobs.Maintainer.exe" -Connect

VS 2010 unable to edit or display xaml files.


I am having a problem using the editor for xaml files in Visual Studio 2010.

I have used Visual Studio 2005 and 2008 for many years.  Over the last year or more I have been constructing and maintaining a Silverlight application, editing both the xaml code and using the design mode.  I am quite familiar with it and it worked fine.

However we recently installed several copies of Visual Studio 2010 as trial versions and since it seemed OK we converted to the full version.  However now I am having trouble viewing xaml files in the editor, in either the design mode or as text. 

Double clicking on a xaml file in the Solution Explorer, which should start the xaml editor, now does very little, leaving the main screen blank. The file seems to be open since it is listed in the list of open files in the 'Windows' drop down menu.  If I ask it to reload the file it says it is already open and do I want to close it before continuing.  But it is not accessible or visible.

Right clicking on a xaml file and selecting 'Open with..' shows the 'Automatic Editor Selector' is selected as default.  If I select 'Text Editor' I can at least see and edit the xaml code.  But I can not see the design mode.  If I select 'Windows Presentation Foundation Designer with encoding' from the 'Op

Sharepoint 2010 "Some content or files on this webpage require a program that you don't have instal


This may be a DNS question.

New SP 2010 install, single server lab environment.
I can create and access site collections under the first web application SP2010 (Sharepoint 80, http://sp2010)

I have created another web application, different database, different port (777), and given it a different URL (test.otherdomain.com:777)
I have created a corresponging site collection (default team site).
Opened port 777 TCP incoming and outgoing in the windows firewall
Created a host (A record) in my DNS test.otherdomain.com (IP of the sharepoint server which is really called SP2010.mydomain.com)

nslookup returns the correct IP address, but when I type test.otherdomain.com:777 into a browser window I get
"Some content or files on this webpage require a program that you don't have installed" both from another machine on the network and on the Sharepoint server.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend