473,383 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Assemblies cached in user profile.

Hi,

I am having difficulties understanding the use of the cache in my profile
(C:\Documents and Settings\username\Local Settings\Application
Data\assembly\dl2)
My application seems to be using assemblies from this cache, even though
they have been changed and recompiled. Even when I created a setup project to
install my app, it installs old assemblies, the configuration is release but
it is installing old debug assemblies. If I clear the folder and recompile
all is Ok.(I have to exit VS to clear the cache). But this is a right pain in
the neck.
Can anybody shead light on how I can turn of this caching or clear it
automatically from within VS.

Regards Tim


--
Tim Marsden
Nov 22 '05 #1
3 1691
Hi Tim,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that your app is using the assembly that
exists under Application Data folder. If there is any misunderstanding,
please feel free to let me know.

As far as I know, an app will always looks for assemblies in the same
directory, in GAC and in the subfolders specified by the configuration
file. If you don't run the app from VS.NET, will this also happen? Also,
could you let me know if you're working on an ASP.NET app or WinForm app?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #2
Thanks Kevin,

I am having a rethink on how my solution is structured, any issues I will
repost.

Thanks for your help
--
Tim Marsden
"Kevin Yu [MSFT]" wrote:
Hi Tim,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that your app is using the assembly that
exists under Application Data folder. If there is any misunderstanding,
please feel free to let me know.

As far as I know, an app will always looks for assemblies in the same
directory, in GAC and in the subfolders specified by the configuration
file. If you don't run the app from VS.NET, will this also happen? Also,
could you let me know if you're working on an ASP.NET app or WinForm app?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #3
Tim Marsden wrote:
Hi,

I am having difficulties understanding the use of the cache in my
profile (C:\Documents and Settings\username\Local Settings\Application
Data\assembly\dl2)
The clue is in the name dl stands for 'download'. If you look at
%windir%\assembly with windows explorer you'll see a 'folder' called
Download - the download cache. This contains libraries that you have
downloaded from other machines. The %windir%\assembly\Download is the
logical view, the dl2 folder is just the underlying grungy
implementation details.
My application seems to be using assemblies from this cache, even
though they have been changed and recompiled. Even when I created a
setup project to install my app, it installs old assemblies, the
configuration is release but it is installing old debug assemblies.
Hmmm, do you use a <codebase> in a configuration file for you
application?
If I clear the folder and recompile all is Ok.(I have to exit VS to
clear the cache). But this is a right pain in the neck.
are you using gacutil /cdl
Can anybody shead light on how I can turn of this caching or clear it
automatically from within VS.


I am not sure. The key to this problem is that for some reason your
application is downloading libraries from a web site (it may even be IIS
on your machine) but I am not sure why it is doing that. The usual
reason for a process is if you have a setting in the application
configuration file (or even in machine.config) to indicate that the
errant library should be downloaded from a web site. See section 3.4 of
my Fusion workshop.

Richard
--
http://www.grimes.demon.co.uk/workshops/fusionWS.htm
http://www.grimes.demon.co.uk/workshops/securityWS.htm
Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Wayne Gibson | last post by:
Hi all, Please ignore the other post.. The cat jumped on the machine and sent it before I could stop it!! Was wondering if anybody has expericence this problem.. I am writting an application...
3
by: Tim Marsden | last post by:
Hi, I am having difficulties understanding the use of the cache in my profile (C:\Documents and Settings\username\Local Settings\Application Data\assembly\dl2) My application seems to be using...
2
by: lh | last post by:
i'm trying to get the client to download new dlls contained in a cab file on my server. I'm using html's object tag to enable the downloading of the cab file. My problem is that the user is using...
1
by: VB Programmer | last post by:
I am using personalization/profile to store info for the user that is not contained in the aspnet_Users or aspnet_Membership tables. This info includes, firstname, lastname, and phonenumber. ...
6
by: Jeff | last post by:
Hey (and thank you for reading my post) In visual web developer 2005 express edition I've created a simple website project.. At this website I want users who register to be able to upload a...
4
by: Nick Gilbert | last post by:
Hi, Is it possible to access the Session of an arbitary user from an aspx page? On an e-commerce site, I am notified of payment success via a callback from the payment server to an ASPX page...
3
by: daokfella | last post by:
I want to be able to store profile information for a user when they sign up for an account...but BEFORE they can log in. Can this be done using any of the built-in profile methods? Here's my...
9
by: =?Utf-8?B?Sm9obiBBdXN0aW4=?= | last post by:
I have an app that prints entry tickets. If the printer driver is not set up exactly to detect the black mark on the back of the ticket, the tickets do not print correctly. Because of this, all...
4
by: Scott M. | last post by:
When profile data is stored in ASP .NET, where is the user data persisted? For how long is it persisted: is it session persisted or permanent (like a cookie)?
4
by: gnewsgroup | last post by:
I searched around, but could not find out why and how to stop this. Ever since I installed Oracle 11g on my machine, Visual Studio will automatically add the following oracle assemblies into my...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.