我有一個在我的WinXP機器上工作得很好的應用程序。但是,當我嘗試在我的Win7機器上運行它時,它會在嘗試加載嵌入資源時失敗。資源都在那裏(我可以看到他們使用反射器)。在Windows 7上加載嵌入的資源
失敗的線是所有形式:
Splash.Image = new Bitmap(typeof(ContainerForm).Assembly.GetManifestResourceStream("SplashTest.Resources.Logo.gif"));
他們都失敗,並在相同的異常:
Exception='System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap..ctor(Stream stream)
我不明白爲什麼這不是對我的工作的Win7機器,但在我平時的WinXP開發機器上。
任何想法?