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

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

Assembly versioning best practice question wrt alpha, beta, etc

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :.NET Framework
We'd like to employ some best practices with respect to versioning in our assemblies.  Since I'm coming from a Java+Maven+OSGi background, I'll share its way of doing versioning. Versioning in Java is arbitrary; there are no platform-dictated schemes.  However, for quite some time now, versions have the typical form major.minor.revision[.qualifier] where major & minor are pretty self-explanatory, revision is used to indicate very minor updates like bug fixes/hot fixes, etc, and qualifier is used at the publisher's convenience.  Almost always, the major, minor & revision elements are numeric values, but they don't have to be.  Ordering is as you might expect:  major versions are the most signficant element and are compared by the string's order unless their all numeric, in which case they're compared numerically, then minor, then revision, then qualifier, if present.  So, to give an example of the versioning scheme that a newly created library might go through, consider the following versions with descriptions: 1.0.0.A1 -- alpha 1 1.0.0.A2 -- alpha 2 1.0.0.B1 -- beta 1 1.0.0.M1 -- milestone 1 1.0.0.M2 -- milestone 2 1.0.0.RC1 -- release candidate 1 1.0.0.RC2 -- release candidate 2 1.0.0.RELEASE -- golden release to manufacturing, aka "official" release Notice that the version string for the version considered gol

View Complete Post

More Related Resource Links

clr assembly in sql server - working directory? and exception question

Hello, I have a small assembly in sql server 2008... it's pretty simple, but in the very rare circumstance that it may throw an exception I am catching it and writting to a log file. something like: using (StreamWriter sr = new StreamWriter(@".\ErrorLog.txt", true)) { sr.WriteLine("{0:G} ===> {1}", DateTime.Now, ex.Message); } I believe that should write the file to the working directory... 1. what would the working directory be for sql server 2008? the binn directory? 2. what would happen if a clr assembly added to sql server throws an exception that is not handled by your clr code?

Suspicious Question on MCTS 70-433 Practice Test

I am preparing to take the 70-433 sometime this week and while doing a practice test last night I came over this question which the answer provided doesn't look correct to me. The question is as follows: You have a table named Pets, which contains the following columns: petName, which stores the name of the pet ownerName, which stores the name of the pet's owner You also have a table named Owners, which contains the following columns: ownerName, which stores the name of the owner of one or more pets age, which stores the age of the owner location, which stores the name of the city in which the owner lives You must retrieve the name of each pet whose owner is over the age of 50 and lives in Seattle.  The solution provided by the test was as follows: SELECT   pet.petName FROM   Pets AS pet JOIN (   SELECT age FROM Owners WHERE location = 'Seattle') AS own ON   pet.ownerName = own.ownerName WHERE   own.age > 50 I don't believe this is possible. The join is made on the ownerName column, but the derived tabled 'own' does not contain that column, therefore it cannot be referenced. I set up the example on SSMS and indeed, it did not work. Is this answer wrong? Or am I missing something here? Thank you.

Best Practice Question

Take a simple search scenario where you want to allow the user to search as part of a search form but also as part of the url.  Given the following two options, which, if any, is deemed to be best practice and why?The following services both the get and post versions of the request.public ActionResult Search(string searchCriteria) { // Get search results. return View(results); } Or split them out...[HttpPost] public ActionResult SearchPost(string searchCriteria) { return RedirectToAction("Search", new { searchCriteria = searchCriteria }); } [HttpGet] public ActionResult Search(string searchCriteria) { // Get search results. return View(results); } Thanks.

General Setup Question regarding Ssytem.XML assembly

Hello,I have a solution running perfectly well on one machine (or actually quite a few machines).  All the code is in source safe and I am trying to set up a new machine with the solution but keep getting the following build errors:'XName' is ambiguous in the namespace 'System.Xml.Linq'. InternalXmlHelper.vb 'XNamespace' is ambiguous in the namespace 'System.Xml.Linq'. InternalXmlHelper.vb 'XElement'is ambiguous in the namespace 'System.Xml.Linq'. InternalXmlHelper.vb 'XAttribute' is ambiguous in the namespace 'System.Xml.Linq'. InternalXmlHelper.vb and so on...The main difference that I noticed was that on the machines where the application builds, in the property page of the project whgere the build erros are occurring I check the reference list and I see a reference to the System.XML assembly (GAC,  However in the machine with the build errors, even when I try to add a reference to the System.XML assembly I get no error messages, but afterr adding the assembly does NOT appear in the reference list.In addition I have verified that I am able to create a new web application without any build or runtime errors on the machine experiencing these issues.Any feedback would be greatly appreicated.Thanks.

Assembly versioning strategies

Hi all, I tried once to see what folks are doing about version number strategies, and I guess I was too verbose (see http://social.msdn.microsoft.com/Forums/en/clr/thread/2c3e2bdb-f1ed-4702-af6f-c203e9642378). How to you manage versions in your assemblies?  What's the best practice, especially under source control?  I'd like to convey major.minor.revision, stage (Alpha, Beta, Milestone, Release Candidate, & Release) iteration within stage (Beta 1, Beta 2, RC 1, RC 2) build number (incremental number within stage's iteration) I am well aware that AssemblyVersionAttribute & AssemblyFileVersionAttribute use the convention major.minor.buildNumber.revision, which just doesn't seem to communicate much information to me without some associated cross reference from version to what kind of release it actually is. Your thoughts & opinions are appreciated. Thanks, Matthew PS:  See http://social.msdn.microsoft.com/Forums/en/clr/thread/2c3e2bdb-f1ed-4702-af6f-c203e9642378 for a long version of this question.

Mixing Assembly Runtime Versions Question


I'm building an application targeted at the .NET Framework 4 and want to use the Logging Application Block and notice that the 5.0.414.0 version installed by the MSI is targeted at the 2.0.50727 runtime.  If this 2.0 version of the Logging Application Block is used, are there any performance problems or other issues which would suggest that I install the Logging Application Block source code and compile it targeted at .NET Framework 4 and use that DLL??




Upgrade assembly in GAC on productionserver - best practice



I have just deployed my solution (wsp) to a live/productionserver for a client. This is on a Windows Server 2008 R2 machine and as you probably know, UAC is turned on by default which means copying a dll manually to the GAC is not allowed. Regardless, the IT admins at the client does not want me to do that anyway.

So, I tried creating an empty SharePoint 2010 project and add the dll's I needed to upgrade to the package/feature and deployed it. Even now I get an access denied error.

What is best practice for this?

PS. The server doesn't have Visual Studio or any .NET SDK's installed on it and I doubt that any of those two ever will be installed on the server.

SQL2008 - Assembly versioning: Two versions of assembly '...'. Keep one version and drop the other



If someone has a suggestion of how to handle .NET dll assembly versions in a SQL Server 2008 database I would be very happy if you could explain how to do it.

First some background though so you'll understand the situation I'm in.

I've created a SQLCLR stored procedure in .NET with some code doning calculations in the database. Now I need to update the code according to some new business rules. Unfortunately we don't have a test environment where I can upload the code and test it until it works. Therefore I would like make the changes necessary in the code and somehow change the version number of the dll and deploy that to the database while the old dll is still used in production.

I've heard of the workaround with strong/weak assembly names but I'm wondering if there's a real versioning method around yet.

And yes I know the "easiest" way would be to create a testenvironment and ahve the normal setup with test/production servers but I still would like to know if my original idea is possible in any way.

Kind regards


ASP.NET 4 and Visual Studio 2010 Web Development Beta 2 Overview

Many exciting changes for ASP.NET are coming in the .NET Framework version 4. This document gives an overview of many of the new features that are included in the Beta 2 release of the .NET Framework 4 and of Visual Studio 2010.

Visual Studio 2010 Beta 2

This is a big deal. This isn't ".NET 3.6" - there are a lot of improvements of .NET 4, and it's not just "pile on a bunch of features so you get overwhelmed." I've been working with and talking to many of the teams involved and even though it's a cheesy thing to say, this is a really customer-focused release.

ASP 4 - Whirlwind Tour around .NET 4 (and Visual Studio 2010) Beta 1

There's a lot of stuff that's new and added in .NET 4, but not in that "overwhelming-I-need-to-relearn-everything" way. More in that, "oh, this is way easier/simpler now" way. Like, moving data around with ADO.NET DataServices is easy, binding with client templates is easy, there's F# if you need it, the "dynamic" keyword if you need it, Silverlight's already installed, oh, and the parallel stuff will freak you out, but in a good way.

Some basic MVC question

  1. In regular asp net I can run (debug) the application but I can either "view in browser" that gives me the option to view the application and write code on same time.

In MVC I can't find this option.

  1. What is the basic DATA MODEL for working with SQL DB.

I mean with no any framework (entity framework, Sub sonic, Link to SQL etc')

I look for basic application that works with data but with no fw.

  1. What is the popular DB framework that working with data.
  2.  I am looking on  mvc series


C# Soup To Nuts  (the best series ever)


I watch some of the MVC video, seems that the music store is good but I have to wait to the other part.

Does any one know and recommend   a Microsoft MVC tutorial?





Web Site to Web Application Question


I've been building web sites and for my next project I will be creating a web application.  I use a 'BasePage' class in all my projects but, since web applications do not contain the 'App_Code' folder, what is the best place/practice for the 'BasePage' class?



connection string question from a newbie


when publishing  in the webmatrix dialogue it asks for "destination connection string" for my "database.mdf"

I was not sure what it was so I pasted this from my web.config file :

Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\database.mdf;Integrated Security=True;User Instance=True

it all published ok, but wont run, so I guess it has somthing to do with this connection string or some kind of configuration issue.

My question is this, What should go in the field for "Destination connection string"

Security Question Answer Retrieval


I know there is a method built in for retrieving the encrypted password, but how do I retrieve the encrypted security answer?

What I want to do is have a member profile update screen that the end user can update their password and security question and answer. However, when they get to this page, I want to already be showing the security question (the easy part) and its answer (the not so easy part).

I have updated web.config with passwordFormat=Encrypted and have added a machineKey with the generator (forgot the link, but located on eggheadcafe somewhere).

I haven't done ANYTHING yet, since I already have a user store with hashed information. I wanted to get some functionality done before publishing, wiping the store and recreating users (only a couple developers).


Very Basic Question - Error message running first page


Hi Everyone,

I am running Windows 7 and I have gone into Control Panel and activated all of the IIS Functions.

The web application I am running was downloaded from the net (and has worked on other machines previously).  Once I downloaded it, I moved it into C:/inetpub/wwwroot/code/main.asp

I am a bit of a novice at this!  But I am hoping someone can point me in the right direction!


I get the following error when I try and run the web application through IE:

"An error occurred on the server when processing the URL. Please contact the system administrator. If you are the system administrator please click here to find out more about this error."

(When i click the "click here" button it just goes to the IIS site).


Appreciate any help I can get!




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.

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