I recently created an application in Visual Studio 2015 following the link: https://azure.microsoft.com/en-in/documentation/articles/documentdb-dotnet-application/
But when I build the solution, it showed me the following error:
Value cannot be
null.
Parameter name:uriString
Line 71:public static void Initialize()
Line 72:{
Line 73:client = new DocumentClient(new Uri(ConfigurationManager.AppSettings["https://<db-name>.documents.azure.com:443/"]), ConfigurationManager.AppSettings["<db-key>"]);
Line 74:CreateDatabaseIfNotExistsAsync().Wait();
Line 75:CreateCollectionIfNotExistsAsync().Wait();Source File:
C:\Users\BHAVIN PATEL\Documents\Visual Studio 2015\Projects\documentdb-dotnet-todo-app-master\src\DocumentDBRepository.csLine: 73
I have inserted the URI and Primary/Secondary Key in Web.config file of my application from the DocumentDB application created in Azure.


appSettingwith the key "bhavin-patel.documents.azure.com:443" in your App.config? - diiN__________