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. General Programming
  3. C#
  4. Bug in CSC.Exe

Bug in CSC.Exe

Scheduled Pinned Locked Moved C#
helpcsharpdotnetvisual-studiohardware
3 Posts 3 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.
  • R Offline
    R Offline
    raysot777
    wrote on last edited by
    #1

    I have a very unusual problem: I am using CSC.EXE to compile a small program with a background image on the main form. CSC seems to compile the program successfully, but when I go to run the program, it gives me a Thread exception error. When I debug the application, this is what I get: ================================================= An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "Form1.resources" was correctly embedded or linked into assembly "Pax". baseName: Form1 locationInfo: Pax.Form1 resource file name: Form1.resources assembly: Pax, Version=1.0.1899.20704, Culture=neutral, PublicKeyToken=null ================================================= Now.. If I remove the background image from the form, the program compiles, and runs fine. Using: VS.Net 2003 Enterprise Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322

    R 1 Reply Last reply
    0
    • R raysot777

      I have a very unusual problem: I am using CSC.EXE to compile a small program with a background image on the main form. CSC seems to compile the program successfully, but when I go to run the program, it gives me a Thread exception error. When I debug the application, this is what I get: ================================================= An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "Form1.resources" was correctly embedded or linked into assembly "Pax". baseName: Form1 locationInfo: Pax.Form1 resource file name: Form1.resources assembly: Pax, Version=1.0.1899.20704, Culture=neutral, PublicKeyToken=null ================================================= Now.. If I remove the background image from the form, the program compiles, and runs fine. Using: VS.Net 2003 Enterprise Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322

      R Offline
      R Offline
      Ravindra Sadaphule
      wrote on last edited by
      #2

      Hi Ray, I tried to simulate the program and it works fine. Can you please the send the code? Cheers Ravindra Sadaphule MCSD.NET

      A 1 Reply Last reply
      0
      • R Ravindra Sadaphule

        Hi Ray, I tried to simulate the program and it works fine. Can you please the send the code? Cheers Ravindra Sadaphule MCSD.NET

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Fixed: What I had forgotten (Actually what I had "learned", since I am a C# newbie) is that I need to include the .Resource file in the RSP file used to build the executable: /res:C:\Compiler\Source\Pax\Pax.Form1.resources Once I added this line to the RSP file, it ran flawlessly. Thanks for all of your consideration! Ray

        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