Deploying Timetracker to a production server

Last post 05-07-2007 11:07 PM by chetan.sarode. 14 replies.

Sort Posts:

  • Deploying Timetracker to a production server

    05-07-2007, 12:07 PM
    • Loading...
    • TallMike
    • Joined on 10-12-2005, 9:56 PM
    • Posts 47

    Hi,

    I finally got my version of timetracker running fairly smooth and want to try and publish it to a production server.

    I deploy the app using the copy web site tool in VS express.  It copies over fine but I am getting errors.  I looked at the web.config file and noticed two setting

    <compilation debug="true"> ....I assume I change this to <compilation debug="false">

    the other setting

    <customErrors mode="RemoteOnly"/> i was going to change to this as well, but not sure what to change it to.

    Is there anything else I should do, be thinking about or read, in order  to deploy to production server?

    Any help would be appreciated

    Thanks,

     Mike

  • Re: Deploying Timetracker to a production server

    05-07-2007, 1:22 PM
    • Loading...
    • jminond
    • Joined on 07-21-2003, 6:33 PM
    • New York
    • Posts 589

    <compilation debug="false"> This is a must for production, unless you need to deploy, like you said you had errors, so you might want to leave as true, untill all errors are sorted.

     

    Jonathan Minond
    http://www.Jonavi.com
    http://www.jonavi.com/Default.aspx?pageID=21
    http://RainbowBeta.com
    http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
    http://dotnetslackers.com/community/blogs/jminond/default.aspx
  • Re: Deploying Timetracker to a production server

    05-07-2007, 1:25 PM
    • Loading...
    • jminond
    • Joined on 07-21-2003, 6:33 PM
    • New York
    • Posts 589

    <compilation debug="false"> This is a must for production, unless you need to deploy, like you said you had errors, so you might want to leave as true, untill all errors are sorted.

    You may want to look into asp.net 2.0 precompilation options, and web deployment projects for precompiling, and defining deployment rules.

    [ http://weblogs.asp.net/scottgu/archive/2005/11/06/429723.aspx ]

    <customErrors mode="RemoteOnly"/>  -- Decides if you should dsiplay server errrors, or hide them allowing for a custom "polite" error page you design.

    Options are RemoteOnly, meaning if you are on the local server, you will get yellow screen messages, if you are a remote client you will get IIS style errors.

    <customErrors mode="Off"/> - Always show the real yellow screen errors

    Another thing you may want to think about is <Trace enabled="" /> On or Off, Off is more perfomrnace, trace lets you get information.

     

     

    Jonathan Minond
    http://www.Jonavi.com
    http://www.jonavi.com/Default.aspx?pageID=21
    http://RainbowBeta.com
    http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
    http://dotnetslackers.com/community/blogs/jminond/default.aspx
  • Re: Deploying Timetracker to a production server

    05-07-2007, 1:29 PM
    • Loading...
    • TallMike
    • Joined on 10-12-2005, 9:56 PM
    • Posts 47

    I don't have any errors when I run it from VS express.  Only when I use copy web site and move it to my Win 2003 server.  Then I get the error below.  I did add the <customErrors mode="Off"/>, but I still get the error.

    Runtime Error

    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

    <!-- Web.Config Configuration File -->
    
    <configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration>

  • Re: Deploying Timetracker to a production server

    05-07-2007, 1:35 PM
    • Loading...
    • jminond
    • Joined on 07-21-2003, 6:33 PM
    • New York
    • Posts 589

    Once you added customErrors off, what is the error you are getting?

    The problems could be any number of things.

    Can you post your entire web.config file, that you delpoyed to production?

    Jonathan Minond
    http://www.Jonavi.com
    http://www.jonavi.com/Default.aspx?pageID=21
    http://RainbowBeta.com
    http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
    http://dotnetslackers.com/community/blogs/jminond/default.aspx
  • Re: Deploying Timetracker to a production server

    05-07-2007, 1:52 PM
    • Loading...
    • TallMike
    • Joined on 10-12-2005, 9:56 PM
    • Posts 47
    I get the error listed in a reply above.  I get this no matter what changes I make to the web.config file.  I started and stopped the web site so the changes would persit through, but this didn't seem to help.  The site works fine when I run it from VS express.  It looks like it copies over.  I did make a simple ASP.NET app using notepad earlier and that worked.
  • Re: Can you post your entire web.config file, that you delpoyed to production?

    05-07-2007, 1:56 PM
    • Loading...
    • TallMike
    • Joined on 10-12-2005, 9:56 PM
    • Posts 47

    Not sure what you mean by this......Can you post your entire web.config file, that you delpoyed to production?

    My web.comfig did get copied to IIS, it is under a website I created called "test1"  it worked earlier with another test app.  Some of the changes I made to web.config I made using Notepad and saved it back

  • Re: Deploying Timetracker to a production server

    05-07-2007, 1:59 PM
    • Loading...
    • jminond
    • Joined on 07-21-2003, 6:33 PM
    • New York
    • Posts 589

    You have not posted any actual error. You posted the yellow screen requesting that you turn custom errors off to view the real error.

    I still have not seen the actual error message.

    You need to modify the web.config on production as stated above, to get a different message, something with an exception of some sort.

     

    Jonathan Minond
    http://www.Jonavi.com
    http://www.jonavi.com/Default.aspx?pageID=21
    http://RainbowBeta.com
    http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
    http://dotnetslackers.com/community/blogs/jminond/default.aspx
  • Re: Can you post your entire web.config file, that you delpoyed to production?

    05-07-2007, 2:00 PM
    • Loading...
    • jminond
    • Joined on 07-21-2003, 6:33 PM
    • New York
    • Posts 589

    I mean... can you copy paste your web.config and post it here. Feel free to block your connections strings and other security info. I just want to see the web.config to see if we can spot any issues there.

     

    Jonathan Minond
    http://www.Jonavi.com
    http://www.jonavi.com/Default.aspx?pageID=21
    http://RainbowBeta.com
    http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
    http://dotnetslackers.com/community/blogs/jminond/default.aspx
  • Re: Can you post your entire web.config file, that you delpoyed to production?

    05-07-2007, 2:07 PM
    • Loading...
    • TallMike
    • Joined on 10-12-2005, 9:56 PM
    • Posts 47

     Below is my web.config.  I added the cutom error mode = "Off", but still get the same error (or lack of Error) page I pasted above.  This site started as the Timetracker starter kit.  All but a couple of entries (attributes) on the file was created by MS.

      

    <?xml version="1.0"?>
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
     <connectionStrings>
      <remove name="LocalSqlServer" />
      <add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;AttachDBFilename=|DataDirectory|TimeTracker.mdf;User Instance=true" />
      <add name="aspnet_staterKits_TimeTracker" connectionString="Data Source=.\SQLExpress;Integrated Security=True;AttachDBFilename=|DataDirectory|TimeTracker.mdf;User Instance=true" />
      <add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\TimeTracker.mdf;Integrated Security=True;User Instance=True"
       providerName="System.Data.SqlClient" />
     </connectionStrings>
     <system.web>

     


     <customErrors mode="Off"/>

     

      <httpHandlers>
       <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
        validate="false" />
      </httpHandlers>
      <siteMap defaultProvider="AspNetXmlSiteMapProvider" enabled="true">
       <providers>
        <clear/>
        <add name="AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
       </providers>
      </siteMap>
      <authentication mode="Forms">
       <forms loginUrl="~/TimeTracker/login.aspx"/>
      </authentication>
      
    <compilation debug="false">
       <assemblies>
        <add assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
       </assemblies>
       <buildProviders>
        <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
       </buildProviders>
      </compilation>
      <customErrors mode="RemoteOnly"/>
      <machineKey decryptionKey="AutoGenerate,IsolateApps"/>
      <roleManager enabled="true"/>
     </system.web>
    </configuration>

  • Re: Can you post your entire web.config file, that you delpoyed to production?

    05-07-2007, 2:29 PM
    • Loading...
    • jminond
    • Joined on 07-21-2003, 6:33 PM
    • New York
    • Posts 589

    At the top of ytour web.config you have <customErrors mode="Off"/>

    At the bottom you still have <customErrors mode="RemoteOnly"/>
    Get rid of "<customErrors mode="RemoteOnly"/>"

    And leave only <customErrors mode="Off"/>

     Then lets see if we get a real error.

     Basically your second entry is overwritting the first one, so <customErrors mode="Off"/> is not actually taking effect.

    Jonathan Minond
    http://www.Jonavi.com
    http://www.jonavi.com/Default.aspx?pageID=21
    http://RainbowBeta.com
    http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
    http://dotnetslackers.com/community/blogs/jminond/default.aspx
  • Re: Can you post your entire web.config file, that you delpoyed to production?

    05-07-2007, 2:39 PM
    • Loading...
    • TallMike
    • Joined on 10-12-2005, 9:56 PM
    • Posts 47

    I went into explorer and opened the web.config in notepad.  I deleted "<customErrors mode="RemoteOnly"/>", saved it

    stop and started the site, but still get the same error.  going to lunch

    Mike

  • Re: Can you post your entire web.config file, that you delpoyed to production?

    05-07-2007, 3:26 PM
    Answer
    • Loading...
    • TallMike
    • Joined on 10-12-2005, 9:56 PM
    • Posts 47
    I changed the site to support ASP.NET 2.0 in IIS, it was set to 1.0.  Once I changed this it worked fine.  The site probably couldn't read the config file at all.  Now I'm getting errors related to my report viewer.
  • Re: Can you post your entire web.config file, that you delpoyed to production?

    05-07-2007, 3:27 PM
    Answer
    • Loading...
    • TallMike
    • Joined on 10-12-2005, 9:56 PM
    • Posts 47
    I changed the site to support ASP.NET 2.0 in IIS, it was set to 1.0.  Once I changed this it worked fine.  Smile  The site probably couldn't read the config file at all.  Now I'm getting errors related to my report viewer.
  • Re: Can you post your entire web.config file, that you delpoyed to production?

    05-07-2007, 11:07 PM
    Thats nice Smile
    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
Page 1 of 1 (15 items)