visual-studio-languages-forums,net-framework-forums,visual-basicRelated issues-Collection of common programming errors
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
My program is calling a dialog which I coded to have 3 radio button, I can’t understand why there is a debug assertion failed at dlgdata.cpp line 308 when it is trying to create the dialog, my program can work as expected if I just ignore the assertion message. This is my codevoid CPrintDlg::DoDataExchange(CDataExchange* pDX){CDialog::DoDataExchange(pDX);//{{AFX_DATA_MAP(CPrintDlg)DDX_Radio(pDX, IDC_RADIO_ALL, m_PrintAll);//this is the line that result in assertion failureDDX_Radio(pDX, IDC_RAD
msdn
visual-studio-languages-forums net-framework-forums visual-basic
Hello All,Every time when I try to send emails to external Email ids using SMTPClient, it is failing (not sending and no error message). However, when I try to send Emails to my internal staff, it is working fine. I cant find the reason why it is not sending to ExternalContacts. All of these external contacts have been added in the Exchange serber 2010 Mail contacts.Below is my code. Please have a look PublicSharedSubSendMailMessage(ByValHostname AsString,ByValPortno AsString,ByValfrom AsSt
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
This is my second request for help on this problem. It occurs on my VS2012Ex and my NEW install of VS2010Ex.I first installed VS2012Ex, but because of it’s lack of WinCLI templates I decided to install VS2010Ex Cpp.I’m running Win7. I installed VS from the Admin account, I am an admin as well.Having touched of changed ANYTHING I simply opens the newly installed VS2010Ex Cpp and selectedcreate a new Win32 Console app. After a few moments it created a simple Cpp app with this code(created by
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
I have two processors – each with 8 cores with NUMA enabled with Hyperthreading disabled.So totally 16 cores i have.Each processor have its own NUMA node.My requirements is like, I need to run the process (say P1) in Processor1 and Core 1. This process P1, also creates two threads (Say T1 and T2). T1 should run on Processor1 Core 3 and T2 on Processor2 Core 2. Basically to check the performance on Reading and writing between two NUMA nodes with different threads.When i try t
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
I’m traying to compile a solution with VS 2005 RC1 but I get the following error Application failed to initialize properly 0xc0150002, the projects inside my solution all are configure to generate an EMBEDED MANIFEST. I used NTSD and I get the following error LdrpWalkImportDescriptor( ) failed to probe xx.dll for its manifest I review the Event Viewer and I found the following error Dependent Assembly Microsoft.VC80.DebugCRT could not be found and Last Error was The referenced assembly is
msdn
visual-studio-languages-forums net-framework-forums visual-basic
Hello,I just started to receive this error all of the sudden. I am using VB.Net 2012, and ODBCConnection to connect to an Access database. I have an SQL string that is used to retrieve data from two tables for one parameter value at a time. Exact string is below:”SELECT CStr([trf01_exportdata.lyid]) & ‘_’ & CStr([trf01_exportdata.actid]) & ‘_’ & [trf01_exportdata.seqrank] AS entryid, mdl01_layers.layername, ‘Seq ‘ & CStr([trf01_exportdata.seqno]) & ‘-‘ & [trf01_e
msdn
visual-studio-languages-forums net-framework-forums visual-c-
Hi,I need to copy a file to the local machine from a UNC path. Before issuing a File.Copy, I check whether the file exists using FileInfo.Exists. This returns a false intermittently even though I have access. After it fails, if I manually open the pathand re-run the code, it returns a true for file.exists and can copy the file too. Could you please help me with this issue?
msdn
visual-studio-languages-forums windows-desktop-development-forums c-standards-extensions-and-interop
Hi i got a dll from a third party. When I try using it, I see this error generated through the trace window (visual studio 6)LDR: LdrpWalkImportDescriptor() failed to probe c:\MyProject\ltfil15u.dll for its manifest, ntstatus 0xc0150002what does it mean? The app refuses to load after that error is generated.I have copied all the required DLL’s in the project directory. I have also checekd the DLL’s dependency using the Visual studios Depends.exe tool and it is not showing any error.Thanks in Adv
msdn
msdn
visual-studio-languages-forums net-framework-forums visual-basic
Here is the error I get when trying to debug my program: The “ResolveAssemblyReference” task failed unexpectedly.System.IO.FileLoadException: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) at System.Reflection.AssemblyName.nToString() at Microsoft.Build.Tasks.ReferenceTable.MarkReferencesForExclusion(Hashtable exclusionList) at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute(FileExists fileExists, Directo
msdn
net-framework-forums net-framework-setup-and-servicing
Dear .Net framework setup experts,Please help, I am running vista business and here the error log.[04/30/08,15:21:02] setup.exe: [2] ISetupManager::AddGlobalCustomProperty() called with an existing custom property (GUID)[04/30/08,15:21:02] Microsoft .NET Framework 3.5 ‘package’: [2] Error – file does not exist: d:\setup\..\wcu\dotnetframework\dotnetfx35\x86\netfx35_x86.exe[04/30/08,15:21:03] setup.exe: [2] ISetupComponent::Pre/Post/Install() failed in ISetupManager::InternalInstallManager() with
msdn
net-framework-forums windows-presentation-foundation-wpf
hi all :I want to host a winform including a webBrowser controller into WPF, but I failed.1. I create a “windowControlLibrary” project, named “test” . Insert a webbrowser controller into the “UserControl1” form , and keep it display web page well, create a .snk file and set it the sign of the project.2. create a wpf project. insert a canvas into the “window1”.C#:WindowsFormsHost host = new WindowsFormsHost(); test.UserControl1 uc = new UserControl
msdn
net-framework-forums windows-presentation-foundation-wpf
Hi, Whenever I start my project I get this exception in the VS output window. Failed to load metadata assembly System.Windows.Controls.Layout.Toolkit.Design, Version=3.5.40128.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptionsproperty for more information.. Stack Trace: at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
msdn
net-framework-forums net-framework-setup-and-servicing
I tried installing .NET framework 4 RTM using three different installers from Visual Studio 2010 Ultimate RTM, Visual Studio 2010 Express and the web installer. on Windows 7 x64 but they both fail with error code 1603. I noticed that one msi which wheninstalled by itself installs a component called .net framework client profile fails in the log file. It fails and says the system administrator has set policies to prevent this installation. What do I do to solve this problem?
msdn
visual-studio-languages-forums net-framework-forums visual-basic
Hello All,Every time when I try to send emails to external Email ids using SMTPClient, it is failing (not sending and no error message). However, when I try to send Emails to my internal staff, it is working fine. I cant find the reason why it is not sending to ExternalContacts. All of these external contacts have been added in the Exchange serber 2010 Mail contacts.Below is my code. Please have a look PublicSharedSubSendMailMessage(ByValHostname AsString,ByValPortno AsString,ByValfrom AsSt
msdn
net-framework-forums windows-presentation-foundation-wpf
I have a problem to bind data to custom control – the textBlock2 text failed to display, please help!I have created a user control consists two textblocks, I need to bind data to the second textblock:<UserControl x:Class=”WpfApplication1.UserControlTest”xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation”xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006″ xmlns:d=”
msdn
visual-studio-languages-forums net-framework-forums visual-basic
Hello,I just started to receive this error all of the sudden. I am using VB.Net 2012, and ODBCConnection to connect to an Access database. I have an SQL string that is used to retrieve data from two tables for one parameter value at a time. Exact string is below:”SELECT CStr([trf01_exportdata.lyid]) & ‘_’ & CStr([trf01_exportdata.actid]) & ‘_’ & [trf01_exportdata.seqrank] AS entryid, mdl01_layers.layername, ‘Seq ‘ & CStr([trf01_exportdata.seqno]) & ‘-‘ & [trf01_e
msdn
visual-studio-languages-forums net-framework-forums visual-c-
Hi,I need to copy a file to the local machine from a UNC path. Before issuing a File.Copy, I check whether the file exists using FileInfo.Exists. This returns a false intermittently even though I have access. After it fails, if I manually open the pathand re-run the code, it returns a true for file.exists and can copy the file too. Could you please help me with this issue?
msdn
net-framework-forums windows-presentation-foundation-wpf
Hi,I have a slider and a textbox. The textbox i bound to the value of the slider. The SourceUpdateTrigger is set to PropertyChanged, to have the slider reflect user input in the textbox. It looks something like this:<Slider Name=”mySlider” Value=”{Binding Path=myValue}”/><TextBox Name=”myTextBox”Text=”{Binding ElementName=mySlider, Path=Value, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}” />I can add a validation rule and also filter n
msdn
net-framework-forums windows-presentation-foundation-wpf
I am creating a System.Windows.Window from my web browser plugin to create an overlay over the browser window that the user can draw on. The idea is that the window needs to stay above the browser window at all times but, like the browser, it needs to move behind other top-level frame windows when these other windows are activated by the user.I am using SetWinEventHook to listen for when other frames are activated and when that happens I turn off the topmost property on my WPF window.
msdn
visual-studio-languages-forums net-framework-forums visual-basic
Hello All,Every time when I try to send emails to external Email ids using SMTPClient, it is failing (not sending and no error message). However, when I try to send Emails to my internal staff, it is working fine. I cant find the reason why it is not sending to ExternalContacts. All of these external contacts have been added in the Exchange serber 2010 Mail contacts.Below is my code. Please have a look PublicSharedSubSendMailMessage(ByValHostname AsString,ByValPortno AsString,ByValfrom AsSt
msdn
visual-studio-languages-forums net-framework-forums visual-basic
Hello,I just started to receive this error all of the sudden. I am using VB.Net 2012, and ODBCConnection to connect to an Access database. I have an SQL string that is used to retrieve data from two tables for one parameter value at a time. Exact string is below:”SELECT CStr([trf01_exportdata.lyid]) & ‘_’ & CStr([trf01_exportdata.actid]) & ‘_’ & [trf01_exportdata.seqrank] AS entryid, mdl01_layers.layername, ‘Seq ‘ & CStr([trf01_exportdata.seqno]) & ‘-‘ & [trf01_e
msdn
visual-studio-languages-forums net-framework-forums visual-basic
Here is the error I get when trying to debug my program: The “ResolveAssemblyReference” task failed unexpectedly.System.IO.FileLoadException: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) at System.Reflection.AssemblyName.nToString() at Microsoft.Build.Tasks.ReferenceTable.MarkReferencesForExclusion(Hashtable exclusionList) at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute(FileExists fileExists, Directo
msdn
visual-studio-languages-forums net-framework-forums visual-basic
I am trying to do a remote WMI query to retrieve data from another server.The query is running under the credentials of another user but fails after trying to read the results.I have successfully read data from “Win32_OperatingSystem” & “Win32_Volume” without any issue.If my credentials are used (admin on the server) then the “Win32_ServerFeature” works so it appears to be some additional permission that is needed which is not needed for the other 2 queries.The user which I am using to acces
msdn
visual-studio-languages-forums net-framework-forums visual-basic
Hi All,Having a strange problem with copying a directory in my software. I’ve narrowed down the reason for the failing directory copy to a temporary file (~$<filename> not copying) – and I’ll be able to deal with that with the IT department (as I can’t deleteit)…However what’s confusing me is how I am able to manually right-click, copy, then paste the exact same directory, to the exact same location without a problem. Any ideas which settings I should have for this? Or is there a differe
msdn
visual-studio-languages-forums net-framework-forums visual-basic
Hello,I am trying to convert excel file to tab-delimited text.I am able to connect to the excel however, the selection of data from Excel file failed. “Could not find [Sheet1$].Here is my code //////////////////////////////////////////////</code> Public Sub ExcelToTabDelimitedText(ByVal excelFile As String, ByVal txtFileName As String)Dim StrConn As StringDim DA As New OleDbDataAdapterDim DS As New DataSetDim Str As StringDim ColumnCount As IntegerDim OuterCount As IntegerDim InnerCou
msdn
visual-studio-languages-forums net-framework-forums visual-basic
I have a TextBox on a TabControl TabPage that is bound to a Column in an SQL Server 2008 Db Table. I’m aware of the problems of Controls on a TabControl:-‘ Controls contained in a TabPage are not created until the tab page is shown, ‘ and any data bindings in these controls are not activated until the tab page is shown. Dim intTab As Integer = 0For intTab = 0 To Me.tabClients.TabCount – 1Me.tabClients.TabPages(intTab).Show()NextSo I handle that issue with the above code in the Form_S
msdn
visual-studio-languages-forums net-framework-forums visual-basic
Hello, I have an update query and I’m receiving the error “Failed to convert parameter value from a String to a Int32.” I’m assuming this is because of a format issue… I’m using Text and Date formats. I’ve tried a few things but I’m not sure exactly what is causing this error….. Dim sSQL As String Dim conn As New System.Data.OleDb.OleDbConnection(sConnectionString) Dim cmd1 As New System.Data.OleDb.OleDbCommand(sSQL, conn) Dim sql As String = “UPD
msdn
visual-studio-languages-forums net-framework-forums visual-basic
sqlQRY = “SELECT Drivers.TaxiNumber, Drivers.DriverName, Drivers.DriverKey, Visits.VisitDate, Visits.NumberOfVisits, Visits.BusinessAmount, Visits.Payment, Visits.PaymentEvent ” _ & “FROM (Visits INNER JOIN Drivers ON Visits.DriverKey = Drivers.DriverKey) where Visits.VisitDate >= #”& Format(datetimepicker1.Value, “dd-MMM-yy
msdn
visual-studio-languages-forums net-framework-forums visual-basic
I wish to add refrence with a dll file.But it fail,it show message ‘Make sure dll file is valid assembly or COM component ‘.Anyone have encouter this issue,How can solve it?I also try use regsvr32 to register it,but also fail.Please give some advice.Thank you.
Web site is in building