1

I have an ASP.NET application that stopped being server by the server. I had the Sys Admin give the IIS_WPG read, write and execute permission on the root directory of the application. It appears that the permissions filtered down to all the children files and directories and the server serves the application.

However, now it displays with out the normal Master Page formatting. I am using the Default Master Page that VS provides with the default css and directory structure.

Also, my application is not executing my javascript function which is imported from another file. This worked before the permissions changes and now it does not.

Does anyone have and ideas what could be wrong?

14
  • My guess is that you are missing handlers or MIME types for .css and .js files. Which version of IIS?
    – Cᴏʀʏ
    Apr 23, 2012 at 18:51
  • Check the IIS logs for 404 errors. That would help you identify a misconfigured path, or a path with insufficient permissions to the CSS or JS file.
    – JohnFx
    Apr 23, 2012 at 18:57
  • @Cory I believe its IIS 6. Also, could changing this directories permissions cause the handlers to become broken? What else might cause this?
    – DFord
    Apr 23, 2012 at 19:01
  • @DFord: If you changed directories, it could be that the code itself is referencing a hard-coded path for the JS and CSS files, therefore you may need to edit the *.aspx files (either the Master Page if one exists, or each page itself). These paths should never be hard-coded: there are ways to reference them that won't break (VirtualPathUtility.ToAbsolute("~/JS/test.js"), Page.ResolveClientUrl("~/JS/test.js"), or through a ScriptManager.
    – Cᴏʀʏ
    Apr 23, 2012 at 19:04
  • Sorry, i meant to say directories permissions, i did not change the directory structure. The Master page is default and it references the site.css in the Styles directory. This was never changed. Here is the link to my css <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
    – DFord
    Apr 23, 2012 at 19:06

1 Answer 1

1

Just try if you can download the css file if you type the fully qualified path directly in the browser.

You did and it says not authorized to view the page

Well so it is an permission issue... Is it really iis6? Cause thats a long time ago for me. Probably IIS_USR, ASPNET or IUSR_MachineName or something like that need read and perhaps execute access

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.