Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Charles 42 posts 63 karma points
    Feb 22, 2014 @ 15:52
    Charles
    0

    Transferred site to localhost, but all CSS and JS Files now return a Custom 500 Error Page.

    How do I disable the Umbraco 500 Custom Error pages that get loaded instead of .css and .js files?  Sounds like a permission issue, but all I did was create content in Umbraco on localhost, and than it now does not load up any .css and .js files after creating the content page.  I am unable to go the Umbraco Admin, due to no .js and no .css files loading.

    When I browse to the .css and/or .js files directly within the browser, I get a custom 500 error page that looks like it's coming from Umbraco, since IIS 7.5 does not have any custom error pages in it for the site and I have in my web.config file like so:

     

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <configSections>
        <section name="urlrewritingnet" restartOnExternalChanges="true" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" />
        <section name="microsoft.scripting" type="Microsoft.Scripting.Hosting.Configuration.Section, Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" />
        <section name="clientDependency" type="ClientDependency.Core.Config.ClientDependencySection, ClientDependency.Core" />
        <section name="Examine" type="Examine.Config.ExamineSettings, Examine" />
        <section name="ExamineLuceneIndexSets" type="UmbracoExamine.Config.ExamineLuceneIndexes, UmbracoExamine" />
      </configSections>
    
      <urlrewritingnet configSource="config\UrlRewriting.config" />
      <microsoft.scripting configSource="config\scripting.config" />
      <clientDependency configSource="config\ClientDependency.config" />
      <Examine configSource="config\ExamineSettings.config" />
      <ExamineLuceneIndexSets configSource="config\ExamineIndex.config" />
      <appSettings>
        <add key="umbracoDbDSN" value="server=127.0.0.1;database=DATABASE_NAME;user id=user_id;password=password" />
        <add key="umbracoConfigurationStatus" value="4.6.1" />
        <add key="umbracoReservedUrls" value="~/config/splashes/booting.aspx,~/install/default.aspx,~/config/splashes/noNodes.aspx" /> 
        <add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/testbed/,~/,~/test" /> 
        <add key="umbracoContentXML" value="~/App_Data/umbraco.config" /> 
        <add key="umbracoStorageDirectory" value="~/App_Data" /> 
        <add key="umbracoPath" value="~/umbraco" />
        <add key="umbracoEnableStat" value="false" />
        <add key="umbracoHideTopLevelNodeFromPath" value="true" />
        <add key="umbracoEditXhtmlMode" value="true" />
        <add key="umbracoUseDirectoryUrls" value="true" />
        <add key="umbracoDebugMode" value="true" /> 
        <add key="umbracoTimeOutInMinutes" value="20" />
        <add key="umbracoVersionCheckPeriod" value="7" />
        <add key="umbracoDisableXsltExtensions" value="true" />
        <add key="umbracoDefaultUILanguage" value="en" /> 
        <add key="umbracoProfileUrl" value="profiler" />
        <add key="umbracoUseSSL" value="false" />
        <add key="umbracoUseMediumTrust" value="false" />
        <add key="umbracoContentXMLUseLocalTemp" value="false" />
        <!-- MMG Values -->
        <add key="mmg.404ContentID"   value="77708" /> 
        <add key="mmg.Mobile404ContentID"  value="136193"  />
        <add key="mmg.ImportEmailID" value="134814" />
        <add key="mmg.GoogleSearch.apiKey" value="AIzaSyA5s_v_dUPcdpZ7pWJTB5csJYin6RIakJo" />
        <add key="mmg.GoogleSearch.cx" value="001789476401348516641:sxqm1e99u5i" />
        <add key="mmg.MailServerAddress" value="smtp server" />
        <add key="mmg.MailServerUserName" value="" />
        <add key="mmg.MailServerPassword" value="" />
        <add key="mmg.MailServerSSL" value="false" />
        <add key="MMG.ExactTargetReturnHost" value="http://www.mywebsite.com/handlers/ExactTarget.ashx" />
        <add key="MMG.NeighborhoodTaxonomyIDList" value="449" />
        <add key="MMG.MainTaxonomyIDList" value="578,688,792,804" />
        <add key="MMG.ForgotPasswordEmailContentID" value="130674" />
        <add key="mmg.MobileLookupUrl" value="http://mobilelookup.mmghost.com/handlers/mobilelookup.ashx?ua=[UserAgent]" />
        <!-- IDSS Distribution Lists -->   
        <add key="IDSS.MeetingInPhiladelphia" value="234" />
        <add key="IDSS.BringingGroupsToPhiladelphia" value="232" />
        <add key="IDSS.MACENews" value="227" />
        <add key="IDSS.SportsCongressENewsletter" value="209" />
        <add key="IDSS.LifeScienceNews" value="145" />
        <add key="IDSS.Visit" value="294" />   
        <add key="IDSS.MeetingsAndConventionsENews" value="198" />    
        <add key="IDSS.BecomeAMember" value="293" />  
        <add key="IDSS.7in7" value="288" />
        <add key="IDSS.10in10" value="289" /> 
        <add key="IDSS.BringItHome" value="290" />
        <add key="IDSS.MACMemberApplication" value="291" />   
        <add key="IDSS.FamilyReunions" value="295" />
      </appSettings>
      <system.net>
        <mailSettings>
          <smtp>
            <network host="127.0.0.1" userName="username" password="password" />
          </smtp>
        </mailSettings> 
      </system.net>
     <connectionStrings>
        <remove name="LocalSqlServer" />
        <add name="PhiladelphiaConnectionString" connectionString="Data Source=DB Server;Initial Catalog=Philadelphia;Persist Security Info=True;User id=DB USer;Password=Password" providerName="System.Data.SqlClient" />
      </connectionStrings>
      <location path="." inheritInChildApplications="false">
      <system.web>
        <customErrors mode="Off" />
        <trace enabled="true" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="false" />
        <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
        <globalization requestEncoding="UTF-8" responseEncoding="UTF-8" />
        <xhtmlConformance mode="Strict" />
        <httpRuntime executionTimeout="4000" maxRequestLength="429496" requestValidationMode="2.0" relaxedUrlToFileSystemMapping="true" />
        <pages enableEventValidation="false">
          <!-- ASPNETAJAX -->
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add tagPrefix="umbraco" namespace="umbraco.presentation.templateControls" assembly="umbraco" />
            <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          </controls>
        </pages>
        <httpModules>
          <!-- URL REWRTIER -->
          <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
          <add name="umbracoRequestModule" type="umbraco.presentation.requestModule" />
          <!-- UMBRACO -->
          <add name="viewstateMoverModule" type="umbraco.presentation.viewstateMoverModule" />
          <add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule" />
          <!-- ASPNETAJAX -->
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <!-- CLIENT DEPENDENCY -->
          <add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core" />
          <add name="Redirector" type="Redirector" />
    
        </httpModules>
        <httpHandlers>
          <remove verb="*" path="*.asmx" />
          <remove verb="*" path="*.aspx" />
          <remove verb="*" path=".axd" />
          <!-- ASPNETAJAX -->
          <add path="WebResource.axd" verb="GET,HEAD,POST" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
          <add verb="*" path="test/Default.aspx" type="System.Web.UI.PageHandlerFactory" validate="false" />
          <add verb="*" path="*.asmx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
          <add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
          <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
          <!-- UMBRACO CHANNELS -->
          <add verb="*" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco" />
          <add verb="*" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco" />
          <add verb="*" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core " />
          <add verb="GET,HEAD,POST" path="GoogleSpellChecker.ashx" type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco" />
        </httpHandlers>
          <!--// Changed debug to true, should change to false when it goes live. -->
        <compilation defaultLanguage="c#" debug="true" batch="false" targetFramework="4.0">
          <assemblies>
            <!-- ASP.NET 4.0 Assemblies -->
            <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
            <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          </assemblies>
        </compilation>
        <authentication mode="Forms">
          <forms name="yourAuthCookie" loginUrl="login.aspx" protection="All" path="/" />
        </authentication>
        <authorization>
          <allow users="?" />
        </authorization>
        <!-- Membership Provider -->
        <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
          <providers>
            <clear />
            <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />
            <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
          </providers>
        </membership>
        <!-- added by NH to support membership providers in access layer -->
        <roleManager enabled="true" defaultProvider="UmbracoRoleProvider">
          <providers>
            <clear />
            <add name="UmbracoRoleProvider" type="umbraco.providers.members.UmbracoRoleProvider" />
          </providers>
        </roleManager>
        <!-- Sitemap provider-->
        <siteMap defaultProvider="UmbracoSiteMapProvider" enabled="true">
          <providers>
            <clear />
            <add name="UmbracoSiteMapProvider" type="umbraco.presentation.nodeFactory.UmbracoSiteMapProvider" defaultDescriptionAlias="description" securityTrimmingEnabled="true" />
          </providers>
        </siteMap>
      </system.web>
      <system.webServer>
        <httpErrors errorMode="Detailed" existingResponse="PassThrough" />
        <asp scriptErrorSentToBrowser="true"/>
        <validation validateIntegratedModeConfiguration="false" />
        <modules runAllManagedModulesForAllRequests="true">
          <remove name="Session" />
          <remove name="ScriptModule" />
          <remove name="UrlRewriteModule" />
          <remove name="umbracoRequestModule" />
          <remove name="viewstateMoverModule" />
          <remove name="umbracoBaseRequestModule" />
          <remove name="ClientDependencyModule" />
          <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
          <add name="umbracoRequestModule" type="umbraco.presentation.requestModule" />
          <add name="viewstateMoverModule" type="umbraco.presentation.viewstateMoverModule" />
          <add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule" />
          <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core" />
          <add name="Redirector" type="Redirector" />
          <add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition="managedHandler" />
        </modules>
        <handlers accessPolicy="Read, Write, Script, Execute">
          <remove name="WebServiceHandlerFactory-Integrated" />
          <remove name="ScriptHandlerFactory" />
          <remove name="ScriptHandlerFactoryAppServices" />
          <remove name="ScriptResource" />
          <remove name="Channels" />
          <remove name="Channels_Word" />
          <remove name="ClientDependency" />
          <remove name="SpellChecker" />
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add verb="*" name="Channels" preCondition="integratedMode" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco" />
          <add verb="*" name="Channels_Word" preCondition="integratedMode" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco" />
          <add verb="*" name="ClientDependency" preCondition="integratedMode" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core " />
          <add verb="GET,HEAD,POST" preCondition="integratedMode" name="SpellChecker" path="GoogleSpellChecker.ashx" type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco" />
        </handlers>
        <security>
          <requestFiltering>
            <requestLimits maxAllowedContentLength="42949672" />
          </requestFiltering>
        </security>
            <staticContent>
                <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00" />
            </staticContent>
      </system.webServer>
      </location>
        <!-- ASPNETAJAX -->
      <system.web.extensions>
        <scripting>
          <scriptResourceHandler enableCompression="true" enableCaching="true" />
        </scripting>
      </system.web.extensions>
      <system.codedom>
        <compilers>
          <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
            <providerOption name="CompilerVersion" value="v4.0" />
            <providerOption name="WarnAsError" value="false" />
          </compiler>
        </compilers>
      </system.codedom>
      <runtime>
        <!-- Old asp.net ajax assembly bindings -->
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0" />
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
      <system.serviceModel>
        <bindings>
          <basicHttpBinding>
            <binding name="VenueSoap" closeTimeout="00:10:00" openTimeout="00:10:00"
              receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false"
              bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
              maxBufferPoolSize="16777216" maxBufferSize="16777216" maxReceivedMessageSize="16777216"
              textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"
              messageEncoding="Text">
              <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                maxBytesPerRead="4096" maxNameTableCharCount="16384" />
              <security mode="None">
                <transport clientCredentialType="None" proxyCredentialType="None"
                  realm="" />
                <message clientCredentialType="UserName" algorithmSuite="Default" />
              </security>
            </binding>
            <binding name="MembersSoap" />
            <binding name="EventsSoap" closeTimeout="00:10:00" openTimeout="00:10:00"
              receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false"
              bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
              maxBufferPoolSize="16777216" maxBufferSize="16777216" maxReceivedMessageSize="16777216"
              textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"
              messageEncoding="Text">
              <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                maxBytesPerRead="4096" maxNameTableCharCount="16384" />
              <security mode="None">
                <transport clientCredentialType="None" proxyCredentialType="None"
                  realm="" />
                <message clientCredentialType="UserName" algorithmSuite="Default" />
              </security>
            </binding>
            <binding name="AdminSoap" closeTimeout="00:10:00" openTimeout="00:10:00"
              receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false"
              bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
              maxBufferPoolSize="16777216" maxBufferSize="16777216" maxReceivedMessageSize="16777216"
              textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"
              messageEncoding="Text">
              <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                maxBytesPerRead="4096" maxNameTableCharCount="16384" />
              <security mode="None">
                <transport clientCredentialType="None" proxyCredentialType="None"
                  realm="" />
                <message clientCredentialType="UserName" algorithmSuite="Default" />
              </security>
            </binding>
            <binding name="ProspectsSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
              receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
              bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
              maxBufferPoolSize="524288" maxBufferSize="16777216" maxReceivedMessageSize="16777216"
              textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"
              messageEncoding="Text">
              <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                maxBytesPerRead="4096" maxNameTableCharCount="16384" />
              <security mode="None">
                <transport clientCredentialType="None" proxyCredentialType="None"
                  realm="" />
                <message clientCredentialType="UserName" algorithmSuite="Default" />
              </security>
            </binding>
          </basicHttpBinding>
        </bindings>
        <client>
          <endpoint address="http://ws.idssasp.com/Venue.asmx" binding="basicHttpBinding"
            bindingConfiguration="VenueSoap" contract="ServiceVenueIDSS.VenueSoap"
            name="VenueSoap" />
          <endpoint address="http://ws.idssasp.com/Members.asmx" binding="basicHttpBinding"
            bindingConfiguration="MembersSoap" contract="ServiceMemberIDSS.MembersSoap"
            name="MembersSoap" />
          <endpoint address="http://ws.idssasp.com/events.asmx" binding="basicHttpBinding"
            bindingConfiguration="EventsSoap" contract="ServiceEventsIDSS.EventsSoap"
            name="EventsSoap" />
          <endpoint address="http://ws.idssasp.com/Admin.asmx" binding="basicHttpBinding"
            bindingConfiguration="AdminSoap" contract="ServiceAdminIDSS.AdminSoap"
            name="AdminSoap" />
          <endpoint address="http://ws.idssasp.com/Prospects.asmx" binding="basicHttpBinding"
            bindingConfiguration="ProspectsSoap" contract="ServiceProspectIDSS.ProspectsSoap"
            name="ProspectsSoap" />
        </client>
      </system.serviceModel>
    </configuration>
    

    Like I said, it was loading up .css and .js files fine before I saved new content in the Content section of the Umbraco Admin.  Am running Umbraco 4.6.1 if that helps.

    How can I fix this?  I have already done a FULL Database Restore, and even have restored all files from the site to that of the transfer, but still, the site is not loading up any .css/.js files at all.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Feb 22, 2014 @ 16:06
    Dennis Aaen
    0

    Hi Charles,

    I have searched on the issue, to try to help you,

    Here is what I found

    http://stackoverflow.com/questions/19417458/umbraco-http-500-server-errors-for-css-and-js-files

    Hope it can help you.

    /Dennis

  • Charles 42 posts 63 karma points
    Feb 22, 2014 @ 16:20
    Charles
    0

    Hello Dennis,

    First, thanks for your response.  Secondly, I have already been there and done that.  If you look at the web.config file that I posted up, you will see that, already there is a debug="true" in the compilation tag, but this does not help at all and still shows a custom 500 Error page when browsing to the CSS/JS files directly on the server.

    What does Umbraco do when it creates new content that could cause this to happen?  Perhaps some sort of permission issue could cause this?  If so, how to set up permissions properly and how to restore Umbraco Settings?

    Furthermore, when running Fiddler, it mentions nothing of a 500 Internal Server Error.  So this tells me that Umbraco is loading up the 500 Internal Server Error page for all CSS and JS files anyways, which leads me to think, even more, that this could be an Umbraco Specific Permissions problem...

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Feb 22, 2014 @ 16:43
    Dennis Aaen
    0

    Hi Charles,

    One option might be to follow this http://www.franklinogsimonsen.dk/media/856/install_umbraco_4_on_windows_vista.pdf guide on how to create a Umbraco instalation on localhost, maybe this can help you to find where your permissions are incorrect on your localhost.

    /Dennis

  • Charles 42 posts 63 karma points
    Feb 22, 2014 @ 22:43
    Charles
    0

    Well, this is strange... what could possibly be the problem here:

    CSS Stylesheet urls

    http://127.0.0.1/styles/styles.css - WORKS

    http://localhost/styles/styles.css - Doesn't work and returns custom Umbraco 500 Error page

    On the actual homepage of the site, when viewing the source, it shows this as the link to the CSS in the head:  /styles/styles.css?v=635248629320000000 and doesn't work when I browse to it.

    http://localhost/styles/styles.css?v=635248629320000000 - Doesn't work and displays custom 500 Error page

    http://127.0.0.1/styles/styles.css?v=635248629320000000 - Doesn't work and displays custom 500 Error page

     

    Very weird that only this url works:  http://127.0.0.1/styles/styles.css  and all others don't.  How to fix this????  Maybe the cache needs to be cleared in Umbraco?  How to do that even?

  • Charles 42 posts 63 karma points
    Feb 23, 2014 @ 00:53
    Charles
    0

    Well, the support here is a bit lacking, sorry to say.  I suppose not many people ever visit this community.  I now have done this:

    1. Added a web.config to the styles folder itself with the following:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <handlers>
               <clear />
                <add 
                    name="StaticFile" 
                    path="*" verb="*" 
                    modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" 
                    resourceType="Either" 
                    requireAccess="Read" />
            </handlers>
            <staticContent>
                <mimeMap fileExtension=".*" mimeType="application/octet-stream" />
            </staticContent>
        </system.webServer>
    </configuration>

    When browsing to a .css file within that folder, I get the following error message now:

    Error Summary

    HTTP Error 500.22 - Internal Server Error

    An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

     

    Detailed Error Information
    Module ConfigurationValidationModule
    Notification BeginRequest
    Handler StaticFile
    Error Code 0x80070032
    Requested URL http://localhost:80/styles/styles.css?v=635248629320000000
    Physical Path C:\inetpub\Website_new\styles\styles.css
    Logon Method Not yet determined
    Logon User Not yet determined

     

    Does that mean anything to anyone?

  • Comment author was deleted

    Feb 23, 2014 @ 01:10

    @Charles.  I've gotten something like what you describe originally and it turned out to be permissions.

    Ensure the identity running your app pool for your site has full control of the entire website file directory.

    You may have to stop the app pool to apply permissions.

    Might I suggest you compare the permissions between the one that does work vs one that does not?

    Next I would check IIS settings:

    Are you running different versions of IIS locally vs where it came from?  My guess is yes.  Check the configs (like 'Classic' mode vs integrated, etc).

  • Comment author was deleted

    Feb 23, 2014 @ 01:12

    Also if this is your first localhost site on this machine, check to make sure everything is installed right.

    http://stackoverflow.com/questions/4537244/what-is-this-error-in-iis-web-server

    I don't suspect it's an Umbraco issue at all.

  • Charles 42 posts 63 karma points
    Feb 23, 2014 @ 01:29
    Charles
    0

    Ok, so opened up SQL Server Manager and typed in the following SQL and now CSS/JS Files are loading on the front end of the site.

    alter authorization on database::[DBName] to [sa];

    But CSS/JS Files are still not loading on the Back-end Umbraco Administration, at the following url:  http://localhost/Umbraco/

    How do I get the CSS and JS Files to load there??

  • Comment author was deleted

    Feb 23, 2014 @ 01:38

    All of the permissions you should be looking at are the file system permissions, not the DB.

    You should have to make no changes to the DB.

  • Charles 42 posts 63 karma points
    Feb 23, 2014 @ 01:47
    Charles
    0

    Event Viewer logs tons of errors within the past hour on the MSSQL, and says this:

    An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission.

    How can I fix this?

    Well, when i executed that link in SQL it fixed the front end .css and .js files.  So that seemed to be a database issue, not a file system issue.  Perhaps the Umbraco Back-end is a File System issue...?

  • Charles 42 posts 63 karma points
    Feb 23, 2014 @ 02:06
    Charles
    0

    @Kevin Giszewski  - Everyone has access to the file system.  I searched for everyname to give access to that the system will allow and gave FULL Access to all of them.  It still does not work.

    I noticed that there are 2 databases, 1 named "Philadelphia" and the other named "PHL" and "PHL" is the one that's getting used in web.config.  Also, I believe that their might be 2 different versions of IIS Installed installed also... not entirely sure if this could cause a problem or not.

  • Comment author was deleted

    Feb 23, 2014 @ 02:30

    I'm not sure how to solve your issue with the DB.

    Regarding your permissions you set.  Websites should have exactly one account that has full control.  Giving full control to user accounts will make the site be insecure.  So tread carefully in a production environment.

    The account that should have the full control will either be your 'network service' account or the app pool identity which is found in your app pool setup.

    Additionally, anonymous users should have the 'read' permission.  This could be the issue for your js/css files.  When you visit a page (even you), you are visiting the page anonymously in most cases.  The website runs it's operations under the 'network service' or app pool identity (which is why they need full control).

    Again, this is probably not an Umbraco issue rather it's a environment setup issue.  I'm probably out of suggestions for you as it seems you have at least a DB issue and possibly a permissions issue.

  • Charles 42 posts 63 karma points
    Feb 23, 2014 @ 03:19
    Charles
    0

    @Kevin - How do I find out the App Pool Identity?  Is that the same as the App Pool Name?  I can not add the App Pool Name to permissions, but I do see something that is named:  WIN-428RNRGTUMJ (WIN-428RNRGTUMJ/Administrator), which is where the Sites Folder is located in IIS Manager.  Is that the App Pool Identity?  If so, it is already added and has Full Control.

    There is another user called, "CREATOR/OWNER" but weirdly enough, I am unable to give this user Full Control.

  • Comment author was deleted

    Feb 23, 2014 @ 12:30
  • Charles 42 posts 63 karma points
    Feb 24, 2014 @ 17:28
    Charles
    0

    That's what it was exactly.  I changed the App Pool Identity to Administrator with the password and it worked perfect!  The name that was in there was DefaultAppPoolIdentity I believe, and that user did not exist on the system, so wasn't able to give that user the proper permissions.  So changed it to Administrator and all is now perfect!

    Thanks a million!!

  • Comment author was deleted

    Feb 24, 2014 @ 17:30

    Awesome!

Please Sign in or register to post replies

Write your reply to:

Draft