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. TypeInitializationException

TypeInitializationException

Scheduled Pinned Locked Moved C#
question
3 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.
  • P Offline
    P Offline
    pahluwalia
    wrote on last edited by
    #1

    Hi, I am able to rum my application but now when I package it and install, it gives the TypeInitializationException : The type initializer for "Start" threw an exception ! Start is the name of the namespace which has Main. I was able to install it earlier but I can't seem to think what changed that let to this disaster. Any clues ? Thanks, Paul

    B 1 Reply Last reply
    0
    • P pahluwalia

      Hi, I am able to rum my application but now when I package it and install, it gives the TypeInitializationException : The type initializer for "Start" threw an exception ! Start is the name of the namespace which has Main. I was able to install it earlier but I can't seem to think what changed that let to this disaster. Any clues ? Thanks, Paul

      B Offline
      B Offline
      Broken God
      wrote on last edited by
      #2

      Namespaces are not types, so that couldn't be it. Try to find the real "Start" type. And when exectly does it give the error?

      P 1 Reply Last reply
      0
      • B Broken God

        Namespaces are not types, so that couldn't be it. Try to find the real "Start" type. And when exectly does it give the error?

        P Offline
        P Offline
        pahluwalia
        wrote on last edited by
        #3

        Sorry, but Start is the class in which Main is defined. I have put catch blocks everywhere but it doesn't give any more details.

        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