|
You need to dig further into the exception to find out exactly why it is failing. Without that information it is impossible to offer any better suggestions. Use your debugger and examine all the details inside the exception object.
|
|
|
|
|
That's the problem with showing just the message; try to messagebox "ex.ToString()" and you'll get a lot more details on what went wrong
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Dear all
Here are the exception errors:
System.Net.Mail.SmtpException:Failure sending mail
System.Net.WebException:Unable to connect to the remote server
System.Net.Sockets.SocketException:No connection could be made because Target machine actively refused the connection: 74.125.136.108:587
Thanks
|
|
|
|
|
That error means either there is a firewall in the way between you're machine and the server or there is no server listening on that address/port.
Your connection IP and port values are probably not set correctly.
|
|
|
|
|
If this is the first time you are using your gmail account to send emails programmatically, you'll also need to login to email and there should be a message somewhere in there asking if you are OK with some application trying to send emails using your account.
It's a security feature of gmail. I don't recall where the message showed up, but that happened to me.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hello community,
does anyone know a control which fulfills these requirements:
- Bindable to datacolumns of datetimeoffset type
- Nullable
- offering input assistance, e.g. dropdown-calendar
The datetimepicker control would just hit the spot, but it doesn't deal with datetimeoffset values (which are needed in my case).
I found a Nullable DTP here: Nullable DTP, which works great - on Datetime. Not Datetimeoffset. And as it's derived from Datetimepicker, which uses Datetime, it's no use...
Any hints?
Thanks
Martin
modified 4-May-15 8:27am.
|
|
|
|
|
WPF does
Oh, I'm serious. You can tailor the control as you please, so It wouldn't be a problem.
|
|
|
|
|
Hmm... but can I use WPF controls in Winforms? If yes, how? Winforms may be oldfashioned, but "the customer wants it"...
Thanks
Martin
|
|
|
|
|
|
No, I'm afraid WPF is not an option. My customer wants it done in Winforms, as he doesn't have any IT-people to keep a WPF application running.
Thanks!
Martin
|
|
|
|
|
atrus2711 wrote: he doesn't have any IT-people to keep a WPF application running.
That's a rubbish excuse. You don't need IT people to keep a WPF application running, any more than you need them to keep a WinForms application running.
There are only three reasons I can think of to rule WPF out:
- The computers you're deploying to don't support WPF;
- The computers you're deploying to have really low-end graphics cards which hinder the performance of WPF applications; or
- Your team doesn't have any experience with WPF, and you don't have any time to learn;
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
i wont to make a program can send and reserve data over the Internet like peer to peer ???????? please help quickly!!!!!
|
|
|
|
|
|
Hello !
I'm using VB.net and sql server 2008R2.
Inside my application I have 2 commands : Backup and Restore that create a backup of database and restore a backup file to sql server.
These 2 commands are working , but I have a problem :
The .bak file is not protected , so someone can restore it to a sql server even without my program.
Is there anything that I can do when create the .bak file in order that :
- The file can be restored only within my application
- When I do a restore , to check if the .bak file is a file that is created with my application , otherwise an error should be displayed and no restore should be made.
Thank you !
|
|
|
|
|
satc wrote: s there anything that I can do when create the .bak file in order that :
- The file can be restored only within my application
No. The backup file is written by SQL and you don't have any part or control of that process.
satc wrote: Is there anything that I can do when create the .bak file in order that :
- When I do a restore , to check if the .bak file is a file that is created with my application , otherwise an error should be displayed and no restore should be made.
No, see point 1.
What you CAN do is put the backup files in a location that is protected by normal Windows NTFS security so that only Administrators and the SQL Server process has read and write access to it. Nobody else will be able to see the contents of the folder, nor read/write it even if they knew what the file names were.
satc wrote: Inside my application I have 2 commands : Backup and Restore that create a backup of database and restore a backup file to sql server.
Are you making multiple backup files instead of directly overwriting the previous one? Think about what would happen if your SQL Server died in the middle of overwriting the previous backup file. Just something to think about...
|
|
|
|
|
But after I create the backup , I have a .bak file. Is it possible to do a custom encryption of this file , and to remove encryption before restoring ?
|
|
|
|
|
You could. Depending on the size of the database, this may not be a feasible option as it may take quit a long time to encrypt/decrypt, not to mention available disk space and managing the encryption keys and keeping them secure.
|
|
|
|
|
Ok , but how can I do this process ?
|
|
|
|
|
|
Even if the backup file created by your program is protected, there is nothing to stop an administrator from creating their own backup of the database from SQL, which would not be protected.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Let's suppose that I can prevent this.
My problem is the .bak file . I just want that if someone get this file , I want to prevent that he restore on another server without my program.
|
|
|
|
|
Hi,
I want to drag and drop a cell in datagridview.I can drag and drop a row but I can't a cell. How can I do this?
Thanks
|
|
|
|
|
|
Hi Abhinav S,
Thanks your answer.
I tried the second link you sent and it works but it is emptying the value of moved cell.
I want to change the cells values.
I want to value of column(0) move to column(1) and value of column(1) move to column(0).
I want to transfer value between cells.
Thanks
Emrah
|
|
|
|
|
I created a List, and populated it with an Invoice number and date.
Now I want to delete all the records before the report start date, and after the report stop date.
So I tried this, and now realize theres no way it can work.
I made a copy of the list, and went through the copy, deleting the record in the original.
Trouble is, the original list gets shorter, and the index I used from the copied list no longer matches.
I not sure what to really do here, or how to handle it. Perhaps the RemoveRange would be better to use.
Looking for ideas, or how to acquire the ranges.
'Stage Six, Remove the records not within the date ranges
Dim tSA As New List(Of invoices_by_SA)()
tSA.AddRange(lSA)
Dim lC As Integer = 0
For Each inv As invoices_by_SA In tSA
If (DateTime.Compare(inv.InvoiceDate, p_startDate.ToString("MM/dd/yyyy")) < 0) _
Or (DateTime.Compare(inv.InvoiceDate, p_stopDate.ToString("MM/dd/yyyy")) > 0) Then
lSA.RemoveAt(lC)
End If
lC += 1
Next
|
|
|
|