I am new to VB 2010. Just now i made a program in Vb and published it. In my computer it worked without problems. But in my friends PC, it shows Dont Send Error. I created the program using .NET 3.0 and my friends PC has .NET 4.0 Extended installed.
I made an app in vb.net express edition after publishing there are many files in published folder, my question is if a user removes any of files in the published folder or replaces it with other files and runs the app the app must show an error is it possible?
I have published application before and they all (3 setup files) work fine. The problem is I don't know anymore how I exactly did it. Now I am trying to publish another form which has a connection to my sql database. The publishing goes fine: publishing folder is: C:Movie-databaseApplication 4 and installation folder is the same, and I therefore leave it empty. Application is available only online. But when I execute the published setup.exe I get two windows with no info about the error: see attachment.
I have published application before and they all (3 setup files) work fine. The problem is I don't know anymore how I exactly did it.Now I am trying to publish another form which has a connection to my sql database. The publishing goes fine: publishing folder is: C:Movie-databaseApplication 4 and installation folder is the same, and I therefore leave it empty. Application is available only online.But when I execute the published setup.exe I get two windows with no info about the error: see attachment.
I have a problem.. every program i make in VB.net 2008 express wont start on my friends PC or any other except for mine laptop and mine PC... Instead, they get the "Send/Dont send" error...
First I found that you can catch it and log it inside a catch, but this doesn't send an email. Then I found out about using the Error Signal class. That worked, however what wasn't apparent from reading, is that it treats the error like normal, so when I signal the error it goes to the custom error page still, I don't want that to happen. What I want to do is catch that error, log it, send the email, but stay on the page the error happened so I can provide special feedback. I do not want it go to the custom error page.
This is what I have and it redirects me to the custom error page. Try smtpClient.Send(mailMessage) Catch smtpEx As SmtpException errorSignal.FromCurrentContext().Raise(smtpEx) Catch ex As Exception [Code] .....
I have created an application which listens for strings being sent to my pc from a remote unit. I now need to add the function of sending strings back to the remote unit on a button press. I've searched for ages to find a solution but I'm not knowledgeable enough yet with vb.net to solve this solution.
I'm getting the error with the line opensock2 = New IO.StreamWriter(client.GetStream) saying its not connected. So I seem to need to pass the connection from the background worker to the button click, or have it somewhere else in the code to make it accessible. [Code]
VS 2008, .NET 2, Win XP I need to design some kind of Error reporting. I got the Idea for the design and code but before i begin to code it I need to decide where to put it:
--1. Inside my app in Shared Sub- Can I call it from Another App (No), Can I call it if app crash sudenly?
--2. Inside a separate dll- I think that this is the way to go (i can use it inside this and another app, but can I call it if my app crash sudenly?
--3. Create another "app" to do that- Maybe to complicated for what needs to be done
I need to use that also in another apps so I think that 1. is out and 2. is my preferably solution.
If an error occurs in my application, I'd like an email to be silently sent to me with the error description (as long as the internet connection is established).
I know how to send emails in VB.Net, but I wonder what is the best way to get this done.
Is this something that should be done in a module? I could use some advice on the subject before I start coding.
Although im using this simple logic the image that is being displayed on the remote machine the one that i send is not the same as you can see. In fact 90% is missing! The Image Size is 256KB JPG
I put database in bin->debug and i also call from that folder using DataDirectory Business_Card_Database.accdb when i publish the project database not found error is occur note I also tried
1. System.IO.Path.GetFullPath
2. Application.StartupPath
3. System.IO.Directory.GetDirectories
Above all are not working to find database after published I'm using
I have debugged and published. when i try to install the on ANOTHER system (with xp SP2) it pop up .NET framwork is not installed on that system. i want to know what is the solution for this. If my client does not have .net framwork, does it mean he have to struggle to install my application.
Dim con As New OleDb.OleDbConnection Try con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = D:\project\login.mdb" con.Open() str = "insert into table1 values(" & Text1.text & ",'" & Text2.text & "')" cmd = New OleDbCommand(str, con) cmd.ExecuteNonQuery() [Code] .....
If I insert integer value it will be updated in database every thing is ok but when I want to write some string in my textboxes and want to send them I get connection error.
i make a program with vb.net2005 and database sql express 2005 i would like to press a print buuton to send a parameter in an inputbox to put value in it here is my code:
dim mm1 as string mm1=inputbox("enter number") sqlconection1.open dim cm as sqlclient.sqlcommand cm=new sqlclient.sqlcommand
I am trying to send an email from my program, but am getting an error.The error is: "Mailbox unavailable. The server response was: 5.7.1 Unable to relay"The puzzling thing is that I only get this error with addresses not on our local LAN. This code generates the error:
Private Sub btnSendMail_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSendMail.Click Dim Message As String = "This is a test message to validate the email transmission
I've been using a piece of code I found that reads in joystick movement into my VB application using DirectInput. Building an executable works great, the program operates as should be, however when I publish my program for final deployment[code]...
I made an application in vb 2008 express i used few flash files when m running debug flash files are running when i published the application and installed all r running fine except flash help me where did i made mistake
I have an application that uses some external files. When a button is clicked, it opens 2 excel files and writes to one text file. When I publish this, it does not include those files. How can I make it include those files in the final solution. I have added them into my solution explorer under different folder names but they are not there.
I'm using a dll in my program, it works fine. But when I publish and try to run on another machine, it says the dll is missing.Am I right in saying that I need to add it to my references, with the Add button on the references page? When I do that, it says it's not a valid assembly or com component.
How do I fix this? My level of knowledge is very low, especially with dll's.
i built a very simple application in vb.net, installed it, it worked. then i did some very slight updates, build it, tried to install it but got the following errors. i restarted computer, uninstalled app for the uninstall menu, and tried to run setup.exe and still have been getting this error.
PLATFORM VERSION INFO Windows : 5.1.2600.196608 (Win32NT) Common Language Runtime : 2.0.50727.3053
i have created a simple program which a freind requested to be made for a game.This is what my code is made up of basicly , with different writing to Log.txt file However when i upload my program for him to download. He needs to put it in the exact directory "c:MithrilDragonDropLog" which is a hastle to unzip, cut and paste the folder into there etc. Is there a way that i can program this as to make it write a log.txt into the file which is downloaded without having to move it about in the computer.
I have written a fairly basic application. It reads txt files, loads a SQL, and outputs to text files. The application compiles and publishes without an error. The app works perfectly on my PC. I can not get it to work on any other PC. Application will install without an error but when I try to launch the app, nothing happens. Running out of ideas to try and hoping someone may have some tips or tricks to try and see what is going on that I have not tried.I am running Windows 7 Pro - 64 with Visual Studio 2008. The only references are for .net 2.0 and ADODB.DLL. I have setup the app to include all references as local copy to true.
I have tried installs on Windows 7 Pro, Windows Server 2000, Windows Server 2003, Windows XP Pro, and Windows Vista. All install without error. Have tried installed as user with admin rights and the PC's primary admin account. When you launch the app, there are no messages in all OS except Windows 7. It will basically Flash a message about checking for compatability and run you through a wizard to see if running as XP or Vista works and it doesn't.
I have an XML file in Bin/Debug that I am referencing using the code below. It works fine in testing, but when i publish i get an error seen below the code.
How can I reference this XML file inside of the application?
Dim m_xmld As XmlDocument Dim m_nodelist As XmlNodeList m_xmld = New XmlDocument()