2

when i running mvc app on iis7.5 win 7 it cause an exception "Request is not available in this context" which this don't cause when running by vs2008. can anyone help me?

Sadegh
  • 4,181
  • 9
  • 45
  • 78

1 Answers1

2

I think the answers and notes in my question regarding use of the request object in the global.asax file may be helpful. Are you developing on a system that doesn't use IIS7 by any chance?

Global ASAX - get the server name

Community
  • 1
  • 1
Paddy
  • 33,309
  • 15
  • 79
  • 114