gpt4 book ai didi

silverlight - Silverlight,“The type or namespace name 'CookieContainer' does not exist in the namespace 'System.Net'”

转载 作者:行者123 更新时间:2023-12-02 04:14:01 26 4
gpt4 key购买 nike

我正在运行VS2010专业版and I downloaded a sample Silverlight app,使用较旧的版本编写。我做了转换,但是现在当我运行它时,出现了此错误。我搜索了网络,发现的唯一建议是添加对“System.Net”的引用(这没有任何意义,但我还是这样做了),但这没有帮助。令人反感的代码:

public System.Net.CookieContainer CookieContainer {...

最佳答案

默认情况下通常会引用System.Net dll,但也许它不在旧项目中。检查版本号为2.0.5.0,文件路径是否类似于:

c:\ Program Files(x86)\ Reference Assemblys \ Microsoft \ Framework \ Silverlight \ v4.0 \ System.Net.dll

关于silverlight - Silverlight,“The type or namespace name 'CookieContainer' does not exist in the namespace 'System.Net'”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3677143/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com