Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Deployment error

Deployment error

Scheduled Pinned Locked Moved ASP.NET
sysadminhelpcsharpasp-nettutorial
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Clement Siby
    wrote on last edited by
    #1

    I have an ASP.NET website i have just finished developing. Everything works fine on my local machine. However when i deploy it onto the production server i get the following error. Could not find a part of the path 'c:\windows\system32\inetsrv Any ideas what could be causing this problem and how to solve it?

    L 1 Reply Last reply
    0
    • C Clement Siby

      I have an ASP.NET website i have just finished developing. Everything works fine on my local machine. However when i deploy it onto the production server i get the following error. Could not find a part of the path 'c:\windows\system32\inetsrv Any ideas what could be causing this problem and how to solve it?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Are you trying to access/save any file on page load?

      C 1 Reply Last reply
      0
      • L Lost User

        Are you trying to access/save any file on page load?

        C Offline
        C Offline
        Clement Siby
        wrote on last edited by
        #3

        I am writing to error log file in one of the folders in the application

        L 1 Reply Last reply
        0
        • C Clement Siby

          I am writing to error log file in one of the folders in the application

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Can you post the line of code.

          C 1 Reply Last reply
          0
          • L Lost User

            Can you post the line of code.

            C Offline
            C Offline
            Clement Siby
            wrote on last edited by
            #5

            public static class clsSystemUtilities
            {

            //This method writes errors to a file
            public static void WriteErrorToLog(string errorDesc)
            {
                string logFileName;
                StreamWriter strWriter;
            
                logFileName = ConfigurationManager.AppSettings\["ErrorLogFileName"\];
            
                if (File.Exists(logFileName))
                {
                    strWriter = File.AppendText(logFileName);
                }
                else
                {
                    strWriter = File.CreateText(logFileName);
                }
                strWriter.WriteLine();
                strWriter.Write(errorDesc);
            
            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups