broekies
  •  broekies
  • 52% (Neutral)
  • YAF Forumling Topic Starter
2012-11-24T02:45:14Z
I have YAF running OK on Windows server 2003 IIS6 ok (x86)
I copied the tree to Windows server 2008 R2 IIS7.5, but get the following error:

Could not load file or assembly 'YAF.Classes.Core' or one of its dependencies. The system cannot find the file specified.

What can be wrong?
Sponsor
tha_watcha
2012-11-24T07:50:20Z
You didn't copy all files the Yaf.classes.Core.dll missing, in the bin folder. Or did you also upgraded to the later version of yaf, and forgot to update the web.config file.
UserPostedImage
broekies
  •  broekies
  • 52% (Neutral)
  • YAF Forumling Topic Starter
2012-11-24T10:20:54Z
I copied all from one server to the other. However, yaf.classes.core.dll does not even exists (but running on IIS6)
Version 1.9.5.6


<?xml version="1.0"?>
<configuration>
	<configSections>
		<section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" requirePermission="false"/>
	</configSections>
	<connectionStrings configSource="db.config" />
	<appSettings configSource="app.config"/>
	<rewriter configSource="URLRewriter.config"/>
	<system.net>
		<mailSettings>
			<smtp configSource="mail.config"/>
		</mailSettings>
	</system.net>
	<system.web>
		<httpRuntime requestValidationMode="2.0" />
		<trace enabled="false"/>
		<xhtmlConformance mode="Transitional"/>
		<customErrors defaultRedirect="/forum/Error.aspx" mode="Off"/>
		<globalization culture="nl-NL" uiCulture="nl-NL" requestEncoding="utf-8" responseEncoding="utf-8"/>
		<authentication mode="Forms">
			<forms name=".YAFNET_Authentication" protection="All" timeout="43200" cookieless="UseCookies"/>
		</authentication>
		<!-- Set debug to "true" to test out the system in development -->
		<compilation defaultLanguage="c#" debug="false" targetFramework="4.0">
			<assemblies>
				<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
				<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
				<add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			</assemblies>
		</compilation>
		<httpHandlers>
			<add verb="GET" path="Resource.ashx" type="YAF.YafResourceHandler, YAF"/>
		</httpHandlers>
		<httpModules>
			<add name="YafTaskModule" type="YAF.Core.YafTaskModule, YAF.Core"/>
			<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter"/>
		</httpModules>
		<pages validateRequest="false" smartNavigation="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
			<controls>
				<add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
				<!-- Default: use non-dynamic (compiled classes) in YAF -->
				<add tagPrefix="YAF" namespace="YAF.Controls" assembly="YAF.Controls"/>
				<add tagPrefix="YAF" namespace="YAF.Controls.Statistics" assembly="YAF.Controls"/>
				<add tagPrefix="YAF" namespace="YAF.Classes"/>
				<add tagPrefix="YAF" namespace="YAF"/>
			</controls>
			<namespaces>
			</namespaces>
		</pages>
		<roleManager enabled="true" defaultProvider="YafRoleProvider">
			<providers>
				<clear/>
				<add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafRoleProvider" type="YAF.Providers.Roles.YafRoleProvider"/>
			</providers>
		</roleManager>
		<membership defaultProvider="YafMembershipProvider" hashAlgorithmType="SHA1">
			<providers>
				<clear/>
				<add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafMembershipProvider" requiresUniqueEmail="true" useSalt="true" type="YAF.Providers.Membership.YafMembershipProvider"/>
			</providers>
		</membership>
		<profile enabled="true" defaultProvider="YafProfileProvider" inherits="YAF.Utils.YafUserProfile">
			<providers>
				<clear/>
				<add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafProfileProvider" type="YAF.Providers.Profile.YafProfileProvider"/>
			</providers>
		</profile>
	</system.web>
	<system.webServer>
		<validation validateIntegratedModeConfiguration="false"/>
		<modules>
			<remove name="YafTaskModule"/>
			<remove name="UrlRewriter"/>
			<add name="YafTaskModule" type="YAF.Classes.Core.YafTaskModule, YAF.Classes.Core" preCondition="managedHandler"/>
			<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" preCondition="managedHandler"/>
		</modules>
		<handlers>
			<add name="YafHandler" preCondition="integratedMode" verb="GET" path="Resource.ashx" type="YAF.YafResourceHandler, YAF"/>
		</handlers>
	</system.webServer>
...
</configuration>
tha_watcha
2012-11-24T10:32:52Z
If your are using 1.9.5.6 then you didnt update your web.config take a look at the readme.htm or the online documentation

http://yafnet.codeplex.c...rringTitle=Documentation 

Under STEP 3. Upgrade - The WEB.CONFIG FILE it describes which parts of the web.config you need to modify.
UserPostedImage
broekies
  •  broekies
  • 52% (Neutral)
  • YAF Forumling Topic Starter
2012-11-24T10:45:08Z
Thanks for your help.
However, I found the error within the webconfig, modules section. Weird that it worked on IIS6.
Anyway, it is running now and I am a happy camper.

And yes, I will update to the most recent later on.
tha_watcha
2012-11-24T10:47:19Z
Originally Posted by: broekies 

Thanks for your help.
However, I found the error within the webconfig, modules section. Weird that it worked on IIS6.



Because this section is only used by the IIS 7.x Webserver. Glad to see that it works now 😎


UserPostedImage

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved