View Single Post
  #1 (permalink)  
Old February 10th, 2011, 07:19 PM
flyinhawaiian flyinhawaiian is offline
Friend of Wrox
Points: 539, Level: 8
Points: 539, Level: 8 Points: 539, Level: 8 Points: 539, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2010
Location: Seattle
Posts: 106
Thanks: 1
Thanked 17 Times in 17 Posts
Default Publishing nerd dinner to server

Another hurdle to get over. At the end of Chapter 1 (page 168) it says,

Quote:
Our initial version of our NerdDinner application is now complete and ready to deploy on the Web
(Figure 1-161).
NOT!!! NerdDinner runs fine in development server. But soon as you publish to a real server and run it, it bombs. Turns out references to javascript is different on a real server.

This won't work when deployed to server.
Code:
<script src="/Scripts/Map.js" type="text/javascript"></script>
This does work when deployed to server.
Code:
<script src= "<%= Url.Content("~/Scripts/Map.js")%>" type="text/javascript"></script>
I also noticed access to database seems to be failing. If you got this working, please post how you did it. Thanks.

Last edited by flyinhawaiian; February 11th, 2011 at 11:50 AM..