Modify application after Deployment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stefbek97
    New Member
    • Aug 2009
    • 54

    Modify application after Deployment

    Hello Everyone,

    I am having a little problem. After publish my ASP.Net project to my server I have to recycle the Application pool in IIS. Whenever I modify the code i get a compilation error and have to Recycle the application pool again. Is that the normal process for applications after deployment?
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Every time you modify the application the application pool is restarted.
    So yes this is normal.

    Whenever you make a change to the .NET code (your VB or C#) code [edit] and then build your website (precompile the application) [/edit] the application pool is reset. Whenever you modify the web.config file, the application pool is reset.

    -Frinny
    Last edited by Frinavale; Oct 16 '09, 01:46 PM. Reason: Added carification.

    Comment

    • stefbek97
      New Member
      • Aug 2009
      • 54

      #3
      Should the application pool reset itself? Because I get a compilation error when I try to access the modified page online. So what I usually do is open the app pool and manually refresh,reset recycle it. Then my application works. Is that how it should be?

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Yes it will reset itself.
        It might help if you posted what the error says.....

        Comment

        • stefbek97
          New Member
          • Aug 2009
          • 54

          #5
          Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

          Compiler Error Message: The compiler failed with error code -1073741502.

          I have googled this error but none of the solutions seem to work for me. Only restarting the app pool. Any Ideas?

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            Try precompiling the website before publishing it...?

            Comment

            • stefbek97
              New Member
              • Aug 2009
              • 54

              #7
              What if the website is already published and located on the server. I open the project in visual studio, make the changes , click save and thats it. Time to restart the app pool.

              Comment

              • Frinavale
                Recognized Expert Expert
                • Oct 2006
                • 9749

                #8
                Is the project located on the web server?
                Try right clicking on the project name in the Solution Explorer and clicking "build".
                This will compile all of your code and will definitely reset the application domain (if changes are made to the code).

                Comment

                • stefbek97
                  New Member
                  • Aug 2009
                  • 54

                  #9
                  Yest it is located on the web server.Have done that. Still does not work. Just to clarify the restart I have to do is in IIS app pool.

                  Comment

                  • Frinavale
                    Recognized Expert Expert
                    • Oct 2006
                    • 9749

                    #10
                    That's the way I work as well.

                    It makes absolutely no sense for ASP.NET to compile your code if you have already pre-compiled it. The ASP.NET compiler does not compile your code "on the fly" when there is as cached, precompiled version available.

                    Are you absolutely sure that you built the solution without error after making code changes?

                    Comment

                    • stefbek97
                      New Member
                      • Aug 2009
                      • 54

                      #11
                      Absolutely no errors or warnings.

                      Comment

                      • stefbek97
                        New Member
                        • Aug 2009
                        • 54

                        #12
                        Here is the Detailed Compiler Output."If it helps"

                        c:\windows\syst em32\inetsrv> "C:\Windows\Mic rosoft.NET\Fram ework\v3.5\csc. exe" /t:library /utf8output /R:"C:\Windows\a ssembly\GAC_MSI L\System.Servic eModel.Web\3.5. 0.0__31bf3856ad 364e35\System.S erviceModel.Web .dll" /R:"C:\Windows\a ssembly\GAC_MSI L\System.Data.D ataSetExtension s\3.5.0.0__b77a 5c561934e089\Sy stem.Data.DataS etExtensions.dl l" /R:"C:\Windows\a ssembly\GAC_MSI L\System.Web.Ex tensions\3.5.0. 0__31bf3856ad36 4e35\System.Web .Extensions.dll " /R:"C:\Windows\a ssembly\GAC_MSI L\System.Web.Se rvices\2.0.0.0_ _b03f5f7f11d50a 3a\System.Web.S ervices.dll" /R:"C:\Windows\a ssembly\GAC_MSI L\System.Identi tyModel\3.0.0.0 __b77a5c561934e 089\System.Iden tityModel.dll" /R:"C:\Windows\a ssembly\GAC_32\ System.Data\2.0 .0.0__b77a5c561 934e089\System. Data.dll" /R:"C:\Windows\a ssembly\GAC_32\ System.Web\2.0. 0.0__b03f5f7f11 d50a3a\System.W eb.dll" /R:"C:\Windows\a ssembly\GAC_MSI L\System.Web.Mo bile\2.0.0.0__b 03f5f7f11d50a3a \System.Web.Mob ile.dll" /R:"C:\Windows\a ssembly\GAC_MSI L\System.Config uration\2.0.0.0 __b03f5f7f11d50 a3a\System.Conf iguration.dll" /R:"C:\Windows\a ssembly\GAC_MSI L\System\2.0.0. 0__b77a5c561934 e089\System.dll " /R:"C:\Windows\a ssembly\GAC_MSI L\System.Workfl owServices\3.5. 0.0__31bf3856ad 364e35\System.W orkflowServices .dll" /R:"C:\Windows\a ssembly\GAC_32\ System.Enterpri seServices\2.0. 0.0__b03f5f7f11 d50a3a\System.E nterpriseServic es.dll" /R:"C:\Windows\a ssembly\GAC_MSI L\System.Drawin g\2.0.0.0__b03f 5f7f11d50a3a\Sy stem.Drawing.dl l" /R:"C:\Windows\M icrosoft.NET\Fr amework\v2.0.50 727\mscorlib.dl l" /R:"C:\Windows\a ssembly\GAC_MSI L\System.Xml\2. 0.0.0__b77a5c56 1934e089\System .Xml.dll" /R:"C:\Windows\a ssembly\GAC_MSI L\System.Runtim e.Serialization \3.0.0.0__b77a5 c561934e089\Sys tem.Runtime.Ser ialization.dll" /R:"C:\Windows\M icrosoft.NET\Fr amework\v2.0.50 727\Temporary ASP.NET Files\healthgam es_cms_asp.net\ 534a3fdc\8ab2d5 44\assembly\dl3 \a563f03a\aeb41 d32_3e48ca01\He althGames.DLL" /R:"C:\Windows\a ssembly\GAC_MSI L\System.Xml.Li nq\3.5.0.0__b77 a5c561934e089\S ystem.Xml.Linq. dll" /R:"C:\Windows\a ssembly\GAC_MSI L\System.Core\3 .5.0.0__b77a5c5 61934e089\Syste m.Core.dll" /R:"C:\Windows\M icrosoft.NET\Fr amework\v2.0.50 727\Temporary ASP.NET Files\healthgam es_cms_asp.net\ 534a3fdc\8ab2d5 44\assembly\dl3 \18ba3e12\001e1 e5c_92ebc901\Aj axControlToolki t.DLL" /R:"C:\Windows\a ssembly\GAC_MSI L\System.Servic eModel\3.0.0.0_ _b77a5c561934e0 89\System.Servi ceModel.dll" /out:"C:\Windows \Microsoft.NET\ Framework\v2.0. 50727\Temporary ASP.NET Files\healthgam es_cms_asp.net\ 534a3fdc\8ab2d5 44\App_Web_demo graphics.aspx.c dcab7d2.b2ja-z0v.dll" /debug- /optimize+ /win32res:"C:\Wi ndows\Microsoft .NET\Framework\ v2.0.50727\Temp orary ASP.NET Files\healthgam es_cms_asp.net\ 534a3fdc\8ab2d5 44\yvu6wkfa.res " /w:4 /nowarn:1659;169 9;1701 /warnaserror- "C:\Windows\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files\healthgam es_cms_asp.net\ 534a3fdc\8ab2d5 44\App_Web_demo graphics.aspx.c dcab7d2.b2ja-z0v.0.cs" "C:\Windows\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files\healthgam es_cms_asp.net\ 534a3fdc\8ab2d5 44\App_Web_demo graphics.aspx.c dcab7d2.b2ja-z0v.1.cs"

                        Comment

                        • stefbek97
                          New Member
                          • Aug 2009
                          • 54

                          #13
                          ------ Build started: Project: HealthGames, Configuration: Debug Any CPU ------
                          HealthGames -> Z:\HealthGames\ cms\ASP.Net\bin \HealthGames.dl l
                          ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

                          Comment

                          • Frinavale
                            Recognized Expert Expert
                            • Oct 2006
                            • 9749

                            #14
                            I'm not sure what's wrong...
                            Have you tried creating a new website (or virtual directory) using IIS and publishing the application to that website instead?

                            Comment

                            • stefbek97
                              New Member
                              • Aug 2009
                              • 54

                              #15
                              Could it be because the home page to the web site is written in classic asp It compiles fine even after modifying?But the new page, the one i created and modify is asp.net. Could it be that they don't mesh together until restarting the app pool?

                              Comment

                              Working...