2015-05-04 42 views
2

當我嘗試加載網站時出現此錯誤。我正在使用最新版本。JSON加載網站時出錯

Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'VirtoCommerce.ApiClient.DataContracts.Stores.Store[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly. 
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. 
Path 'message', line 2, position 13. 

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: Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'VirtoCommerce.ApiClient.DataContracts.Stores.Store[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly. 
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. 
Path 'message', line 2, position 13. 

Source Error: 


Line 174:    //return await response.Content.ReadAsAsync<T>(); 
Line 175: 
Line 176:    var taskObject = await response.Content.ReadAsAsync<T>(); 
Line 177: 
Line 178:    // the following will reduce number of serializations 

Source File: c:\inetpub\wwwroot\Virto\STOREFRONT\ApiClient\BaseClient.cs Line: 176 

回答

0

我們剛剛更新了源代碼,請再試一次。在CMS模塊初始化期間,預期目錄存在錯誤。

您可以通過導航到/ admin url來查看更詳細的異常。

+1

我仍然得到相同的錯誤。 –

+0

和/ admin工作正常。沒有錯誤。現在或之前。 –

+0

如果它部署在天藍色,您可以發送給我一個([email protected])管理網站的地址和登錄名/密碼嗎? – Woland