本文介绍了找不到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

推荐答案


这篇关于找不到Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-26 14:08
查看更多