Compiler Error Message: CS0103: The name 'CookieManager' does not exist in the current context RRS feed

  • Question

  • Hello, I need some help. I got the following error. Any help will be greatly appreciated. 

    Line 119:        string url = Request.Url.LocalPath.Substring(Request.Url.LocalPath.LastIndexOf("/") + 1);
    Line 120:        string cookieUrl = CookieManager.ReadCookies(Response, Request, Server, "cookieUrl");
    Line 121:        foreach (XmlNode node in d.DocumentElement.ChildNodes)
    Line 122:        {

    Wednesday, January 23, 2019 3:34 AM

All replies

  • Hi Georgexu8,

    Thank you for posting here.

    For your question, the Compiler Error CS0103 is caused by the name you used that does not exist in the class, namespace, or scope. Check the spelling of the name and check your using directives and assembly references to make sure that the name that you are trying to use is available.

    Please check it.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Proposed as answer by Stanly Fan Friday, February 1, 2019 7:38 AM
    Friday, January 25, 2019 7:03 AM