0

Ok, so I am maintaining some legacy web form web site application. 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. E.g.:

AspCommonCode.cs -- project

foobar - website project

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:

    using AspCommonCode;

    string FooBarr = CommonCode.Fooing(true);

The new web project DOES not recognize the public static method called 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.

4
  • Which folder is AspCommonCode.cs in? Commented Jun 11, 2013 at 20:38
  • "I am assuming I have to rebuild something or clear out something." - I would at least rebuild the project, yes. Did you do that? There must be something wrong with the reference to the common library. Does the warning mentioning that issue perhaps get snowed under by the hundreds of other compiler warnings that legacy projects usually carry with them?
    – CodeCaster
    Commented Jun 11, 2013 at 21:01
  • Is the AspCommonCode.cs in a separate project? If it is try building that project 1st before building your website and see if that makes any difference. Otherwise try to copy over the dll from the bin folder of the previous solution to the bin folder of the new one and then try building the solution.
    – Ben Narube
    Commented Jun 12, 2013 at 1:18
  • solution was to just rebuild the .sln file... Commented Jun 12, 2013 at 19:51

1 Answer 1

0

solution was to just rebuild the .sln file....

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.