YAFLogo

julien
  • julien
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
Hello,

i try to install a new version of YAF Forum (V1.9.4), with:

- Windows 2003 Server

- SQL Server 2005

I have already a Website in IIS,

1 ) I create Virtual Directory in Web Site

2 ) I create a empty database in SQL 2005 (yafnet)

3 ) I rename recommanded-Net-web.config to web.config

4 ) I create a user for database yafnet with all right (SQL authentification)

5 ) Forum directory have all the rights

6 )i try to install my web site http://xxxxx/forum/install (installation Wizard)

7 ) In wizard, test database is successful

8 ) My site is in debug mode: CustomError is Off

9 ) When I arrive in Initialize/ Upgrade page i clic in the next button and i have this message: 🤬

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.Exception: FILE:

mssql/tables.sql

ERROR:

Invalid column name 'name'.

Invalid column name 'value'.

STATEMENT:

-- Only remove User table columns if version is 30+

IF EXISTS (SELECT ver FROM (SELECT CAST(CAST(value as nvarchar(255)) as int) as ver FROM [dbo].[yaf_Registry] WHERE name = 'version') reg WHERE ver > 30)

BEGIN

if exists(select 1 from syscolumns where id=object_id('[dbo].[yaf_User]') and name='Gender')

begin

alter table [dbo].[yaf_User] drop column Gender

end

if exists(select 1 from syscolumns where id=object_id('[dbo].[yaf_User]') and name='Location')

begin

alter table [dbo].[yaf_User] drop column Location

end

if exists(select 1 from syscolumns where id=object_id('[dbo].[yaf_User]') and name='HomePage')

begin

alter table [dbo].[yaf_User] drop column HomePage

end

if exists(select 1 from syscolumns where id=object_id('[dbo].[yaf_User]') and name='MSN')

begin

alter table [dbo].[yaf_User] drop column MSN

end

if exists(select 1 from syscolumns where id=object_id('[dbo].[yaf_User]') and name='YIM')

begin

alter table [dbo].[yaf_User] drop column YIM

end

if exists(select 1 from syscolumns where id=object_id('[dbo].[yaf_User]') and name='AIM')

begin

alter table [dbo].[yaf_User] drop column AIM

end

if exists(select 1 from syscolumns where id=object_id('[dbo].[yaf_User]') and name='ICQ')

begin

alter table [dbo].[yaf_User] drop column ICQ

end

if exists(select 1 from syscolumns where id=object_id('[dbo].[yaf_User]') and name='RealName')

begin

alter table [dbo].[yaf_User] drop column RealName

end

if exists(select 1 from syscolumns where id=object_id('[dbo].[yaf_User]') and name='Occupation')

begin

alter table [dbo].[yaf_User] drop column Occupation

end

if exists(select 1 from syscolumns where id=object_id('[dbo].[yaf_User]') and name='Interests')

begin

alter table [dbo].[yaf_User] drop column Interests

end

if exists(select 1 from syscolumns where id=object_id('[dbo].[yaf_User]') and name='Weblog')

begin

alter table [dbo].[yaf_User] drop column Weblog

end

if exists(select 1 from syscolumns where id=object_id('[dbo].[yaf_User]') and name='WeblogUrl')

begin

alter table [dbo].[yaf_User] drop column WeblogUrl

alter table [dbo].[yaf_User] drop column WeblogUsername

alter table [dbo].[yaf_User] drop column WeblogID

end

END

A idea ?

Thank you very much,

julien

:)

Sponsor
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
15 years ago
Probably the coalition on your database. What it is set to?
julien
  • julien
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
Thanks you for your responce,

DBconfig:

UserYafnet is own to database yafnet