Exceção após o upgrade da versão compacta da estrutura .net
Atualizei meu projeto do .NET 2.0 para o .NET 3.5 por meio do visual studioProject-> Upgrade Project .
Após a atualização, quando eu compilar o projeto, recebi o erro
'The type 'System.Windows.Forms.DataGridTableStyle' exists in both 'c:\Users\VijayVignesh\Desktop\AGMobile4\Dll\Other\System.Windows.Forms.DataGrid.dll' and 'c:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\System.Windows.Forms.dll''.
Normalmente, duas dlls são referenciadas no meu projetoSystem.Windows.Forms.dll
eSystem.Windows.Forms.DataGrid.dll
. Então, eu decidi removerSystem.Windows.Forms.DataGrid.dll
do projeto.
E quando eu executo o projeto,
public System.Windows.Forms.ImageList imgLstSplashScrn;
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SplashScreen));
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.picBxCompLogo = new System.Windows.Forms.PictureBox();
this.lblWait = new System.Windows.Forms.Label();
this.imgLstSplashScrn = new System.Windows.Forms.ImageList();
this.SuspendLayout();
}
eu recebo a exceção 'Exception was unhandled
'às'this.imgLstSplashScrn = new System.Windows.Forms.ImageList();'
Quando tento lidar com a exceção emInitializeComponent()
chamada, eu recebo a exceção'ObjectDisposedException was unhandled'
.
Como eu resolvo isso ??