1

I started out this morning working with my ASP.NET MVC project like normal and everything worked. I added a new class and some functions and it still worked. Then, all of a sudden, while I was working with a javascript file, I started getting these not defined errors on the MVC classes/functions. There are 118 of them in the project and I'm not sure how to fix them.

I've tried restarting Visual Studio and rebooting the computer. I've also tried loading another MVC project to see if the framework might be hosed, and it works fine. I've checked the references and the ASP.NET MVC 1.0 RC2 dll is there.

Has anyone else ran into this problem?

Please help!

4
  • Why are you using ASP.net MVC RC2 when the final version (1.0) is out since quite a long time? Commented Nov 9, 2009 at 15:33
  • I installed 1.0...When looking at the references, the path to the DLL is C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 1.0 RC2\Assemblies\System.Web.Mvc.dll Commented Nov 9, 2009 at 15:40
  • Just checked the website and it does say the published date is 4/9/09 and I had installed mine around January. I will try updating. Commented Nov 9, 2009 at 15:43
  • After I updated, the new path is C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 1.0\Assemblies\System.Web.Mvc.dll and it does the same thing. Any other ideas? Commented Nov 9, 2009 at 15:57

1 Answer 1

2

I figured it out. I had added a new Master page to the project, but when did so, I had chosen a regular Master Page not the MVC Master Page. What threw me was that I was able to build the program a couple times and run it after I had done this without seeing any errors.

Sign up to request clarification or add additional context in comments.

1 Comment

Glad you figured it out cos I couldn't until I found this question - cheers for asking and answering it!

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.