Re: question about Temporary ASP.NET Files folder

From: Roy (Roy_at_discussions.microsoft.com)
Date: 08/19/04


Date: Thu, 19 Aug 2004 07:55:02 -0700

I can understand the reason you gave. But it confuses me more since it
complecates the deployment. I have a subfolder with some resource files under
it. This folder is relative to the bin folder, which means I can get the
folder dynamically from my assembly dll under bin folder. If the dll loaded
is the one under temporary folder, I cannot use XCopy to deploy my project.
How can I resolve it?

"Scott Allen" wrote:

> Hi Roy:
>
> I believe the ASP.NET team was trying to reduce the number of
> scenarios where you have to restart the web application.
>
>
> If ASP.NET loaded the DLL from the bin folder, the DLL would become
> locked. The only way to update the DLL would be to stop the web
> application to release the lock and then copy in the new DLL.
>
> The way it works now is ASP.NET makes a shadow copy of the DLLs in the
> bin directory. If you slide in a new version ASP.NET will detect the
> new file, shadow copy and load it up.
>
> HTH,
>
> --
> Scott
> http://www.OdeToCode.com
>
> On Thu, 19 Aug 2004 06:07:02 -0700, Roy
> <Roy@discussions.microsoft.com> wrote:
>
> >My dll file is copied to the
> >"%windir%\Microsoft.NET\Framework\{version}Temporary ASP.NET Files" folder
> >when I compile my asp.net project. When I run the application. The dll under
> >this folder is loaded, not the one under bin folder. Why is that? How can I
> >load the one under bin folder?
>
>



Relevant Pages

  • Re: Howto: WebService in not Bin folder?
    ... > But if i place my WebService dll not in bin folder ASP.NET cann't found it ... CODEBEHIND attribute in the .ASMX file. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Namespace Question
    ... the question is what if i m changing the original Dll ... dll to the bin folder each time? ... Look for assemblies in directories specified with the Reference Path ... if i understand you right you preferred to use the GAC? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: question about Temporary ASP.NET Files folder
    ... One alternative is to use a 'satellite assembly' instead of a resource ... This folder is relative to the bin folder, which means I can get the ... >folder dynamically from my assembly dll under bin folder. ... >> HTH, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Assembly probing does not work
    ... It still fails with "Could not load type 'Testing.MyPage'". ... to engange the fusion log to check for error source, ... if located diretly in bin folder. ... Do I have somehow to tell ASP.NET the location of the DLL? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: question about Temporary ASP.NET Files folder
    ... If ASP.NET loaded the DLL from the bin folder, ... The way it works now is ASP.NET makes a shadow copy of the DLLs in the ... shadow copy and load it up. ...
    (microsoft.public.dotnet.framework.aspnet)