And here I am with a new problem in my program When I debug it everything works fine (the buttons, progressbars, pinger, spambot,When I compile it and run the Executable file, it works too.When I run the Executable file on another computer (tried on 4 different ones) the program stops working and
I get this error: {$ exception. "Failed to create the form For more information, see Exception.InnerException error: File or assembly \." Microsoft.VisualBasic.PowerPacks, Version = 9.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a \ "or one of its dependencies not found. The system can not find the file specified .."} System.Exception {System.InvalidOperationException}
I am developing an application using Visual Basic .NET 2005. The application works fine in the PC which Im using to develop it. I make the setup.exe I install the application in other PC and the application doesnt work but it I replace the app.exe with the one in my debug folder it will work.
for some reason this works perfectly, when i do it in debug mode it adds the tasks to stagingtable, and then transfers none duplicates to the regular table. However, when i upload it to the server it does not work.
Using bcp As SqlBulkCopy = New SqlBulkCopy(connstring) bcp.ColumnMappings.Add(0, 1) bcp.ColumnMappings.Add(1, 2)
I am writing some code in VB.Net under .NET 2.0 which interfaces with MS Exchange 2003.Because of the Exchange 2003 "requirement" I am forced to write this code using WEBDAV.The code itself is replicating, to some degree,a schedule management process.It's creating Appointments on the Exchange Server in response to inputs from the user and managing it's data internally in a SQL Server database.The problem situation is this: A new person is assigned to be in charge of a meeting. The requirement says the program should generate a meeting cancellation request to the person removed from the meeting (if such a person existed) and a meeting request sent to the new person.In the case of there being an existing person, what appears to happen is this:
The meeting cancellation request
gets sent Exchange barfs and returns status code 500 (internal server error) during the set of requests which send the meeting request to the new person.However! While debugging this particular scenario, it works just fine for me, if I step through the code in the Visual Studio debugger. Left to it's own devices, it fails every time.Just for yuk's sake, I added a Thread.Sleep(500) to the part after sending the cancellation request, and Exchange doesn't barf anymore...
So, my question! If adding a Thread.Sleep to the code causes this error to go away, a race condition is implied, no? But, my code is running under a web application and is a totally single threaded process, from start to finish. The web requests I am sending are all in synchronous mode so this shouldn't be a problem. [code]....
...but a lot of the implementation details are hidden here, as I wrote a set of classes to interface with Exchange WebDAV.
i create a simple webbrowser in a form , it works perfect on debug mode , but in release i always get this page cant not be displayed , no matter the website.
I have attached my project. I have made a web browser I don't get any errors but it doesn't run/debug.I don't know why but i checked everything. If somebody could tell me what's wrong with my project it would be awesomeBill Wiz, on 17 June 2012 - 12:30 PM, said:I have made a web browser I don't get any errors but it doesn't run/debug.[url]...
we have a VB6 program and we now make them w7/office2010 ready.
In one part of the program we open the SelectNamesDialog (Adressbook) from Outlook (is separatly from the user startet) to choise one recipent from the list.
Under WinXp the Adressbook automaticly appears in the foreground. In w7 nothing happens. I try AppActivate and by the first call
I'm attempting to create an app which uses a vendor-supplied Web Service. They provided sample code to show how to work with the Web Service, but all the code is in C#.. not a huge deal.I opened one of their demo projects and it compiles fine, works perfectly.
So, I open up MY project, drop in the converted code and... wait for it... ERROR!Here is the working C# code that IS working:
C# private void DoSomethingWithTheAlarm(G4T.enAlarmAction action) { XML_AlarmClearRequest[] ClearRequest = new XML_AlarmClearRequest[lstAlarms.SelectedItems.Count]; int idx = 0; foreach (ListViewItem lvItem in lstAlarms.SelectedItems) { ClearRequest[idx] = new XML_AlarmClearRequest();
I have a simple form that has some buttons on it that work fine when the code is for single click. I want to make it so you have to double click to fire the sub. I tried just adding Double to the code but the sub wont fire then.
This works:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
But this doesnt??
Private Sub Button1_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.DoubleClick
Why? do I need to add something else?
I looked in the properties of the button but didnt see anything.
The problem is that if you click on the button the sub fires, but then if you hit return it fires again. If I could take the focus off the button that would be fine to.
vb Private Function calcArea() As Decimal Dim height As Decimal Dim width As Decimal ' assigns user input from the two text boxes to the two variables Decimal.TryParse(heightTextBox.Text, height) Decimal.TryParse(widthTextBox.Text, width)
[Code]...
All I did is change the multiply symbol to a divide symbol and now when I try to divide the two Decimal variables Visual Studio says, "Option strict on disallows conversions from 'Decimal' to 'Long'." Not sure where this conversion is happening.I know I'm missing something simple (once again) so if anyone has any advice please let me know.
I have made some changes in my code but when i do debug it doesn't show the changes.For example: In my code i create a simple text file in "C" drive.I have change the path to the desktop and when i do debug it still create it in the "C" drive.
Public Class MyCollection Inherits ObservableCollection(Of MyCollection) Private _Name As String
[code]....
EDIT: I know that I can use DebuggerDisplay, but unfortunately it is very limited. The class in reality is quite complex and I need to have the possibility to define a logic in what I show during debugging, if possible.
I tried using: dim x as double= 10.0 debug.print(x.tostring) in my Visual Studio 2005 program but it doesn't display anything in the immediate window. It works in my Visual Basic Express 2008 program. How can I get it to work in Visual Studio?
I have a UserControl that has a ProgressBar on it. The purpose of the UserControl is to be able to show the progress % on the ProgressBar as text. To do this it uses the MyBase.Paint event. To make it work the ProgressBar is made invisible and the UserControl is 'painted' with an image of the ProgressBar and then the text is painted on top. The UserControl has a Value property that is passed through to the ProgressBar.Value property.
I use this UserControl in two places, on a Splash form (not a standard Splash Screen) and also on the main form of the application. It works on the Splash form but not on the main form - by work I mean that changes to the ProgressBar.Value property cause the ProgressBar to show its progress. The cause appears to be that in the Splash form case the MyBase.Paint event is called as a consequence of calling Me.Refresh in the Set procedure of the UserControl.Value property, in the main form case it isn't, i.e. Me.Refresh isn't causing MyBase.Paint to run.
The main form has two BackgroundWorker components. The first gets called (RunWorkerAsync) from Form_Load after the Splash form has been shown. The BackgroundWorker.ProgressChanged event updates the Value property of the UserControl and it works exactly as intended. The second gets called as a result of a user starting an operation and again the BackgroundWorker.ProgressChanged event updates the Value property of the UserControl but MyBase.Paint doesn't run so the ProgressBar remains resolutely static.
Any ideas why it won't respond to Me.Refresh in one case but does in the other? Happy to make any of the code avaialble but didn't want to fllod the first post with reams of it. Here's what I think are the most relevant code sections. First the UserControl
I have a Form with a Media Player in it. Which plays a Song.
[Code]...
It's playing in the background since the Form is hidden. When I play itin Debug, everything works fine. When I run the app outside Debug, I get this error: [URL] The Music File is there, but strangely, there comes this weird error.
I have one tool which we developed on visual studio 2010. there are basically two parts of my project, one is UI part which i wrote in VB and algorithm part which is in C++ on back end. When we compile C++ part it creates a .dll which is used by my front end VB program.
Now my problem is little weird since i am compiling and deploying this tool on windows xp machine but some of the users are using windows 7 64 bit machines and after running the program for about 5-10 minutes, it crashes on windows 7 with following error
Not enough storage is available to process this command and when i view details of that error, i get the following description.
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.ComponentModel. ************** Loaded Assemblies ************** mscorlib
[Code].....
i am completely clue less for this error since this program works fine on xp but doesn't work on windows 7.
I want to find out the time at which the system is done booting and want to retrieve that time and write it into a text file. I know how to write into a text file, I just need to know the other part-the keyword, if thats what it's called.Is it possible to find out every time a new window is opened ( it can be a n application, an .exe or any ordinary file), to retrieve the name of it and the source ?
Here is the problem in a nutshell I made a prog using newest freebie (vb express)I made my autorun.inf I want this prog to run from a cd, not to install, but to just run.however, some of the old computers around the office do not have the latest .net framework therefor they won't play.as this cd will be redistributed to clientell and i cant go upgrade their comps it is not feesable to just say "well upgrade the computer dummy"I need to know if it's possible to run a starter prog or even a line of code in my main prog that will check their .net ver and if it's not uptodate, i want it to update before running my prog from cd (so that my prog will run on their comp, even if its old)dont kare where update comes from, prefably from cd
I have built a browser, and it runs fine on my computer. I built it using framework 3.5I am trying to put it on my wife's laptop, and I verified that she has the framework 3.5 on her comp. It wont run. It just crashes. Do you know how to fix this?
i have i problem when making some program to backup database sql server 2000. i have task to develop program with requirement like this:
1. this program must backup database from sql server 2000 (success).
2. this program must compress the backup to the smaller size (Not success,because the backup file is more than 3,9 Gb. i am using SharpZip Wrapper and not succes because the size exceeded.)
3.Copy the backup file or compress to another computer (Succes but take a long time because the size of file is more than 3,9 Gb. That's why I want compress the file.)
any one can give me solution for compress large file with size more than 3,9 Gb. This file will continue to grow in size,so i need compress it so i can copy more quickly?
or any one can reference some freeware can do the task?
My code worked find until new .NET(?).Using word interop code (Word 2003) to make word do a mail merge via VB.NET code. I need to search and replace some string. Now this has worked fine before but now whenever the code reaches assigning the string value to the .Selection.Find.Text or .Selection.Find.Replacement.Text it stops dead with SEHexception external component causing error - see full error below.
Simple question that does not seem to be covered: If I use a lot of Debug.WriteLine statements in my code, will they be completely absent in my production version?
I mean: Is the compiler smart enough to not emit any code for those calls? Or would I have to surround them by #if DEBUG..#end if directives?
'insert link sheet1.Hyperlinks.Add(sheet1.Range("P1"), "http://http://www.vbforums.com", "") the code of the button (ribbon)
[CODE]...
When I press the button, it connects to the web site. when the sheet1 is selected, it works, but when the sheet2 is selected, not works, why? the path is sheet1,What's wrong?
I use Visual Studio 2003, VB.net, NetFramework 1.4 and Windows XP I have been using the following Code Snippet for a number of years in both Web Services and Windows Applications. However suddenly around the 29th September 2010 it has stopped sending E-Mails from both Web Services and Windows Applications. The same problem has happened not only to my own Network but on two other Networks, one using XP as its Server and the other using Server 2003. All 3 of these are using different ISPs.