Picture Box

  • Thread starter Thread starter shawrie
  • Start date Start date
S

shawrie

Hello can someone pleeeease help me.

I have a form with a picture box on which displays a simple jpeg. It
was working fine but for some reason now when i run the application i
get a "NotSupportedException was unhandled" error on the following
line

Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"),
System.Drawing.Image)

Shawrie
 
What type of image file is your picture, and how big? What type of
device/emulator are you deploying to?

Peter
 
Hi

the image size is a jpg 10.9kb and worked fine before. The device im
deploying to is Windows Mobile 5.0 Pocket PC Device
 
Have you changed the default namespace in your project, this can change the
resource names. You can use System.Reflection.Assembly to get all of the
resource names in your assembly and check that this is present.

Peter
 
thanks for that but as a newbie how can i check what the default
namespace is? Also when i click on the run button it seems to take a
lot longer to deploy to the connected device

shawrie
 
Can you paste the contents of the Output window in Visual Studio, this will
list the items being copied to the device on deployment. Have you added any
new references to your project recently?

Peter
 
Hi

------ Build started: Project: SwordsMobileSales, Configuration:
Release Any CPU ------
Consider app.config remapping of assembly "System.Windows.Forms,
Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes"
from Version "2.0.0.0" [C:\WINDOWS\assembly\GAC_MSIL
\System.Windows.Forms
\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll] to Version
"2.0.0.0" [C:\Program Files\Microsoft.NET\SDK\CompactFramework
\v2.0\WindowsCE\System.Windows.Forms.dll] to solve conflict and get
rid of warning.
Consider app.config remapping of assembly "System.Drawing,
Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes"
from Version "2.0.0.0" [C:\WINDOWS\assembly\GAC_MSIL\System.Drawing
\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll] to Version "2.0.0.0" [C:
\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE
\System.Drawing.dll] to solve conflict and get rid of warning.
Consider app.config remapping of assembly "System, Culture=neutral,
PublicKeyToken=969db8053d3322ac, Retargetable=Yes" from Version
"1.0.5000.0" [] to Version "2.0.0.0" [C:\Program Files\Microsoft.NET
\SDK\CompactFramework\v2.0\WindowsCE\System.dll] to solve conflict and
get rid of warning.
Consider app.config remapping of assembly "System, Culture=neutral,
PublicKeyToken=969db8053d3322ac, Retargetable=Yes" from Version
"2.0.0.0" [C:\WINDOWS\assembly\GAC_MSIL\System
\2.0.0.0__b77a5c561934e089\System.dll] to Version "2.0.0.0" [C:
\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE
\System.dll] to solve conflict and get rid of warning.
C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\Microsoft.Common.targets : warning MSB3247: Found
conflicts between different versions of the same dependent assembly.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Vbc.exe /noconfig /
imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Drawing,System.Diagnostics,System.Windows.Forms /
nowarn:42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 /
nostdlib /rootnamespace:SwordsMobileSales /sdkpath:"C:\Program Files
\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE" /netcf /doc:obj
\Release\SwordsMobileSales.xml /define:"CONFIG=\"Release
\",TRACE=-1,_MyType=\"WindowsFormsWithCustomSubMain\",PLATFORM=\"AnyCPU
\",PocketPC=TRUE" /reference:"C:\Program Files\Microsoft.NET\SDK
\CompactFramework\v2.0\WindowsCE\Microsoft.WindowsCE.Forms.dll","C:
\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK
\\DesignTimeReferences\Microsoft.WindowsMobile.Forms.dll","C:\Program
Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\
\DesignTimeReferences\Microsoft.WindowsMobile.PocketOutlook.dll","C:
\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE
\System.Data.dll","c:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\\SQL Server\Mobile
\v3.0\System.Data.SqlServerCe.dll",C:\WINDOWS\assembly\GAC_MSIL
\System.Deployment\2.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll,"C:
\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE
\System.dll","C:\Program Files\Microsoft.NET\SDK\CompactFramework
\v2.0\WindowsCE\System.Drawing.dll","C:\Program Files\Microsoft.NET\SDK
\CompactFramework\v2.0\WindowsCE\System.Windows.Forms.DataGrid.dll","C:
\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE
\System.Windows.Forms.dll","C:\Program Files\Microsoft.NET\SDK
\CompactFramework\v2.0\WindowsCE\System.XML.dll" /win32resource:obj
\Release\win32res.obj /main:SwordsMobileSales.frmLogin /debug:pdbonly /
filealign:512 /optimize+ /out:obj\Release\SwordsMobileSales.exe /
resource:obj\Release\SwordsMobileSales.frmAdministrator.resources /
resource:obj\Release\SwordsMobileSales.frmAmend.resources /resource:obj
\Release\SwordsMobileSales.frmCustEnq.resources /resource:obj\Release
\SwordsMobileSales.frmCustHistory.resources /resource:obj\Release
\SwordsMobileSales.frmCustomerStats.resources /resource:obj\Release
\SwordsMobileSales.frmImportData.resources /resource:obj\Release
\SwordsMobileSales.frmCommunication.resources /resource:obj\Release
\SwordsMobileSales.frmCustomerSearch.resources /resource:obj\Release
\SwordsMobileSales.frmCustomerSearchResults.resources /resource:obj
\Release\SwordsMobileSales.frmInformation.resources /resource:obj
\Release\SwordsMobileSales.frmLedgerEnq.resources /resource:obj\Release
\SwordsMobileSales.frmLogin.resources /resource:obj\Release
\SwordsMobileSales.frmMainMenu.resources /resource:obj\Release
\SwordsMobileSales.frmOrderComplete.resources /resource:obj\Release
\SwordsMobileSales.frmOrderLineList.resources /resource:obj\Release
\SwordsMobileSales.frmOrderOptions.resources /resource:obj\Release
\SwordsMobileSales.frmOrderProdEnq.resources /resource:obj\Release
\SwordsMobileSales.frmPayReciept.resources /resource:obj\Release
\SwordsMobileSales.frmPrintInvoice.resources /resource:obj\Release
\SwordsMobileSales.frmProdEnq.resources /resource:obj\Release
\SwordsMobileSales.frmProdGrpSearch.resources /resource:obj\Release
\SwordsMobileSales.frmProdResults.resources /resource:obj\Release
\SwordsMobileSales.frmReSend.resources /resource:obj\Release
\SwordsMobileSales.frmSendDetails.resources /resource:obj\Release
\SwordsMobileSales.frmSysConfig.resources /resource:obj\Release
\SwordsMobileSales.frmSystemData.resources /resource:obj\Release
\SwordsMobileSales.frmTransEnq.resources /resource:obj\Release
\SwordsMobileSales.frmTransInput1.resources /resource:obj\Release
\SwordsMobileSales.frmTransInput2.resources /resource:obj\Release
\SwordsMobileSales.frmTransInput4B.resources /resource:obj\Release
\SwordsMobileSales.frmVisitHistEntry.resources /resource:obj\Release
\SwordsMobileSales.Resources.resources /target:winexe
clsCommunications.vb clsDataAccess.vb frmAdministrator.Designer.vb
frmAdministrator.vb frmAmend.Designer.vb frmAmend.vb
frmCustEnq.Designer.vb frmCustEnq.vb frmCustHistory.Designer.vb
frmCustHistory.vb frmCustomerStats.Designer.vb frmCustomerStats.vb
frmImportData.Designer.vb frmImportData.vb
frmCommunication.Designer.vb frmCommunication.vb
frmCustomerSearch.Designer.vb frmCustomerSearch.vb
frmCustomerSearchResults.Designer.vb frmCustomerSearchResults.vb
frmInformation.Designer.vb frmInformation.vb frmLedgerEnq.Designer.vb
frmLedgerEnq.vb frmLogin.vb frmLogin.Designer.vb
frmMainMenu.Designer.vb frmMainMenu.vb frmOrderComplete.Designer.vb
frmOrderComplete.vb frmOrderLineList.Designer.vb frmOrderLineList.vb
frmOrderOptions.Designer.vb frmOrderOptions.vb
frmOrderProdEnq.Designer.vb frmOrderProdEnq.vb
frmPayReciept.Designer.vb frmPayReciept.vb frmPrintInvoice.Designer.vb
frmPrintInvoice.vb frmProdEnq.Designer.vb frmProdEnq.vb
frmProdGrpSearch.Designer.vb frmProdGrpSearch.vb
frmProdResults.Designer.vb frmProdResults.vb frmReSend.Designer.vb
frmReSend.vb frmSendDetails.Designer.vb frmSendDetails.vb
frmSysConfig.Designer.vb frmSysConfig.vb frmSystemData.Designer.vb
frmSystemData.vb frmTransEnq.Designer.vb frmTransEnq.vb
frmTransInput1.Designer.vb frmTransInput1.vb
frmTransInput2.Designer.vb frmTransInput2.vb
frmTransInput4B.Designer.vb frmTransInput4B.vb
frmVisitHistEntry.Designer.vb frmVisitHistEntry.vb mGlobal.vb "My
Project\AssemblyInfo.vb" "My Project\Resources.Designer.vb"
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmCustEnq.vb(79) : warning BC42104: Variable
'dsCustomerRecord' is used before it has been assigned a value. A null
reference exception could result at runtime.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmCustEnq.vb(80) : warning BC42104: Variable
'dsCustomerBalances' is used before it has been assigned a value. A
null reference exception could result at runtime.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmImportData.vb(51) : warning BC42104: Variable
'dsSystemConfig' is used before it has been assigned a value. A null
reference exception could result at runtime.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmImportData.vb(54) : warning BC42104: Variable
'cmd' is used before it has been assigned a value. A null reference
exception could result at runtime.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmPrintInvoice.vb(122) : warning BC42104: Variable
'rsCustomer' is used before it has been assigned a value. A null
reference exception could result at runtime.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmSendDetails.vb(47) : warning BC42024: Unused
local variable: 'OrderCount'.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmSysConfig.vb(50) : warning BC42104: Variable
'dsSysConfigDetails' is used before it has been assigned a value. A
null reference exception could result at runtime.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmSystemData.vb(68) : warning BC42104: Variable
'dsSysDataDetails' is used before it has been assigned a value. A null
reference exception could result at runtime.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmTransInput1.vb(116) : warning BC42104: Variable
'dsCustomerRecord' is used before it has been assigned a value. A null
reference exception could result at runtime.
SwordsMobileSales -> C:\swords source code\netdevelopment
\SwordsMobileSales\SwordsMobileSales\bin\Release\SwordsMobileSales.exe
Done building project "SwordsMobileSales.vbproj".
------ Deploy started: Project: SwordsMobileSales, Configuration:
Release Any CPU ------
Deploying 'C:\WINDOWS\assembly\GAC_MSIL
\System.Runtime.Serialization.Formatters.Soap\2.0.0.0__b03f5f7f11d50a3a
\System.Runtime.Serialization.Formatters.Soap.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration
\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml
\2.0.0.0__b77a5c561934e089\System.Xml.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms
\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\Accessibility
\2.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System
\2.0.0.0__b77a5c561934e089\System.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System.Data.SqlXml
\2.0.0.0__b77a5c561934e089\System.Data.SqlXml.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System.Drawing
\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System.Security
\2.0.0.0__b03f5f7f11d50a3a\System.Security.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System.Deployment
\2.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll'
Deploying 'C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\bin\Release\SwordsMobileSales.exe'
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped
==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========


I havent added anything recently apart from a deployment project to
the solution

Neil
 
Somewhere in your project you are referencing desktop .NET assemblies. Check
all your references and that any third-party dlls you are referencing are
also built for the .NET Compact Framework and are not desktop dlls.

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

shawrie said:
Hi

------ Build started: Project: SwordsMobileSales, Configuration:
Release Any CPU ------
Consider app.config remapping of assembly "System.Windows.Forms,
Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes"
from Version "2.0.0.0" [C:\WINDOWS\assembly\GAC_MSIL
\System.Windows.Forms
\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll] to Version
"2.0.0.0" [C:\Program Files\Microsoft.NET\SDK\CompactFramework
\v2.0\WindowsCE\System.Windows.Forms.dll] to solve conflict and get
rid of warning.
Consider app.config remapping of assembly "System.Drawing,
Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes"
from Version "2.0.0.0" [C:\WINDOWS\assembly\GAC_MSIL\System.Drawing
\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll] to Version "2.0.0.0" [C:
\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE
\System.Drawing.dll] to solve conflict and get rid of warning.
Consider app.config remapping of assembly "System, Culture=neutral,
PublicKeyToken=969db8053d3322ac, Retargetable=Yes" from Version
"1.0.5000.0" [] to Version "2.0.0.0" [C:\Program Files\Microsoft.NET
\SDK\CompactFramework\v2.0\WindowsCE\System.dll] to solve conflict and
get rid of warning.
Consider app.config remapping of assembly "System, Culture=neutral,
PublicKeyToken=969db8053d3322ac, Retargetable=Yes" from Version
"2.0.0.0" [C:\WINDOWS\assembly\GAC_MSIL\System
\2.0.0.0__b77a5c561934e089\System.dll] to Version "2.0.0.0" [C:
\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE
\System.dll] to solve conflict and get rid of warning.
C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\Microsoft.Common.targets : warning MSB3247: Found
conflicts between different versions of the same dependent assembly.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Vbc.exe /noconfig /
imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Drawing,System.Diagnostics,System.Windows.Forms
/
nowarn:42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 /
nostdlib /rootnamespace:SwordsMobileSales /sdkpath:"C:\Program Files
\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE" /netcf /doc:obj
\Release\SwordsMobileSales.xml /define:"CONFIG=\"Release
\",TRACE=-1,_MyType=\"WindowsFormsWithCustomSubMain\",PLATFORM=\"AnyCPU
\",PocketPC=TRUE" /reference:"C:\Program Files\Microsoft.NET\SDK
\CompactFramework\v2.0\WindowsCE\Microsoft.WindowsCE.Forms.dll","C:
\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK
\\DesignTimeReferences\Microsoft.WindowsMobile.Forms.dll","C:\Program
Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\
\DesignTimeReferences\Microsoft.WindowsMobile.PocketOutlook.dll","C:
\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE
\System.Data.dll","c:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\\SQL Server\Mobile
\v3.0\System.Data.SqlServerCe.dll",C:\WINDOWS\assembly\GAC_MSIL
\System.Deployment\2.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll,"C:
\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE
\System.dll","C:\Program Files\Microsoft.NET\SDK\CompactFramework
\v2.0\WindowsCE\System.Drawing.dll","C:\Program Files\Microsoft.NET\SDK
\CompactFramework\v2.0\WindowsCE\System.Windows.Forms.DataGrid.dll","C:
\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE
\System.Windows.Forms.dll","C:\Program Files\Microsoft.NET\SDK
\CompactFramework\v2.0\WindowsCE\System.XML.dll" /win32resource:obj
\Release\win32res.obj /main:SwordsMobileSales.frmLogin /debug:pdbonly /
filealign:512 /optimize+ /out:obj\Release\SwordsMobileSales.exe /
resource:obj\Release\SwordsMobileSales.frmAdministrator.resources /
resource:obj\Release\SwordsMobileSales.frmAmend.resources /resource:obj
\Release\SwordsMobileSales.frmCustEnq.resources /resource:obj\Release
\SwordsMobileSales.frmCustHistory.resources /resource:obj\Release
\SwordsMobileSales.frmCustomerStats.resources /resource:obj\Release
\SwordsMobileSales.frmImportData.resources /resource:obj\Release
\SwordsMobileSales.frmCommunication.resources /resource:obj\Release
\SwordsMobileSales.frmCustomerSearch.resources /resource:obj\Release
\SwordsMobileSales.frmCustomerSearchResults.resources /resource:obj
\Release\SwordsMobileSales.frmInformation.resources /resource:obj
\Release\SwordsMobileSales.frmLedgerEnq.resources /resource:obj\Release
\SwordsMobileSales.frmLogin.resources /resource:obj\Release
\SwordsMobileSales.frmMainMenu.resources /resource:obj\Release
\SwordsMobileSales.frmOrderComplete.resources /resource:obj\Release
\SwordsMobileSales.frmOrderLineList.resources /resource:obj\Release
\SwordsMobileSales.frmOrderOptions.resources /resource:obj\Release
\SwordsMobileSales.frmOrderProdEnq.resources /resource:obj\Release
\SwordsMobileSales.frmPayReciept.resources /resource:obj\Release
\SwordsMobileSales.frmPrintInvoice.resources /resource:obj\Release
\SwordsMobileSales.frmProdEnq.resources /resource:obj\Release
\SwordsMobileSales.frmProdGrpSearch.resources /resource:obj\Release
\SwordsMobileSales.frmProdResults.resources /resource:obj\Release
\SwordsMobileSales.frmReSend.resources /resource:obj\Release
\SwordsMobileSales.frmSendDetails.resources /resource:obj\Release
\SwordsMobileSales.frmSysConfig.resources /resource:obj\Release
\SwordsMobileSales.frmSystemData.resources /resource:obj\Release
\SwordsMobileSales.frmTransEnq.resources /resource:obj\Release
\SwordsMobileSales.frmTransInput1.resources /resource:obj\Release
\SwordsMobileSales.frmTransInput2.resources /resource:obj\Release
\SwordsMobileSales.frmTransInput4B.resources /resource:obj\Release
\SwordsMobileSales.frmVisitHistEntry.resources /resource:obj\Release
\SwordsMobileSales.Resources.resources /target:winexe
clsCommunications.vb clsDataAccess.vb frmAdministrator.Designer.vb
frmAdministrator.vb frmAmend.Designer.vb frmAmend.vb
frmCustEnq.Designer.vb frmCustEnq.vb frmCustHistory.Designer.vb
frmCustHistory.vb frmCustomerStats.Designer.vb frmCustomerStats.vb
frmImportData.Designer.vb frmImportData.vb
frmCommunication.Designer.vb frmCommunication.vb
frmCustomerSearch.Designer.vb frmCustomerSearch.vb
frmCustomerSearchResults.Designer.vb frmCustomerSearchResults.vb
frmInformation.Designer.vb frmInformation.vb frmLedgerEnq.Designer.vb
frmLedgerEnq.vb frmLogin.vb frmLogin.Designer.vb
frmMainMenu.Designer.vb frmMainMenu.vb frmOrderComplete.Designer.vb
frmOrderComplete.vb frmOrderLineList.Designer.vb frmOrderLineList.vb
frmOrderOptions.Designer.vb frmOrderOptions.vb
frmOrderProdEnq.Designer.vb frmOrderProdEnq.vb
frmPayReciept.Designer.vb frmPayReciept.vb frmPrintInvoice.Designer.vb
frmPrintInvoice.vb frmProdEnq.Designer.vb frmProdEnq.vb
frmProdGrpSearch.Designer.vb frmProdGrpSearch.vb
frmProdResults.Designer.vb frmProdResults.vb frmReSend.Designer.vb
frmReSend.vb frmSendDetails.Designer.vb frmSendDetails.vb
frmSysConfig.Designer.vb frmSysConfig.vb frmSystemData.Designer.vb
frmSystemData.vb frmTransEnq.Designer.vb frmTransEnq.vb
frmTransInput1.Designer.vb frmTransInput1.vb
frmTransInput2.Designer.vb frmTransInput2.vb
frmTransInput4B.Designer.vb frmTransInput4B.vb
frmVisitHistEntry.Designer.vb frmVisitHistEntry.vb mGlobal.vb "My
Project\AssemblyInfo.vb" "My Project\Resources.Designer.vb"
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmCustEnq.vb(79) : warning BC42104: Variable
'dsCustomerRecord' is used before it has been assigned a value. A null
reference exception could result at runtime.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmCustEnq.vb(80) : warning BC42104: Variable
'dsCustomerBalances' is used before it has been assigned a value. A
null reference exception could result at runtime.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmImportData.vb(51) : warning BC42104: Variable
'dsSystemConfig' is used before it has been assigned a value. A null
reference exception could result at runtime.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmImportData.vb(54) : warning BC42104: Variable
'cmd' is used before it has been assigned a value. A null reference
exception could result at runtime.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmPrintInvoice.vb(122) : warning BC42104: Variable
'rsCustomer' is used before it has been assigned a value. A null
reference exception could result at runtime.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmSendDetails.vb(47) : warning BC42024: Unused
local variable: 'OrderCount'.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmSysConfig.vb(50) : warning BC42104: Variable
'dsSysConfigDetails' is used before it has been assigned a value. A
null reference exception could result at runtime.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmSystemData.vb(68) : warning BC42104: Variable
'dsSysDataDetails' is used before it has been assigned a value. A null
reference exception could result at runtime.
C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\frmTransInput1.vb(116) : warning BC42104: Variable
'dsCustomerRecord' is used before it has been assigned a value. A null
reference exception could result at runtime.
SwordsMobileSales -> C:\swords source code\netdevelopment
\SwordsMobileSales\SwordsMobileSales\bin\Release\SwordsMobileSales.exe
Done building project "SwordsMobileSales.vbproj".
------ Deploy started: Project: SwordsMobileSales, Configuration:
Release Any CPU ------
Deploying 'C:\WINDOWS\assembly\GAC_MSIL
\System.Runtime.Serialization.Formatters.Soap\2.0.0.0__b03f5f7f11d50a3a
\System.Runtime.Serialization.Formatters.Soap.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration
\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml
\2.0.0.0__b77a5c561934e089\System.Xml.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms
\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\Accessibility
\2.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System
\2.0.0.0__b77a5c561934e089\System.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System.Data.SqlXml
\2.0.0.0__b77a5c561934e089\System.Data.SqlXml.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System.Drawing
\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System.Security
\2.0.0.0__b03f5f7f11d50a3a\System.Security.dll'
Deploying 'C:\WINDOWS\assembly\GAC_MSIL\System.Deployment
\2.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll'
Deploying 'C:\swords source code\netdevelopment\SwordsMobileSales
\SwordsMobileSales\bin\Release\SwordsMobileSales.exe'
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped
==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========


I havent added anything recently apart from a deployment project to
the solution

Neil

Can you paste the contents of the Output window in Visual Studio, this
will
list the items being copied to the device on deployment. Have you added
any
new references to your project recently?

Peter
 
Back
Top