简体   繁体   English

将ASP.net Web表单项目复制到另一台服务器; using子句是正确的,但某些静态类无法识别

[英]Copied ASP.net web forms project to another server; using clauses are correct, but some static classes are not recognizable

Ok, so I am maintaining some legacy web form web site application. 好的,所以我要维护一些旧式Web表单网站应用程序。 On old box, the links between the projects are ok and intelisense recognizes the static public classes. 在旧的框上,项目之间的链接可以,并且智能识别静态的公共类。 After moving the project to a new and faster development box, web forms do not "see" the utility classes. 将项目移至新的更快的开发盒之后,Web表单不会“看到”实用程序类。 Eg: 例如:

AspCommonCode.cs -- project AspCommonCode.cs-项目

foobar - website project foob​​ar-网站项目

While in the codebehind program called webform.aspx.cs I cannot see a common piece of code in AspCommonCode.cs in intelisense and the code does not compile because it cannot find the new static, public method in AspCommonCode. 在名为webform.aspx.cs的代码隐藏程序中,我看不到intelisense的AspCommonCode.cs中的通用代码,并且代码无法编译,因为它无法在AspCommonCode中找到新的静态公共方法。

webform.aspx.cs: webform.aspx.cs:

    using AspCommonCode;

    string FooBarr = CommonCode.Fooing(true);

The new web project DOES not recognize the public static method called Fooing... 新的Web项目无法识别称为Fooing ...的公共静态方法。

I am assuming I have to rebuild something or clear out something. 我假设我必须重建某些东西或清理一些东西。 This exact same thing works on the old box with the old project settings. 这与具有旧项目设置的旧盒子完全相同。

解决方案是只重建.sln文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用服务器控件内的变量的asp.net Web表单 - asp.net web forms using variables inside a server control 使用来自ASP.NET Web窗体项目的会话在Web API项目中进行身份验证 - Authentication in Web API project using the session that is from ASP.NET Web Forms project 将jqGrid与Asp.Net Web窗体一起使用 - Using jqGrid with Asp.Net Web Forms 如何将第三方dll从bin文件夹移动到ASP.NET Web Forms项目中的另一个文件夹? - How to move third party dlls from bin folder to another folder in ASP.NET Web Forms project? ASP.NET Web窗体和标识:将IdentityModels.cs移动到另一个项目 - ASP.NET Web Forms and Identity: Move IdentityModels.cs to another project ASP.NET Web 窗体应用程序的静态文件浏览器缓存 - Static File Browser Caching for ASP.NET Web Forms Application 如何使用ASP.NET Core中的Controller类在Web窗体中进行CRUD? - How to do CRUD in Web Forms using Controller classes from ASP.NET Core? ASP.NET Web窗体:如何遍历项目/服务器文件夹中的文件 - ASP.NET Web Forms: How to traverse the files in a project/server folder ASP.NET表单身份验证在本地主机服务器上进行身份验证,但不在Web服务器上进行身份验证 - ASP.NET Forms Authentication authenticates in localhost server, but not on the web server 在VisulaStudio 2017上创建和编辑ASP.net Web表单项目 - Create and Edit ASP.net web forms project on VisulaStudio 2017
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM