Ok, too weird. Went and played some Borderlands 2 and then came back and saw your email. Ran the site in debug and this time, no Javascript error. Pretty sure I didn't change anything. It's still throwing me onto the login screen.
So allowing Content and Scripts folder access permissions are done at file level or somewhere else? Oh, also struggling with my CSS. So frustrating when you look up how to do something with CSS, follow the destructions, and it works other than how described. Right now, I've got an image I want to center (background) and am using margin left and margin right set to auto. Instead it left aligns. I know once you figure out what its doing it all falls into place... *shakes fist at browser* On Sun, Sep 23, 2012 at 11:35 AM, Michael Minutillo < [email protected]> wrote: > Hi Stephen, > > Welcome to the wonderful world of MVC :) > > It looks as if ASP.NET is trying to secure your javascript files so when > they are requested what the browser gets is the log in page instead (which > is html and not valid javascript). You need for the Content and Scripts > folders to allow anonymous access. > > On Sun, Sep 23, 2012 at 10:35 AM, Stephen Price <[email protected] > > wrote: > >> Hey all, >> >> Just started playing about with MVC and liking it heaps. Hard to >> describe, it just feels nice. >> >> Anyway, something odd happened and trying to work out why i'm now getting >> an error when I run the site locally. When I opened my solution it gave me >> a message saying it was modifying my IIS config. The solution file seems to >> have added local authentication for IIS. Not sure why it did that but I >> went with it. >> >> Now when I run the site I get an error show up >> >> "JavaScript critical error at line 1, column 1 in >> http://localhost:63109/Account/Login?ReturnUrl=/Scripts/jquery.validate.unobtrusive.js >> >> SCRIPT1002: Syntax error" >> >> hit continue >> >> "JavaScript critical error at line 1, column 1 in >> http://localhost:63109/Account/Login?ReturnUrl=/Scripts/jquery.validate.js >> >> SCRIPT1002: Syntax error" >> >> Stop Debugging, or Continue. If I Continue then it shows the login page, >> and shows me being authenticated as my local user account (at top in the >> user logged in part) >> >> Also if I click the link for user name it tells me I have no local login >> and I can set a local password. >> >> So, I get I have some stuff to learn on how the authentication stuff >> works (locally and remotely when on Azure). But whats with the javascript >> errors all of a sudden? >> >> any tips appreciated... (have been watching some videos from asp.net and >> pluralsight... but they dont mention what to do when stuff breaks. :) Ideal >> world stuff) >> >> cheers, >> Stephen >> > >
