471,350 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Migration to 2005 issue

Val
I am migrating one of my ASP.NET 2003 projects into ASP.NET 2005. In this
project, I have a code that is determining the location of the current
assembly in my Visual Studio Projects folder. This is the “original” location
I am interested in, not the location under
“C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary ASP.NET Files\...”
(“actual” location), where the compiled assembly is residing. The following
code under 2003 is used to return this location:

System.Reflection.Assembly ass =
System.Reflection.Assembly.GetExecutingAssembly();
string location = ass.CodeBase;

Unfortunately it no longer returns the “original” location under 2005, but
rather the “actual” one.

Is there a way to get the “original” location under 2005?

Thanks for your help,

Val

Jan 5 '06 #1
0 771

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Bungle | last post: by
1 post views Thread by sac | last post: by
2 posts views Thread by Robert | last post: by
1 post views Thread by Bonggoy Cruz | last post: by
9 posts views Thread by Troels Arvin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.