Forum Moderators: open

Message Too Old, No Replies

Cannot Build Project

         

andrewsmd

6:58 pm on Jul 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a web site that I migrated to a web project. For some reason it put my utilities.vb file in a folder called old_app_code. Now I moved that file out to the root directory because that is where I want it. Now whenever I try to build the site I get an error saying it can't find the module in the folder old_app_code/utilities.vb. How do I tell the project that that module has been moved to the root folder? Thanks,

marcel

7:57 pm on Jul 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Read update 2 on the following page:
[weblogs.asp.net...]

A quick Google or Bing search for 'old_app_code' will give you some workarounds.

marcel

5:40 am on Jul 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I played around with it a bit last night, and although I don't know exactly your circumstances, the following should do the trick:

- Put the class back into the old_app_code folder
- rebuild the project to see if it is Ok again
- Copy all of the content of the class to something like notepad
- right-click on the old_app_code folder and select 'Remove from project'
- try building again, you should no longer receive the error message you had earlier, but should now get method not found errors
- create a new Class where you want it to be, and then copy the important bits from notepad (don't forget the namespace)

andrewsmd

1:35 pm on Jul 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's exactly what ended up doing, I'm new to asp so all of this stuff is kind of hard for me coming from PHP.