.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

Remove Previous Versions

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :.NET Framework
Hi, With the following setting, it is not removing previous version: I have the DetectNewerInstalledversions= True Remove Previous Versions = True Version = 5.0.1 In the next build i incremented the Version to 5.0.2 It asked for changing the product code and i clicked on Yes. When i installed it is not removing the previous version. Instead it is installing the software. Can anyone help with this? Thanks

View Complete Post

More Related Resource Links

How to remove weekend days from current row date and Previous row date ?


column0    Column1                     ResultColumn

1              Mon, 07/12/2002           0 days

2              fri, 11/12/2002              4 days

3              mon, 14/12/2002           1 days

Thanks & Regards, PSWASULE

Previous document versions dont seem to disappear after turning off Document Versioning in Doc Libra


We have a two server (WFE + DB) MOSS 2007 installation with MOSS Enterprise version on it.

We had uploaded about 7000 documents amounting to a total of about 2 GB of file size into a document library. We then ran a tool to update several metadata columns for all those 7000 in the library. However we had forgotten to turn off versioning.

This seems to have caused the document library size and thereby the content database size to expand massively and we dont need that to happen. So we turned off the versioning and assumed that the previous versions would be purged by SharePoint and our document library size would reduce back to about 2 GB (total size of the documents uploaded into the library).

However the document library/content database has still not gone down in size. Can anyone suggest any ideas to make SharePoint purge / clean / delete the previous versions for all the documents - The worst part is we dont even see them in the version history anymore, but they seem to be present in the background thereby causing the content database to increase in size significantly.

Please help !



How to - show previous versions values of column



Take a default WSS 3 server & site as the example.

I've created a custom list, one column has "Append Changes to Existing Text" (multi-line text box).  For example "People List":

  • Full Name (single line)
  • Comments (multi line & append changes)

I create a person, and make a comment.  Later I go in and make a second comment.

When I click on this individual record to view it, I can see all information, including both "entries" of comments.

Question:  I want to create a custom list view that will show me all people, and all comments (including previous 'versions' or entries).  When I try to do this, I can only view the most recent comment.


Any thoughts?



.net difference between versions


 what is the difference between .net 2.0/3.0/ 3.5

Retrieving a variable from a previous page



I'm looking to have a search page where a user will select an item from a listview, then then taken to another page that wil display data based on their original selection.

A user will type in a string and be presented with a list of usernames that are like that string, when they select a user name who's profile they would like to view I would like the page that they're taken to, to be that users profile.

How would I transfer the variable from the search page to the profile page, and when I work on the profile page, how can I access that variable?


Remove #Region from whole web site


Hi All,

I need to deliver source code to client and my boss need to remove all the comments and #region sections from the whole web site source code.

So is there any functionality available in visual studio 2010 or may be in an other 3rd party tool available to do so, which can remove all the #region from all over the source code ?

Otherwise my developers has to do donkey work.... :(( and I don't wish it. 

Any help or tips/tricks would be appreciated.


Error: Encountered multiple versions of the same assembly with GUID...try pre-importing...TlbImp


Hi!  Can someone tell me how I can troubleshoot the following error: "Encountered multiple versions of the same assembly with GUID...try pre-importing one of these assemblies".

The website developed in VS 2010 (.Net 3.5). This error is only received on my workstation.  Another person developing the site does not experience this issue at all.  Also, not sure if this matters, but on my workstation the 'Assembly Information...' dialog contains no values even though the 'AssemblyInfo.vb' file does specify values for the title, desc, etc.  The GUID being referenced in the error is the main project of the three projects within the solution.

I tried looking through the GAC, but do not see any references to the projects or DLLs in the VS solution and am not sure what else/where to look.

If I delete the copy of the solution on my local machine and pull down a copy from source control (AnkhSVN) the solution will build with no error.  Once I make any changes, such as adding a new aspx file, then the error is received.

I can provide any additional information needed.

Web deployment project - web.config section replacement does not add remove tag


I have a web application that is actually installed as a component of a third party site.  In some configurations, I need to remove certain connection strings and re-add them.  I'm replacing this web.config section with a xml file that includes the following:

      <remove name="MyOverridenConnection"/>
      <add connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MyDb;Data Source=MyServer" name="MyOverridenConnection"

For some reason the remove tag is left out during the substitution and I end up with the following in the installed config:

      <add connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MyDb;Data Source=MyServer" name="MyOverridenConnection"

Is there any way to issue removes in replaced sec

Remove characters in a string


i have a string like this   sravani/, asdfff/, lsdsf/
i want to remove last character '/'  in the above string...
which function can i use?

pls help me....

Advanced Serialization: Format Your Way to Success with the .NET Framework Versions 1.1 and 2.0


While .NET offers adequate support for the simple serialization cases, issues arise when you're attempting to support delegates and subscribers, versioning, and class hierarchies. . In addition, the introduction of generics in The .NET Framework breaks new ground in the complexity of the serialization task and the power of serialization tools. This article discusses these issues and related pitfalls, suggests techniques and workarounds that address them, and recommends when and how to best use the new serialization abilities.

Juval Lowy

MSDN Magazine October 2004

How To Remove a Query Parameter from a URL


for a string such as this:


how would I remove the parameter id 12?


Remove HTML formatting


Anyone know how to remove html-formatted-string to plain text programatically?

I want to get the same result as if i ctrl+a in a browser's page and then ctrl+v in a notepad.

I was googled how to strip html string, but didn't find the good result.

Removing tag using regex: "<(.|\n)*?>" causes some problems:

* The html-table is not nicely converted to tabbed plain text. It produces *crazy* table in plain text.

* the html-alternate-image lost

* the list ( <ul> & <ol> ) is not conveted well. No numbering or bullets in plain text

SSRS Report viewer + Remove


I am running the report from SSRS report server in the view i am finding that the window title is Report Viewer - Windows Internet Explorer.

How to remove this name and get the name of the report over there.

I am using java at the back end to call the repot through url.

Please help me .

Thanks ,


List views for versions



We have a list with versioning enabled. When an item is edited a new version is created for the particular item.
Is it possible to create a view to list only a particular version of items and data in that version?


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