找不到Web应用程序 [英] Web application could not be found
本文介绍了找不到Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i我正在使用vs 3.5框架,当我尝试调试它时在第一行给出错误
无法找到http:// enk-msos-soft3 /的Web应用程序
i am using vs 3.5 framework when i try to debug it giving error at first line that
"The Web application at http://enk-msos-soft3/ could not be found"
SPSecurity.RunWithElevatedPrivileges(delegate()
{
string site_Str = "http://enk-msos-soft3/";
SPSite oSiteCollection = new SPSite(site_Str);
// SPSite oSiteCollection = new SPSite("http://enk-msos-soft3/");
SPWeb oWebsiteRoot = oSiteCollection.OpenWeb();
oWebsiteRoot.AllowUnsafeUpdates = true;
SPList ListCompliance = oWebsiteRoot.Lists["Employment Activity"];
SPQuery queryfilteremp = new SPQuery();
});
但在Windows应用程序中使用相同的代码是否可以更改Web应用程序中的代码
请看这个问题
谢谢
but same code working in windows application is there anything to change code in web application
Please see regarding this issue
Thanks
推荐答案
这是因为此URI没有HTTP服务。我也看到他的页面找不到。怎么会有问题?使用一些真正有效的URI。 :-)
毕竟,如果您不确定您的代码是否正确,请尝试使用一些可用的Web浏览器或其他HTTP客户端(下载器,用于例子)......
-SA
This is because there is no HTTP service at this URI. I also see that his page is not found. How can it be a problem? Use some URI which really work. :-)
After all, if you are not sure that your code is correct, try your URI with some available Web browser or other HTTP client (a downloader, for example)…
—SA
这篇关于找不到Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文