YAFLogo

philw
  • philw
  • 80% (Honored)
  • YAF Forumling Topic Starter
15 years ago
I'm trying to upgrade a 1.9.1.8 installation to the latest 1.9.3. The current 1.9.1.8 was an upgrade from earlier versions and is installed in a subdirectory but not as a Web Application - see here  for how that was done back then. My old instructions there are out of date but I'll happily update them if I can figure out how to do this again on the latest version.

The current version is running here .

What I did...

(1) Removed the old YAF version including yaf.dll from the root Bin folder.

(2) Unzipped the new folders into place and then shifted the App_Code and bin stuff up to the web server level.

(3) Got the connexion string file and app.config and set those up correctly (including the "root" key).

(4) Merged the YAF web.config (the v191 upgrade config) with my own web.config

(5) Updated my "forums.aspx" page where I put the YAF control so it looks like this (the user controls are now defined by YAF in the web.config so I commented out the TagPrefix lines):

<%@ Page Language="C#" MasterPageFile="~/menus.master" Inherits="CommonPage" %>

<%--
  <%@ Register TagPrefix="yaf" Namespace="yaf" Assembly="yaf" %>
  <%@ Register TagPrefix="yc" Namespace="yaf.controls" Assembly="yaf" %> 
--%>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
	<yaf:Forum runat="server" ID="forum" />
</asp:Content>

Then I run the site. The site itself will run ok and I can look at none YAF pages just fine. Then I hit the

forums.aspx page (in which the YAF control lives, above).

Kaboom...

Compiler Error Message: CS0117: 'Constants' does not contain a definition for 'Cache'

Source File: d:\websites\CoC_2009\yaf\controls\ForumStatistics.ascx.cs Line: 64

Anyone got any ideas on that? I'm missing something, but I'm not sure what it is.


Sponsor
philw
  • philw
  • 80% (Honored)
  • YAF Forumling Topic Starter
15 years ago
Ok, in the true way these things go, I think I found the answer to this, which is that you have to actually do the install before this will compile. Of course I don't want to do the install on live until I know I can make it work, but... well it looks like that's what I'm going to have to do. Oh well, that's what backups are for, and it'll probably work.
philw
  • philw
  • 80% (Honored)
  • YAF Forumling Topic Starter
15 years ago
Well, on the other hand, that's weird.

So I got the thing working as above on my test machine. Then I deployed that to my live machine. So on live, I:

1. Put up a holding page for the forms.

2. Deleted the old "yaf.dll" file. Put the bin and App_Code files in place on live.

3. Renamed the old YAF directory and uploaded the new files there from my test machine (those then include all the correct .config files I already set up.

4. Uploaded the new web.config with from my test machine.

And then "kicked" the live machine (it's on Mosso so you need to restart it manually), and then....

the whole live site dies with the error:

CS0246: The type or namespace name 'ProfileCommon' could not be found (are you missing a using directive or an assembly reference?)

Line 98:     #line hidden
Line 99:     
Line 100:    protected ProfileCommon Profile {
Line 101:        get {
Line 102:            return ((ProfileCommon)(this.Context.Profile));


Source File: c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d6296cee\64000bfd\App_Web_site.master.cdcab7d2.rchm6jk4.0.cs    Line: 100 

Which I can't really live with for very long so I had to back it all out.

Does anyone know what that could be? I have identical files in both systems. Why is it breaking the whole site? Looks like this is going to be a tricky one. I just want to upgrade from 1.9.1.8...!


csource
  • csource
  • 58.8% (Neutral)
  • YAF Forumling
15 years ago
Philw,

did you ever find a solutions? Looks like I am in the same boat as you were. Thanks for any help.

philw
  • philw
  • 80% (Honored)
  • YAF Forumling Topic Starter
15 years ago
No, I had a bunch of other things to do and I could see no way to fix this so I left it for now at the previous version.

I guess I'll eventually try again, and if that doesn't work switch YAF out for something else. I suspect it's a Mosso / cluster thing as otherwise the two IIS7/SQLserver 2008 installs I have are identical, but one works and the other doesn't.


the agony booth
15 years ago
I believe that code is autogenerated based on what's in the web.config, maybe your web.config is wrong? Here's what I have for the profile section:


<profile enabled="true" defaultProvider="YafProfileProvider" inherits="YAF.Classes.Utils.YafUserProfile">
     <providers>
          <clear/>
          <add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafProfileProvider" type="YAF.Providers.Profile.YafProfileProvider"/>
     </providers>
</profile>