Hi!
I have downloaded Aspose.Words for Cloud - .NET SDK Examples from:
_https://github.com/aspose-words/Aspose.Words-for-Cloud/tree/master/Examples/DotNET_
and want to test ExecuteTemplate.Run();
I have entered the APP SID and APP KEY and uploaded TestExecuteTemplate.doc and TestExecuteTemplateData.txt to my Aspose Cloud account.
When I run RunExamples.cs I get an error:
at Mail_Merge.ExecuteTemplate.Run() in C:\Users\Softwareselskabet\Desktop\Aspose.Words-for-Cloud-master\Examples\DotNET\CSharp\Mail-Merge\ExecuteTemplate.cs:line 28
Exception thrown: ‘Com.Aspose.Storage.ApiException’ in Aspose.Storage-Cloud.dll
error:The remote server returned an error: (401) Unauthorized.
Could someone help me solve the problem?
Complete log:
‘Aspose.Words.Cloud.Examples.CSharp.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\Windows\MicrosoftNet\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘Aspose.Words.Cloud.Examples.CSharp.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\Users\Softwareselskabet\Desktop\Aspose.Words-for-Cloud-master\Examples\DotNET\CSharp\bin\Debug\Aspose.Words.Cloud.Examples.CSharp.exe’. Symbols loaded.
‘Aspose.Words.Cloud.Examples.CSharp.exe’ (CLR v4.0.30319: Aspose.Words.Cloud.Examples.CSharp.exe): Loaded ‘C:\Users\Softwareselskabet\Desktop\Aspose.Words-for-Cloud-master\Examples\DotNET\CSharp\bin\Debug\Aspose.Words-Cloud.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘Aspose.Words.Cloud.Examples.CSharp.exe’ (CLR v4.0.30319: Aspose.Words.Cloud.Examples.CSharp.exe): Loaded ‘C:\Users\Softwareselskabet\Desktop\Aspose.Words-for-Cloud-master\Examples\DotNET\CSharp\bin\Debug\Aspose.Storage-Cloud.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘Aspose.Words.Cloud.Examples.CSharp.exe’ (CLR v4.0.30319: Aspose.Words.Cloud.Examples.CSharp.exe): Loaded ‘C:\Windows\MicrosoftNet\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘Aspose.Words.Cloud.Examples.CSharp.exe’ (CLR v4.0.30319: Aspose.Words.Cloud.Examples.CSharp.exe): Loaded ‘C:\Windows\MicrosoftNet\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘Aspose.Words.Cloud.Examples.CSharp.exe’ (CLR v4.0.30319: Aspose.Words.Cloud.Examples.CSharp.exe): Loaded ‘C:\Windows\MicrosoftNet\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘Aspose.Words.Cloud.Examples.CSharp.exe’ (CLR v4.0.30319: Aspose.Words.Cloud.Examples.CSharp.exe): Loaded ‘C:\Windows\MicrosoftNet\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
‘Aspose.Words.Cloud.Examples.CSharp.exe’ (CLR v4.0.30319: Aspose.Words.Cloud.Examples.CSharp.exe): Loaded ‘C:\Windows\MicrosoftNet\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
Exception thrown: ‘Com.Aspose.Storage.ApiException’ in Aspose.Storage-Cloud.dll
error:The remote server returned an error: (401) Unauthorized.
{“Message”:“Authentication failed!”}
at Com.Aspose.Storage.Api.StorageApi.PutCreate(String Path, String versionId, String storage, Byte[] file)
at Mail_Merge.ExecuteTemplate.Run() in C:\Users\Softwareselskabet\Desktop\Aspose.Words-for-Cloud-master\Examples\DotNET\CSharp\Mail-Merge\ExecuteTemplate.cs:line 28
Exception thrown: ‘Com.Aspose.Storage.ApiException’ in Aspose.Storage-Cloud.dll
error:The remote server returned an error: (401) Unauthorized.
{“Message”:“Authentication failed!”}
at Com.Aspose.Storage.Api.StorageApi.PutCreate(String Path, String versionId, String storage, Byte[] file)
at Document.ConvertToAnyFormat.Run() in C:\Users\Softwareselskabet\Desktop\Aspose.Words-for-Cloud-master\Examples\DotNET\CSharp\Document\ConvertToAnyFormat.cs:line 32
The program ‘[5700] Aspose.Words.Cloud.Examples.CSharp.exe’ has exited with code 0 (0x0).
VS executeTemplate.png (126.7 KB)
RunExamples.png (120.2 KB)
Aspose.png (226.3 KB)
Common.png (155.0 KB)