Ok, so I got everything working except for one thing. My program stores text in a settings files (which it saves to and encrypts to wonderfully), but it will only work once. For example, I type in an author, title and body, and click Publish, it publishes and is labeled with a "1.". Restarting the application, you get the desired effect, a decrypted string from the encrypted settings file, now publish another entry, this makes a new line with "vbNewLine" and then encrypts it, fine and dandy. Now apon opening the application again, you get an error stating "Invalid character in a Base-64 string.". What do I do?
Encryption Code: Public Function psEncrypt(ByVal sInputVal As String) As String Dim loCryptoClass As New TripleDESCryptoServiceProvider
I've done some searching on these forums as well as on the Web in general, and while I've found some posts about the error above, I haven't seen anything specific to what I'm experiencing
I am getting following error when I am trying to use Convert.FromBase64String "The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters."
Dim payloadBytes = Convert.FromBase64String(payloadBase64)
Basically when my facebook registration form [URL]mphone field has a dash in it and encoded string is posted to other page and I am trying to decode it there which creates this error. Basically I am trying to extract data from Facebook Signed Request.
where I was encrypting the string and passing it to another web page to decrypt and get the ids to be displayed as a pdf back to the page. I kept getting an invalid "Invalid length for a Base-64 char array". It was then I realised that the string was getting truncated and that the IE Explorer had a size limit for the number of charaters being passes as a querystring.So I think I need to go the route of posting it.But not sure how to go about it.
Private Sub GetReport() Try Dim hawbs As String = String.Empty[code]....
The retrieve document then does: the decrpytion gets the data(ids) and pulls the pdfs.
My program gets an encrpyted query string ,decrypts it and then pulls the pdfs in a popup window depending on the values in the string. The issue I am having is I have around 500 ids that I am passing whose pdfs need to be generated, but I keep getting the "Invalid length for a Base-64 char array".
Not sure what I need to do, I have read through the solutions and have done whatever has been said, with replacing the blank with the "+" but I cannot get this to work.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load _CurrentProcName = "Page_Load"
I'm writing a program and it's got a textbox for the user to enter values. Since the textbox text property should only be a "number", my program need to detect invalid charaters like "*/&()$" and tell the user to only enter a number. Does anyone have an idea how to do that?
' ', hexadecimal value 0x1F, is an invalid character
Here is my function. I get this error when it hits "reader.MoveToContent()" for the first time. Can anyone point me in the right direction?
Public Function GetSyndicationFeedData(ByVal urlFeedLocation As String) As SyndicationFeed Dim settings As New XmlReaderSettings() With { _ .IgnoreWhitespace = True, _
I'm performing an XML.save(filename), but when an invalid character is present, it fails with this error:{"'', hexadecimal value 0x07, is an invalid character."} [code]I've tried playing around with the XML encoding but nothing seems to help.I need to have this data saved, even though its a bunch of odd characters.
Public Shared Function GetData(ByVal id As Integer) As List(Of SomeClass) Dim command As New OracleCommand Dim conn As New OracleConnection(WebConfigurationManager.ConnectionStrings("ConnectionString").ToString) Dim param As New OracleParameter
[code]....
This function is giving an ORA-00911 invalid character error. I have other methods of the same style and these are functioning correctly.
For each character of this string I want a new character out of the string and then remove the character from the list of characters that still maybe used for other characters. It may not get the same character, you could basically just call this encryption, but it's not what I am making. I don't want to waste my time doing this one hour while VB can do this for me in <1 second.
I am writing a hangman type game and I am displaying the word to the user in a label as all *'s, but I cannot figure out how to have just one of the *'s changed in the label to the correct letter when the user inputs the correct letter into the text box and clicks the check letter button.Everything else in the program works perfectly, except for this part.[code]When I use the .Replace it changes all of the *'s to the correct selected letter.
the coding is to 'Get input string and put its character into List, and replace the character with other.'but having problem putting each character into List and also replacing it,[code]
I've been working with the substring command and after coding up all the things I needed it to do, I saw a post on here where the "For Each" statement was used basically to do the same thing.Lets say we just want to take a string apart one character at a time and add each character to a label. Which would be more efficient?I made a cheap example to show ...
Code: ABinary = "0110 1100 0001 1011" For x = 0 To Len(ABinary) - 1
I have asked this question before and used the soln but for some reason it just does not work this time around. Hopefully someone else can see the error/missing element. Iparse a date that is in string format and would like to convert it to a datetime format but cannot figure out how to do this. The date appears as such:
I'm trying to use variables in my connection string to a table adapter. The only clean cut method I've seen is the following, however, I'm getting "Invalid Connection string" upon run-time. I'm assuming maybe this can't be done?
Private Sub adaptertest_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'BCPM_DDBODataSet.LTC_FBS' table. You can move, or remove it, as needed. LTC_FBSTableAdapter.Connection.ConnectionString = "Provider=TDOLEDB;Data Source=TDDEV;Persist Security Info=True;User ID={0};Password={1};Default Database=bcpm_ddbo;Session Mode=ANSI;" Me.LTC_FBSTableAdapter.Fill(Me.BCPM_DDBODataSet.LTC_FBS)
I have a piece of code to debug. Because of unknown bugs it creates a dummy filename. I want to track all the pieces of code who fires that creates the dummy filename, so I can change the dummy file creation to a thrown exception. Since I the dummy filename is stored on a string, I plan to modify that string to contain an invalid NTFS filename, maybe containing invalid chars. Is there a reason to prefer some invalid chars over others? There are some predefined invalid NTFS filename destined to this purpose? (I may think of AUX , COM1 , LPT1 or PRN , but those names run the risk of start sending data to a port instead of throwing an exception).
Before I explain, the connection string I am trying to use is copied directly from elsewhere in the application that has always worked and still does. Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|cdb.rmd; Persist Security Info=False;
My problem is that no matter if I go to "Server Explorer", "Data Sources", or any other option it will not let me add a datasource/database. Up to this point I have done everything at runtime but now due to reporting issues I need to create a dataset in design view.
This is what happens: I click "Add connection..." I choose "Microsoft Access Database File" (Which it is...) I click "Continue" Form shows up with a field for my connection string, which I insert (shown above). I click "Ok"
I get the following error: Format of the initialization string does not conform to specification starting at index 0. The "Test Connection" button is apparently useless as the connection passes even if the field is blank.
I have attempted reducing the connection string to only what is absolutely necessary. I have copied the string directly from connectionstrings.com replacing my filename. I have renamed the file to an .mdb extension. I have used the full path from C: all the way to the file.
I have written this code and tried running it but I am getting errors in the code segments below. The error says "conversion from string to double is invalid". whereas the calculation for 'y' is an addition so should not be giving the value it is giving at the moment. ICCPtotcircuitres is also returning 'nothing'.
Private Function iccptotcircuitres(ByVal x As String, ByVal y As String, ByVal z As String) As String Dim Res As String Res = x + y + z iccptotcircuitres = Res
Dim dbconn As OleDbConnection Dim DBCommand As OleDbDataAdapter Dim DS As New DataSet dbconn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:COLORsitedataCUFORHDR.dbf;Extended Properties=dBASE IV;")
[Code]...
I prefer SQL server but im afraid in this app I have no choice. I think the .DBF file is v III dBase according to a thrid party .dbf viewer. The code explodes on the DBCommand.Fill(DS) line, telling me I have provided and invalid file path. The path is good to go.
Should I be using a driver with a different provider? When I remove the Extended Properties parameter I get an error unrecognizable database format - hinting in this case the path is correct.
I want to know about the problem. My problem is that when I open Visual Data Manager in Visual Basic Project I recieves a message "Invalid String. Looking for the object with ProgID: Visdata.Visdataclass".