Copied to clipboard

Flag this post as spam?

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


  • Andrew Blackmore 84 posts 127 karma points
    Jun 14, 2010 @ 16:03
    Andrew Blackmore
    0

    Site worked fine on dev, and won't work on live

    HI all,

    I've very much liked working with umbraco and finally got the site looking how I needed it to on the dev server. I went to change it over on to the live server and I get this error.

    Server Error in '/' Application.

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

    Source Error:

    Line 97:       <assemblies>
    Line 98: <!-- ASPNETAJAX -->
    Line 99: <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    Line 100: <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    Line 101: <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


    Source File: \\GMTI\DFS01\GTV\CAPTIVATE\Blogs\web.config    Line: 99

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



    Version Information: Microsoft .NET Framework Version:2.0.50727.1873; ASP.NET Version:2.0.50727.1433

     

    I was running this as a .NET 2.0 application on the dev server with no issues and I have verified that .NET AJAX extensions are installed on the live server. Is this just a matter of having a wrong web.config file or am I in trouble here?

     

    I have looked for a web.config file that will work with .NET 2.0 and haven't found any different ones. I am not a developer or SA unfortunately, more of a designer forced into getting this done so I have some understanding of IIS but not a ton. Any help would be seriously appreciated.

     

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jun 14, 2010 @ 16:12
    Morten Bock
    0

    Which version of Umbraco are you using?

    Looks like you have dependencies on the 3.5 framework in your web.config, but I don't recall those being part of the default settings for 4.0.x versions?

    The 3.5 framework is an extension to the 2.0 runtime, so even though your dev server site runs in 2.0 mode, it might still use 3.5 assemblies.

    I have a config file that has these entries around the place you mention:

        <compilation defaultLanguage="c#" debug="true" batch="false">
          <assemblies>
            <!-- ASPNETAJAX -->
            <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          </assemblies>
        </compilation>

    But you might need to make more changes if the entire web.config is set up for 3.5 framework.

  • Andrew Blackmore 84 posts 127 karma points
    Jun 14, 2010 @ 16:27
    Andrew Blackmore
    0

    Odd,

     

    I still get this message:

     

    Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    Source Error:

    Line 97:       <assemblies>
    Line 98: <!-- ASPNETAJAX -->
    Line 99: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    Line 100: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    Line 101: <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

     

    I was using the web.config straight out of the box from the latest version of umbraco at the time 4.0.2 and had only made changes to the database connection and smtp server areas.

  • Andrew Blackmore 84 posts 127 karma points
    Jun 14, 2010 @ 16:28
    Andrew Blackmore
    0

    Hi Morten,

     

    Thanks for the help first off.

    I originally thought it was maybe some downloaded add-ons that were making reference to these 3.5 assemblies but I tried a clean install of 4.0.3 and same deal.

  • Andrew Blackmore 84 posts 127 karma points
    Jun 14, 2010 @ 16:46
    Andrew Blackmore
    0

    Hmmm,

     

    The error is now different. I removed all references to .NET 3.5 assemblies and I now get the following error:

     

    Compiler executable file csc.exe cannot be found.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: Compiler executable file csc.exe cannot be found.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [InvalidOperationException: Compiler executable file csc.exe cannot be found.]
    System.CodeDom.Compiler.RedistVersionInfo.GetCompilerPath(IDictionary`2 provOptions, String compilerExecutable) +2207010
    Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) +562
    Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +185
    System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames) +23
    System.Web.Compilation.AssemblyBuilder.Compile() +843
    System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +164
    System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +387
    System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
    System.Web.Compilation.BuildManager.CompileCodeDirectories() +525
    System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +448

    [HttpException (0x80004005): Compiler executable file csc.exe cannot be found.]
    System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
    System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +644

    [HttpException (0x80004005): Compiler executable file csc.exe cannot be found.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3468019
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +279
  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jun 14, 2010 @ 19:01
    Morten Bock
    1

    The complete web.config from 4.0.3 looks like this (below).

    I don't see any references to 3.5 assemblies in there. Could you try using this config, and just inserting your own connection string?

    Have you done any other changes to your own web.config file?

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    
    
    
      <configSections>
        <section name="urlrewritingnet" restartOnExternalChanges="true" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" />
        <!-- ASPNETAJAX -->
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
          <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
            <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
            <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
              <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
              <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
              <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
            </sectionGroup>
          </sectionGroup>
        </sectionGroup>
    
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
          <section name="umbraco.presentation.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </sectionGroup>
      </configSections>
    
      <urlrewritingnet configSource="config\UrlRewriting.config" />
    
      <appSettings>
        <add key="umbracoDbDSN" value="datalayer=SqlServer;server=.\sqlexpress;database=DATABASE;user id=DBUSER;password=PASSWORD" />
        <add key="umbracoConfigurationStatus" value="" />
        <add key="umbracoReservedUrls" value="/config/splashes/booting.aspx,/install/default.aspx,/config/splashes/noNodes.aspx" />
        <add key="umbracoReservedPaths" value="/umbraco,/install/" />
        <add key="umbracoContentXML" value="/data/umbraco.config" />
        <add key="umbracoStorageDirectory" value="/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="false" />
        <add key="umbracoDebugMode" value="true" />
        <add key="umbracoTimeOutInMinutes" value="20" />
        <!-- How often should umbraco check for upgrades (in days) -->
        <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" />
      </appSettings>
    
      <!-- This Replaces the old umbracoSmptpServer config-->
      <system.net>
        <mailSettings>
          <smtp>
            <network host="127.0.0.1" userName="username" password="password" />
          </smtp>
        </mailSettings>
      </system.net>
    
      <system.web>
        <customErrors mode="RemoteOnly" />
        <trace enabled="true" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
        <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" />
    
        <pages enableEventValidation="false">
          <!-- ASPNETAJAX -->
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
            <add tagPrefix="umbraco" namespace="umbraco.presentation.templateControls" assembly="umbraco" />
          </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=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        </httpModules>
    
        <httpHandlers>
          <remove verb="*" path="*.asmx" />
          <!-- ASPNETAJAX -->
          <add verb="*" path="*.asmx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          <add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          <!-- 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" />
        </httpHandlers>
    
        <compilation defaultLanguage="c#" debug="false" batch="false">
          <assemblies>
            <!-- ASPNETAJAX -->
            <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          </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>
    
      <!-- ASPNETAJAX -->
      <system.web.extensions>
        <scripting>
          <scriptResourceHandler enableCompression="true" enableCaching="true" />
        </scripting>
      </system.web.extensions>
    
      <applicationSettings>
        <umbraco.presentation.Properties.Settings>
          <setting name="umbraco_com_regexlib_Webservices" serializeAs="String">
            <value>http://regexlib.com/WebServices.asmx</value>;
          </setting>
        </umbraco.presentation.Properties.Settings>
      </applicationSettings>
    
      <!-- IIS 7 Integrated Mode Configuration
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <modules>
    
          <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" />
    
          <remove name="ScriptModule"/>
          <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </modules>
        <handlers accessPolicy="Read, Write, Script, Execute">
          <remove name="WebServiceHandlerFactory-Integrated"/>
          <remove name="ScriptHandlerFactory"/>
          <remove name="ScriptHandlerFactoryAppServices"/>
          <remove name="ScriptResource"/>
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    
          <remove name="Channels"/>
          <remove name="Channels_Word"/>
          <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" />
        </handlers>
      </system.webServer>
      -->
    </configuration>
    
  • Andrew Blackmore 84 posts 127 karma points
    Jun 15, 2010 @ 16:55
    Andrew Blackmore
    0

    Hi Morten,

    This was a great help. I don't know how I ended up with a bad web.config but I did. This makes Umbraco run on the server, but even though I copied all the files over from the dev server, it is making me install umbraco again when I navigate to the URL. Is this normal?

     

    Will all of my content and custom templates and such be there when I get there? I've already restored the server backup to the new location.

  • Andrew Blackmore 84 posts 127 karma points
    Jun 15, 2010 @ 17:04
    Andrew Blackmore
    0

    Actually, it appears most of it did transfer over...but I can't log into Umbraco! None of my users transfered over so I'm a bit stuck. Also, some style sheets appear to have gotten lost in the shuffle as well but I can fix that if I can gain access to the back end. Any ideas?

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jun 15, 2010 @ 19:01
    Sebastiaan Janssen
    1

    You might want to change the passwordFormat by removing these properties:

    passwordFormat="Hashed"

    It's possible that your users were made when password hashing was not on by default.

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jun 15, 2010 @ 19:26
    Morten Bock
    1

    To make it not show the install wizard, set this key:

    <add key="umbracoConfigurationStatus" value="4.0.3" />

     

  • Andrew Blackmore 84 posts 127 karma points
    Jun 15, 2010 @ 19:45
    Andrew Blackmore
    0

    Thank you both for the response.

    @Sebastiaan - You saved my life. That is the issue and I can log in without issue.

     

    @Morten - I did figure that out eventually but thank you for all the help throughout the process. As soon as the SA gets directoryURLs set up for me, the site will be fully functional and operational!

     

    Thanks again everyone

Please Sign in or register to post replies

Write your reply to:

Draft