Do you get 0.0.0.0 all the time? It is due to the web site compilation
model. There is no static dll with the code-behind assembly. Rather the
code-behind compiles together with the aspx server script dynamically at
runtime. You can use the VS 2003-stile compilation model where the
code-behind compiles into a static dll. Then you should be able to maintain
the version info better.
Here is Scott Guthrie's blog entry on the new compilation model:
http://weblogs.asp.net/scottgu/archi...07/432630.aspx
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"UJ" <fr**@nowhere.comwrote in message
news:eu*************@TK2MSFTNGP04.phx.gbl...
Unfortunately that doesn't change when you recompile.
"Gregory Silvano" <ng@staturesoftware.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>You could try:
System.Reflection.Assembly.GetExecutingAssembly() .
GetName().Version.ToString()
--
Regards,
Gregory Silvano
Stature Software, LLC
http://www.staturesoftware.com
"UJ" <fr**@nowhere.comwrote in message
news:e$****************@TK2MSFTNGP04.phx.gbl...
>>Is there an equivalent to Application.ProductVersion for Websites?