473,326 Members | 2,337 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,326 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 1686
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.