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. Server Error in '/' Application

Server Error in '/' Application

Scheduled Pinned Locked Moved ASP.NET
helpcomsysadmindata-structuresdebugging
6 Posts 4 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.
  • U Offline
    U Offline
    User 9123917
    wrote on last edited by
    #1

    Error executing child request for new_Page.aspx. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Error executing child request for new_Page.aspx. Source Error: Line 14: Server.Transfer("new_Page.aspx"); Above is the error found. It works fine in local host but not when I trying to run in on virtual directory. When I deleted the Export Excel Function in my page, the error gone. Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application(); Microsoft.Office.Interop.Excel.Workbook xlWorkbook = xlApp.Workbooks.Add(Microsoft.Office.Interop.Excel.XlWBATemplate.xlWBATWorksheet); Microsoft.Office.Interop.Excel.Sheets xlSheets = null; Excel.Worksheet xlWorksheet = null; Anyone know how to fix this?

    S 1 Reply Last reply
    0
    • U User 9123917

      Error executing child request for new_Page.aspx. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Error executing child request for new_Page.aspx. Source Error: Line 14: Server.Transfer("new_Page.aspx"); Above is the error found. It works fine in local host but not when I trying to run in on virtual directory. When I deleted the Export Excel Function in my page, the error gone. Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application(); Microsoft.Office.Interop.Excel.Workbook xlWorkbook = xlApp.Workbooks.Add(Microsoft.Office.Interop.Excel.XlWBATemplate.xlWBATWorksheet); Microsoft.Office.Interop.Excel.Sheets xlSheets = null; Excel.Worksheet xlWorksheet = null; Anyone know how to fix this?

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      Not sure, are you getting this error: "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack." ?

      Sandeep Mewara [My last article]: Server side Delimiters in ASP.NET[^]

      U 1 Reply Last reply
      0
      • S Sandeep Mewara

        Not sure, are you getting this error: "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack." ?

        Sandeep Mewara [My last article]: Server side Delimiters in ASP.NET[^]

        U Offline
        U Offline
        User 9123917
        wrote on last edited by
        #3

        No. I think it might because of the server doesn't have excel library?? I have no idea how to fix this.

        L 1 Reply Last reply
        0
        • U User 9123917

          No. I think it might because of the server doesn't have excel library?? I have no idea how to fix this.

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

          Member 9169887 wrote:

          I think it might because of the server doesn't have excel library??

          Correct.

          Member 9169887 wrote:

          I have no idea how to fix this.

          Install the Excel-interop libraries.

          Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

          V 1 Reply Last reply
          0
          • L Lost User

            Member 9169887 wrote:

            I think it might because of the server doesn't have excel library??

            Correct.

            Member 9169887 wrote:

            I have no idea how to fix this.

            Install the Excel-interop libraries.

            Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

            V Offline
            V Offline
            Vijay Selvaraj
            wrote on last edited by
            #5

            can you deploy Excel ddl to application path or install Excel InteropServices -Vijay

            L 1 Reply Last reply
            0
            • V Vijay Selvaraj

              can you deploy Excel ddl to application path or install Excel InteropServices -Vijay

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

              Yes, I can. I guess the question should rather be "how do I". Answer is on MSDN[^].

              Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

              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