Recycling aspnet_wp.exe a pain in the !@#$%

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Recycling aspnet_wp.exe a pain in the !@#$%

    I've been spending some time recently writing some ASP.NET authentication
    code that relies on CAS to minimize the threat posed by luring attacks.
    However, it's becoming, um, painful, to constantly have to recycle the
    aspnet_wp.exe worker process via an IISRESET command every single time I
    rebuild my app!

    Is there some secret handshake that will disable GAC caching in IIS? During
    development, I really don't need the perf benefits provided by
    domain-neutral assemblies. It would make life much easier and speed the
    compile-edit-debug cycle considerably.

    Thanks
    -John
    [url]http://www.iunknown.com[/url]


    John Lam Guest

  2. Similar Questions and Discussions

    1. FormsAuthentication + Protection + Recycling
      When a client enters the site I check for a persistent cookie of short duration, and if present decrypt it to obtain identification data, that is...
    2. Can't empty the recycling bin because of ai files
      Hello World, I am using windows XP and Illustrator 9.0. I am able to delete items but am not able to open the recycling bin. I've tried going...
    3. [BUG] Fatal recycling of SystemStackErrors
      Moin! In Ruby 1.8.0 old SystemStackErrors seem to be reused when there should have been raised a new one instead: irb(main):001:0> y = proc {...
    4. ASP shutting off, needs recycling often
      http://www.aspfaq.com/5005 Ray at work "NewbieSupreme" <newbiesupreme@yahoo.com> wrote in message...
    5. recycling the ASPNet_WP.EXE + application-state Objects get lost.
      Hello, I am using ASP.NET, C# under W2K. I try to keep some important information in application- and session-state Objects. With the recycling...
  3. #2

    Default RE: Recycling aspnet_wp.exe a pain in the !@#$%

    Hi John ,

    Thanks for your posting. I am checking this issue, and will get back to you
    with my findings.

    Best regards,
    Lewis

    This posting is provided "AS IS" with no warranties, and confers no rights.
    --------------------
    | Reply-To: "John Lam" <jlam@iunknown.com>
    | From: "John Lam" <jlam@iunknown.com>
    | Subject: Recycling aspnet_wp.exe a pain in the !@#$%
    | Date: Tue, 9 Sep 2003 21:39:48 -0400
    | Lines: 16
    | X-Priority: 3
    | X-MSMail-Priority: Normal
    | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    | Message-ID: <OKIIpxzdDHA.560@tk2msftngp13.phx.gbl>
    | Newsgroups: microsoft.public.dotnet.framework.aspnet.security
    | NNTP-Posting-Host:
    cpe0050047706a6-cm014490120052.cpe.net.cable.rogers.com 65.50.137.170
    | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
    | Xref: cpmsftngxa06.phx.gbl
    microsoft.public.dotnet.framework.aspnet.security: 6611
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
    |
    | I've been spending some time recently writing some ASP.NET authentication
    | code that relies on CAS to minimize the threat posed by luring attacks.
    | However, it's becoming, um, painful, to constantly have to recycle the
    | aspnet_wp.exe worker process via an IISRESET command every single time I
    | rebuild my app!
    |
    | Is there some secret handshake that will disable GAC caching in IIS?
    During
    | development, I really don't need the perf benefits provided by
    | domain-neutral assemblies. It would make life much easier and speed the
    | compile-edit-debug cycle considerably.
    |
    | Thanks
    | -John
    | [url]http://www.iunknown.com[/url]
    |
    |
    |

    Lewis Wang [MSFT] Guest

  4. #3

    Default RE: Recycling aspnet_wp.exe a pain in the !@#$%

    Hi John,

    Please let me know why you have to recycle the aspnet_wp.exe worker process
    via an IISRESET command every single time you rebuild the application. I
    think It's not necessary to reset IIS when you rebuild the application.

    I am looking forward to your reply.

    Best regards,
    Lewis
    This posting is provided "AS IS" with no warranties, and confers no rights.


    --------------------
    | Reply-To: "John Lam" <jlam@iunknown.com>
    | From: "John Lam" <jlam@iunknown.com>
    | Subject: Recycling aspnet_wp.exe a pain in the !@#$%
    | Date: Tue, 9 Sep 2003 21:39:48 -0400
    | Lines: 16
    | X-Priority: 3
    | X-MSMail-Priority: Normal
    | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    | Message-ID: <OKIIpxzdDHA.560@tk2msftngp13.phx.gbl>
    | Newsgroups: microsoft.public.dotnet.framework.aspnet.security
    | NNTP-Posting-Host:
    cpe0050047706a6-cm014490120052.cpe.net.cable.rogers.com 65.50.137.170
    | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
    | Xref: cpmsftngxa06.phx.gbl
    microsoft.public.dotnet.framework.aspnet.security: 6611
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
    |
    | I've been spending some time recently writing some ASP.NET authentication
    | code that relies on CAS to minimize the threat posed by luring attacks.
    | However, it's becoming, um, painful, to constantly have to recycle the
    | aspnet_wp.exe worker process via an IISRESET command every single time I
    | rebuild my app!
    |
    | Is there some secret handshake that will disable GAC caching in IIS?
    During
    | development, I really don't need the perf benefits provided by
    | domain-neutral assemblies. It would make life much easier and speed the
    | compile-edit-debug cycle considerably.
    |
    | Thanks
    | -John
    | [url]http://www.iunknown.com[/url]
    |
    |
    |

    Lewis Wang [MSFT] Guest

  5. #4

    Default RE: Recycling aspnet_wp.exe a pain in the !@#$%

    Hi John,

    I am not sure if I have understood the problem correctly. It looks to me
    that you want GAC not cache a .NET Assembly. Is my understanding correct?

    Actually, GAC is not controled by IIS. And all assembly in GAC have a
    strong name. If your assembly doesn't have one, it wouldn't be added in
    GAC. Additionally, you can manage the assembly in GAC with a utility
    "gacutil.exe". For more information on this tool, you can refer to:

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/htm[/url]
    l/cpgrfglobalassemblycacheutilitygacutilexe.asp


    Luke
    Microsoft Online Partner Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    MSFT Guest

  6. #5

    Default Re: Recycling aspnet_wp.exe a pain in the !@#$%

    Hi Luke,

    Actually, the issue is that I want there to be a flag in ASP.NET that causes
    ASP.NET to NOT load strong-named assemblies as domain-neutral.

    I apologize if my references to the GAC caused you to misunderstand the
    issue.

    Try building an ASP.NET app that calls a strong-named assembly (don't put it
    into the GAC). Then make a change to that assembly and see if you can just
    rebuild the solution. You can't - you must do an IISRESET before you will
    see the changes. This is due to the fact that the ASP.NET worker process
    loads the strong-named assembly as domain-neutral. If this wasn't the case
    (as per the "I'm developing the app now, so don't cache" flag that I'm
    requesting), then the strong-named assembly will be flushed and a new
    appdomain created.

    -John
    [url]http://www.iunknown.com[/url]


    "MSFT" <lukezhan@online.microsoft.com> wrote in message
    news:knWU34CfDHA.3920@cpmsftngxa07.phx.gbl...
    > Hi John,
    >
    > I am not sure if I have understood the problem correctly. It looks to me
    > that you want GAC not cache a .NET Assembly. Is my understanding correct?
    >
    > Actually, GAC is not controled by IIS. And all assembly in GAC have a
    > strong name. If your assembly doesn't have one, it wouldn't be added in
    > GAC. Additionally, you can manage the assembly in GAC with a utility
    > "gacutil.exe". For more information on this tool, you can refer to:
    >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/htm[/url]
    > l/cpgrfglobalassemblycacheutilitygacutilexe.asp
    >
    >
    > Luke
    > Microsoft Online Partner Support
    >
    > Get Secure! [url]www.microsoft.com/security[/url]
    > (This posting is provided "AS IS", with no warranties, and confers no
    > rights.)
    >

    John Lam Guest

  7. #6

    Default Re: Recycling aspnet_wp.exe a pain in the !@#$%

    Hi John,

    I tested the problem with VS.NET 2002 and IIS 5 and I haven't found the
    same problem. When we add a reference (for example, a.dll) to a project, it
    will copy a.dll to its Bin folder. When we compile the refered project, it
    will write to local bin folder, not the ASPNET appliaction's Bin folder.
    Therefore, there wouldn't be a conflict. Did you put all assembly in one
    Bin folder?

    Luke
    Microsoft Online Partner Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    MSFT Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139