# Database version error

**URL:** <https://forum.litium.com/t/database-version-error/313>\
**Category:** Questions\
**Created:** [October 25, 2018, 1:52pm UTC](https://forum.litium.com/t/database-version-error/313 "2018-10-25T13:52:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![emilsjog](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@emilsjog](https://forum.litium.com/u/emilsjog)\
**Post date:** [October 25, 2018, 1:52pm UTC](https://forum.litium.com/t/database-version-error/313/1 "2018-10-25T13:52:51Z")

</div>

Got this error without triggering any scripts or commands.  
`Version of database and files are not matching. Database version is 7.0.0.7329(89eb4586c:6bdea5d7f), Litium application version is 7.0.0.7309(14bb45221:e5f41a209). Please update your database or files and restart the website.`

Have tried to run the command `Update-LitiumDatabase` but it doesn’t make any change.  
Can I manually change the version directly in the database?

Litium version: 7

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [October 25, 2018, 2:00pm UTC](https://forum.litium.com/t/database-version-error/313/2 "2018-10-25T14:00:50Z")

</div>

When it says that the application is running `7.0.0.7309` it means that in your bin-folder you still have any of the DLLs left from the `7.0.0-beta2`. Ensure that you have the latest packages installed in all of your project.

---

<div class="post-metadata">

**Author:** ![emilsjog](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@emilsjog](https://forum.litium.com/u/emilsjog)\
**Post date:** [October 25, 2018, 2:09pm UTC](https://forum.litium.com/t/database-version-error/313/3 "2018-10-25T14:09:00Z")

</div>

Removed all bin and obj folders, rebuilt the solution and all packages are from Accelerator Mvc 7.0.0.zip. But I still get the same error. Any more suggestions?

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [October 25, 2018, 2:13pm UTC](https://forum.litium.com/t/database-version-error/313/4 "2018-10-25T14:13:41Z")

</div>

Can you check the version number on the `Litium.Foundation.dll`-file?

---

<div class="post-metadata">

**Author:** ![emilsjog](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@emilsjog](https://forum.litium.com/u/emilsjog)\
**Post date:** [October 25, 2018, 2:15pm UTC](https://forum.litium.com/t/database-version-error/313/5 "2018-10-25T14:15:15Z")

</div>

Fileversion: 7.0.0.7329  
Productversion: 7.0.0

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [October 25, 2018, 3:12pm UTC](https://forum.litium.com/t/database-version-error/313/6 "2018-10-25T15:12:08Z")

</div>

Can you copy/paste the result from the `Update-LitiumDatabase` command?

---

<div class="post-metadata">

**Author:** ![emilsjog](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@emilsjog](https://forum.litium.com/u/emilsjog)\
**Post date:** [October 26, 2018, 5:50am UTC](https://forum.litium.com/t/database-version-error/313/7 "2018-10-26T05:50:03Z")

</div>

I did send the output as a pm to you.

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [October 26, 2018, 6:21am UTC](https://forum.litium.com/t/database-version-error/313/8 "2018-10-26T06:21:00Z")

</div>

The output is correct and everything looks fine and is using the correct versions.

Can you send me the 3 csproj files on the same way also?

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [October 26, 2018, 6:56am UTC](https://forum.litium.com/t/database-version-error/313/9 "2018-10-26T06:56:59Z")

</div>

I have compared the reference in the csproj files and they are identical with the references in the accelerator package.

Can you send the full solution folder (complete code) including the package-folder and database to me?

---

<div class="post-metadata">

**Author:** ![emilsjog](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@emilsjog](https://forum.litium.com/u/emilsjog)\
**Post date:** [October 26, 2018, 7:08am UTC](https://forum.litium.com/t/database-version-error/313/10 "2018-10-26T07:08:30Z")

</div>

Yes, I will fix that

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [October 26, 2018, 7:48am UTC](https://forum.litium.com/t/database-version-error/313/11 "2018-10-26T07:48:16Z")

</div>

Not sure if this is related but when I look at the connection string (have masked all private details)

```auto
Pooling=true;User Id= ****;Password=**** ;Database=Litium;Server= ****\SQLEXPRESS01,1432;Initial Catalog=**** ;MultipleActiveResultSets=True

```

we can see that it includes both `Database` and `Initial Catalog` attributes that have the same meaning, but the values is different (I did not see this in the first output from the `Upgrade-LitiumDatabase`). Can you clean up the connection string to only have one of this attribute and try if you will get the solutuion to load correctly.

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [October 26, 2018, 7:57am UTC](https://forum.litium.com/t/database-version-error/313/12 "2018-10-26T07:57:59Z")

</div>

I can also run your solution inside Visual Studio (CTRL + F5) after I loaded the solution and the site is starting and forward the browser into login screen for back office.

---

<div class="post-metadata">

**Author:** ![emilsjog](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@emilsjog](https://forum.litium.com/u/emilsjog)\
**Post date:** [October 26, 2018, 8:16am UTC](https://forum.litium.com/t/database-version-error/313/13 "2018-10-26T08:16:02Z")

</div>

Found now what was wrong. I opened another solution that was running the beta-version in VS and that solution had the same IISUrl as my new version7 website.A configuration was then automatically made to the IIS-site when I opened the beta version so that the new version pointed to the wrong directory. That is why I got the mismatch in version towards the database.  
I noticed this in the litium.log that a `IIS configuration change` made the environment to shut down.
