YAFLogo

freddy
  • freddy
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
Hi Every one

I have downloaded the source code 1.9.6 - renamed / copied the web.config file and try to run the forum

but i get this error message:

The database 'C:\FORUM\YAF-SOURCE CODE\YETANOTHERFORUM.NET\APP_DATA\DATABASE.MDF' cannot be opened because it is version 661. This server supports version 612 and earlier. A downgrade path is not supported.

Could not open new database 'C:\FORUM\YAF-SOURCE CODE\YETANOTHERFORUM.NET\APP_DATA\DATABASE.MDF'. CREATE DATABASE is aborted.

An attempt to attach an auto-named database for file C:\Forum\yaf-source code\YetAnotherForum.NET\App_Data\Database.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

I have no idea what version 612 / 661 referes to. I'm running vs20010 pro with all updates, and have never heard about this.

Please help

Danish Freddy

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

Hi Every one

I have downloaded the source code 1.9.6 - renamed / copied the web.config file and try to run the forum

but i get this error message:

The database 'C:\FORUM\YAF-SOURCE CODE\YETANOTHERFORUM.NET\APP_DATA\DATABASE.MDF' cannot be opened because it is version 661. This server supports version 612 and earlier. A downgrade path is not supported.

Could not open new database 'C:\FORUM\YAF-SOURCE CODE\YETANOTHERFORUM.NET\APP_DATA\DATABASE.MDF'. CREATE DATABASE is aborted.

An attempt to attach an auto-named database for file C:\Forum\yaf-source code\YetAnotherForum.NET\App_Data\Database.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

I have no idea what version 612 / 661 referes to. I'm running vs20010 pro with all updates, and have never heard about this.

Please help

Danish Freddy

Originally Posted by: freddy 

Delete the database.mdf file an create a new database in vs. the version number referring to the SQL server version. Your SQL server is older then the database version.

freddy
  • freddy
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
thanks for quick reply

I dont quite understand your message. This message is comming the first time i run YAF. I expected to get a wizard to set up the database with a script.

The YAF have at this time no idea of my data storing choice and the age of my server ( which is a sql 2008 r2), but you recommend me to delete the file??

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

thanks for quick reply

I dont quite understand your message. This message is comming the first time i run YAF. I expected to get a wizard to set up the database with a script.

The YAF have at this time no idea of my data storing choice and the age of my server ( which is a sql 2008 r2), but you recommend me to delete the file??

Originally Posted by: freddy 

There is an empty database file included with yaf, the default db.config points to that file. You dont have to use that SQL express file, this file is for inexpirienced users to help them installing yaf.

Because the looks incompatible with your SQL server delete the file and adjust the connection string in the db.config to any db you want.

freddy
  • freddy
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
hi and thanks

now i'm up running. It was a little bit spooky. YAF told me that Asp.net web.config was not set to trustlevel=Full. I checked it and as it should be by default, it was set to full trust. So maybe there is a minor bug here( not to critic - just to tell you).

Any way I got it up running so THANKS again

danish Freddy

squirrel
12 years ago

hi and thanks

now i'm up running. It was a little bit spooky. YAF told me that Asp.net web.config was not set to trustlevel=Full. I checked it and as it should be by default, it was set to full trust. So maybe there is a minor bug here( not to critic - just to tell you).

Any way I got it up running so THANKS again

danish Freddy

Originally Posted by: freddy 

You will get trust issues if your YAF is not configured as an application in IIS. By eliminating some settings in web.config you can get it to run, but it won't be right. YAF folder should be set as an application in IIS, or configured to run as a 'part' of an application if you are trying to integrate it.


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend