1
votes

I configured an MVC4 Web Role on my Azure Project. Locally (on the emulator) it works fine. I keep getting this error at runtime:

The type or namespace name 'Helpers' does not exist in the namespace 'Microsoft.Web' (are you missing an assembly reference?)

I've tried:

  • Adding the System.Web.Helpers DLL directly into the BIN Folder
  • Referencing the Assembly on the project and setting CopyLocal=true
  • Connected to remote desktop on the azure cloud service and installed MVC on the server to see if that was the issue. It still persists.
1
have you confirmed that the helper dll was copied? - Dave Alperovich
Yes, I download the drop as a ZIP from TFS and confirmed it was inside the uploaded package. I also confirmed is was deployed to my site's bin folder by connecting with remote desktop to the Cloud Service Virtual Machine - amhed
what config file are you deploying? - Dave Alperovich
I'm sorry, didn't understand that one. I'm using a debug deployment on the staging server of my azure cloud service if that's what you're asking - amhed
kind of. can you share the config file you are deploying? is it web.config? if not, is it any different? does it make reference to every assembly referenced in your web.config? - Dave Alperovich

1 Answers

2
votes

OK, so I ended up deleting the reference to System.Web.Helpers and installing the nuget Package Microsoft-Web-Helpers.

This solved the problem.