1
Vote

Sample Website Error

description

Hi:
 
I received this error when trying to run the CreateTable page in the sample website:
 
The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
 
Source Error:
 
 
Line 7: if (IsPost) {
Line 8: // Remove table if it already exists
Line 9: if (WindowsAzureStorage.TableExists("NewSampleTable")) {
Line 10: WindowsAzureStorage.DeleteTable("NewSampleTable");
Line 11: }

 
Source File: c:\Users\ubermind\Desktop\WindowsAzureStorage.Web\WindowsAzureTables\CreateTable.cshtml Line: 9
 
Stack Trace:
 
 
[FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. ]
System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength) +10553890
System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) +174
System.Convert.FromBase64String(String s) +41
Microsoft.WindowsAzure.StorageCredentialsAccountAndKey..ctor(String accountName, String key) +29
Microsoft.Web.Helpers.SharedKeyLiteAuthenticationScheme..ctor(String accountName, String accountKey) +68
Microsoft.Web.Helpers.WindowsAzureStorage.TableExists(String tableName) +200
ASP._Page_WindowsAzureTables_CreateTable_cshtml.Execute() in c:\Users\ubermind\Desktop\WindowsAzureStorage.Web\WindowsAzureTables\CreateTable.cshtml:9
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197
System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +69
System.Web.WebPages.WebPage.ExecutePageHierarchy() +149
System.Web.WebPages.StartPage.RunPage() +19
System.Web.WebPages.StartPage.ExecutePageHierarchy() +62
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +76
System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContext context) +248
 
Any ideas?

comments