.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

Show web applications build version information

Posted By:      Posted Date: August 24, 2010    Points: 0   Category :ASP.Net


I would like to make the build information for the running web application but I dont know where I set or configure this nor do I know how to retrieve this information.

In a project you may set the  build information in the file AssemblyInfo.cs under the projects Properties folder. Here is a snippet of the AssemblyInfo.cs file:

// Version information for an assembly consists of the following four values:
//      Major Version
//      Minor Version 
//      Build Number
//      Revision
// You can specify all the values or you can default the Revision and Build Numbers 
// by using the '*' as shown below:
[assembly: AssemblyVersion("6.3.0")]
[assembly: AssemblyFileVersion("6.3.0.*")]

But there is no such file for an web application project, so I have to get this information from one of the compiled DLLs that is in the same assembly as my web application then? Or how is this done?


The reason I want this information is because my customer would like to have a webpage within the web application where he could see the current version. This is also nice to have when testing and debugging etc.




View Complete Post

More Related Resource Links

Information Worker 2010 - Web applications do not show up

i have Information Worker 2010 VHD running on VMware-MacBookPro with 6Gb ram. I converted vhd to vmware and it runs fine but for watever reason am unable to bring up the various web applications in the VM. I can goto Central Admin but the web applications (each is configured with a host header) simply dont show up.  i googled for hrs and have tried DisableLoopback thread etc., checked dns entries but nothing helps. What am trying is definitely not to be done in a production env, which is running web app on local server. has anyone been able to bring up web apps successfully. 

"Oslo" Basics: Build Metadata-Based Applications With The "Oslo" Platform


We introduce you to "Oslo" and demonstrate how MSchema and MGraph enable you to build metadata-driven apps. We'll define types and values in "M" and deploy them to the repository.

Chris Sells

MSDN Magazine February 2009

SQL Server: Build Apps that Provide Real-Time Information and Customized Content Using SQL Server No


The adoption of wireless devices continues to spread unabated, and organizations are looking for new ways to get in touch with customers through these new mobile devices. In the past, unsuccessful ideas such as push technology were used to send targeted information to customers. Now, SQL Server Notification Services uses the SQL Server 2000 database engine and the .NET Framework to promote a new breed of notification applications that will allow relevant, consensual communications to be sent to any subscriber device.Here the author provides an architectural overview of the core features that make up SQL Server Notification Services. Along the way he discusses how they can be used for pushing Web content.

Mark Brown

MSDN Magazine November 2002

COM+ Integration: How .NET Enterprise Services Can Help You Build Distributed Applications


The .NET Common Language Runtime (CLR) is Microsoft's next-generation component technology. The CLR is a replacement for COM, but not for COM+. COM+, now called .NET Enterprise Services, is the Microsoft object runtime environment for scalable system development. This article explains how to implement and deploy COM+ configured classes using the CLR, how to access object context and call context, and the rules for managing context-relative object references. Also discussed are ways to manage precious resources such as data connections and pooled objects, and the relationship between COM+ and the new .NET remoting architecture.

Tim Ewald

MSDN Magazine October 2001

.NET Mobile Web SDK: Build and Test Wireless Web Applications for Phones and PDAs


Cell phones, PDAs, and other wireless devices that connect with the Internet enjoy growing popularity, making wireless applications more important and especially useful to companies with remote employees. This article presents an overview of the .NET Mobile Web SDK for building wireless apps. The technologies and design decisions that influence the development of mobile Web applications are discussed along with specific strategies for setting up a development environment using an emulator and building a real-world mobile Web application.

Eric Griffin

MSDN Magazine June 2001

Visual Studio .NET: Build Web Applications Faster and Easier Using Web Services and XML


Visual Studio .NET includes exciting features, some of which are enhancements to previous versions and some of which are brand new. A few of the most significant additions are the new Microsoft programming language called C#; a new, smarter integrated development environment; new object-oriented features in Visual Basic .NET; and development lifecycle tools. This article provides an overview of these features, as well as a look at Web Services, Web Forms, and new versions of ADO and ASP. It takes a first look at dozens of important new Visual Studio features that aid in the design, development, testing, and deployment of solutions built with Visual Basic, C++, Visual FoxPro, and C#.

Dave Mendlen

MSDN Magazine September 2000

EnumAvailableSqlServers() not returning version information

I am unable to consistently get full information from the smo call EnumAvailableSqlServers. If SQL Browser is running, it returns version info only for the local machine, never a remote machine. I've tested this from several different servers. It IS NOT a firewall issue, there is not firewall or any other restrictive apparatus/software between the servers. #load SMO assembly $v = [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SMO') # need version to load version specific SMO , makes code universal # credit to Allen White .. sqlblog.com $p = $v.FullName.Split(',') $p1 = $p[1].Split('=') $p2 = $p1[1].Split('.') if ($p2[0] -ne '9') { [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SMOExtended') | out-null [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SQLWMIManagement') | out-null } ################ [Data.DataTable]$instances = [Microsoft.SqlServer.Management.Smo.SmoApplication]::EnumAvailableSqlServers() $instances

How to show random information with C# from a SQL Database?

I have to do the following in my web page.  Any advice and how to do this please with C# I have a table where I have a column for different states (NY, NJ, etc).  People can join the group (in my page) for each state (the state where they live).  So I have to display the newest members for each state. So the way it should work is, every time the page is refreshed/reloaded it should show the state name as a header text and the first 5 newest members for that state.  This should be random, for example initially when the page is loaded say it will show state: New York and the 5 recent members like Stacy, Laura, Mike, Sam, Mathew. Then when the page is refreshed it will show another state like State: california and the recent 5 members All the information comes from the database How should I do this?

vb.net - change version information

I'm using .net 2005 I would like to edit the Version Information of File Version,Description,Copyright,Company, Product Version Can i able to do it? where and how to set up ?    


Hello, I have these tables....   CREATE TABLE test( codeTest int IDENTITY(1,1), name varchar(100) not null, PCK varchar (15) not null, AK varchar (15) not null, testdate datetime not null, CONSTRAINT testPK PRIMARY KEY (codeTest), );   CREATE TABLE subtest( codeSubtest int IDENTITY(1,1), codeTest int not null, name varchar(100) not null, ps1 int not null, ps2 int, ps3 int, ps4 int, ps5 int, maximumpeek char(1), fullsocketsps1initial int, fullsocketsps2initialfull int, fullsocketsps1final int, fullsocketsps2final int, CONSTRAINT subtestPK PRIMARY KEY (codeSubtest), CONSTRAINT subtestFK FOREIGN KEY (codeTest) REFERENCES test (codeTest) on delete cascade, );   CREATE TABLE scheduler( codeScheduler int IDENTITY(1,1), codeSubtest int not null, ps int not null, step varchar(10) not null, task int not null, cycletime real not null, maxdelay bigint not null, maxexecutiontime bigint not null, maxcycletime bigint not null, lostscans bigint not null, inputtimeouts real not null, outputtimeouts real not null, comments varchar (50), CONSTRAINT schedulerPK PRIMARY KEY (codeScheduler), CONSTRAINT schedulerFK FOREIGN KEY (codeSubtest) REFERENCES subtest (codeSubtest) on delete cascade, );   I want to show, the maxcycletime when task=2 for every test: so this I can do it... SELECT    MAX (scheduler.maxexecutiontime) AS [MAX CYCLE TIME]   ,test.codeTest AS

ERROR: Cannot show Visual Studio 2008 Tools for Applications editor - SP1 IS applied

Using BI Studio, attempting to put a small VB script in a Script Task, hitting the Edit Script gives:   Cannot show Visual Studio 2008 Tools for Applications editor   ADDITIONAL INFORMATION: Could not load file or assembly 'VSTADTEProvider.Interop, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. (Microsoft.SqlServer.VSTAScriptingLib)   NEED A FIX, PLEASE, AS I'VE ALREADY LOADED VS2008 SP1...!   I have now also uninstalled VS2008 entirely, along with .NET 3.5 SP1 rebooted several times, reinstalled from the January Team System Database Edition, applied VS2008 SP1 and .Net 3.5 SP1 from Microsoft Downloads with the usual reboots to make sure, and I'm still hosed...   Microsoft Visual Studio 2008Version 9.0.30729.1 SPMicrosoft .NET FrameworkVersion 3.5 SP1 Installed Edition: Enterprise Microsoft Visual Basic 2008   91901-270-1018792-60217Microsoft Visual Basic 2008 Microsoft Visual C# 2008   91901-270-1018792-60217Microsoft Visual C# 2008 Microsoft Visual C++ 2008   91901-270-1018792-60217Microsoft Visual C++ 2008 Microsoft Visual Studio 2008 Tools for Office   91901-270-1018792-60217Microsoft Visual Studio 2008 Tools for Office Microsoft Visual Studio Team System 2008 Database Edition   91901-270-1018792-60217Microsoft Visual Studio Team System 2008 Database Edition Microsoft Visual Web

Newsfeed does not show all types of information


Ok, so I have created two users, and user1 has added user2 as his colleague. User1 has everything checked off under "Activities I am following" in his profile, so intuitively, he should see everything that user2 does.

Logged in as user2, I do the following updates:


  • Create some notes
  • Create some tags
  • Add a picture
  • Add a blog post
  • Update the "says" field
  • Add some details to the pofile, e.g. phone number etc.


I then trigger the "User Profile Service Application - Activity Feed Job" service manually to see the changes.

The only things showing up in user1's newsfeed, are:

  • User2's notes
  • User2's "says" field
  • User2's profile details, e.g. phone number
The rest is mysteriously not showing. If I browse to user2's profile page, I can see his picture and blog posts under "Content", so the permissions are not the issue there. Under "Tags and notes", I see only notes, which may indicate a permission issue. However, the tags are not marked as private by user2.

We experience the same behaviour both on a release candidate installation and on the rtm version. I have tried to

How can I show version history on a custom edit form?



I have a simple list that contains aa title and a number field.  On the edit form, I want to show all prior updates to the number field, like so:

Title:  ABC
01/01/2010     10  Updated by: user1
02/01/2010     20  Updated by: user2
Count:            <Textbox for input>

I can create a custom edit form in Designer, but by default I get a DataFormWebPart with an XSLT.  I don't know how to configure the data source to pull all versions so that they could be shown in the XSLT.  If I can't use the DFWP and have to do everything custom, please provide details and/or links.

This is for WSS 3.0.  Any help would be greatly appreciated.  Thanks!
 - Ed.

Error information in native applications


I'm using a SQLCE database in a C++ application. My problem is that my error handling code produces messages that look incomplete, at least it looks like database specific parameters are missing. For example an SQL INSERT statement that does not fill in a "NOT NULL" field results in the following message:

OLE DB error: 0x80040E2F, Description: The column cannot contain null values. [,,,Column name,Table name,], Source:Microsoft SQL Server Compact OLE DB Provider.

The error message is clear to me in this special case but I'm wondering why the message says "Column name" and "Table name" and not the actual names of my database. Actually the brackets did never contain any useful information. That is especially annoying with parsing errors. What could be the reason?

Regarding my error code I roughly followed the documentation: 

void OleDbCheck(HRESULT hr)
		if(HRESULT_FACILITY(hr) == 4)
			CComPtr<IErrorInfo> errorInfo;
			GetErrorInfo(0, &errorInfo);
				CComPtr<IErrorRecords> errorRecords;

				ULONG numErrorRecords = 0;


				for(ULONG i=0; i<numErr

Build error - WPF application manifest and ComCtl32.dll version 6

According to MSDN (http://msdn.microsoft.com/en-us/library/bb773175(VS.85).aspx) and many other sites, in order to get MessageBox, OpenFileDialog, etc to use controls with visual styles enabled, an application manifest file needs to be used to tell the application to use version 6 of ComCtl32.dll.

In an effort to do this, I've got a WPF application which is set up to use a custom manifest file. However, when I add the requisite snippet to the .manifest file:




Show codeanalysis messages in the build summary or log view(build detail screen in visual studio)

Is there a way to show  codeanalysis messages in the build summary or log view(build detail screen in visual studio).  Right now it run and output the details to an xml file. I would also like it to show in the detail view screen.  Thanks.

CA shows a different version and the Site Settings show a different one. Why


HI all

In the MOSS 2007 Server i got from the client

In the CA page (_admin/FarmServers.aspx) - the version is i.e the 2009 dec CU

but when i create a web application and then a site in it the site's site settings page shows version (SP2)

Is the Dec CU not applied successfully.  


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