6

मैं this ट्यूटोरियल का अनुसरण कर रहा हूं जो लगभग Table Storage Service है। मैं ट्यूटोरियल के एमुलेटर संस्करण का उपयोग कर रहा हूं जिसे आप पैराग्राफ के बिंदु 5 पर देख सकते हैं "क्लाउड सर्विसेज का उपयोग करते समय अपनी कनेक्शन स्ट्रिंग को कॉन्फ़िगर करना"।विंडोज़ एज़ूर रिमोट सर्वर ने एक त्रुटि लौटा दी: (404) नहीं मिला

public ActionResult About() 
{ 

    // Retrieve the storage account from the connection string. 
    CloudStorageAccount storageAccount = CloudStorageAccount.Parse(
    CloudConfigurationManager.GetSetting("StorageConnectionString")); 

    // Create the table client. 
    CloudTableClient tableClient = storageAccount.CreateCloudTableClient(); 

    // Create the CloudTable object that represents the "people" table. 
     CloudTable table = tableClient.GetTableReference("people"); 

    // Create a new customer entity. 
    CustomerEntity customer1 = new CustomerEntity("Harp", "Walter"); 
    customer1.Email = "[email protected]"; 
    customer1.PhoneNumber = "425-555-0101"; 

    // Create the TableOperation that inserts the customer entity. 
    TableOperation insertOperation = TableOperation.Insert(customer1); 

    // Execute the insert operation. 
    table.Execute(insertOperation); 

    return View();  
} 

इस लाइन table.Execute(insertOperation); में मैं निम्न त्रुटि संदेश मिलता है:: मैं इस्तेमाल किया

StorageException was unhandled by user code The remote server returned an error: (404) Not Found.

प्रोजेक्ट टेम्पलेट था "विंडोज

इस कोड को मैं 'संक्षिप्त विवरण' ActionResult में चिपकाया है Azure क्लाउड सेवा "। अगली खिड़की जो पॉप अप हुई, मैंने केवल "एएसपी.नेट एमवीसी 4 वेब रोल" जोड़ा।

कोई भी इस विचार को उत्पन्न करने वाला कोई विचार है?

उत्तर

5

क्या स्टोरेज एरिया में लोग तालिका मौजूद है? (आप Azure प्रबंधन पोर्टल से देख सकते हैं)

+0

हाय, हाँ ऐसा लगता है कि मैं यह जांचना भूल गया कि तालिका मौजूद है या नहीं। – Yustme

0

मैं एक ही त्रुटि प्राप्त करने के बाद यहां आया था (जब नहीं।)। लेकिन मेरा मामला अलग था, मेरे पास वास्तव में लोगों की मेज थी लेकिन मेरे कोड के साथ समस्या यह थी कि मैं था पंक्ति कुंजी मान अद्यतन करना। मुझे लगता है कि आप केवल अन्य फ़ील्ड अपडेट कर सकते हैं लेकिन विभाजन कुंजी या पंक्ति कुंजी नहीं। अगर किसी और को मेरे जैसा ही मुद्दा मिलता है तो जवाब में इसे जोड़ने का विचार करें।

संबंधित मुद्दे

 संबंधित मुद्दे