MediaBrowser / Emby

Emby Server is a personal media server with apps on just about every device.
https://emby.media
GNU General Public License v2.0
4.14k stars 805 forks source link

MBT only runs after re-installation #66

Closed CBers closed 11 years ago

CBers commented 11 years ago

I cannot get MBT to consistently start up.

I always get "There was an error launching Media Browser: One of more errors occurred".

The only way I can start MBT, is to delete the C:\ProgramData\MediaBrowser-Theater folder and re-run the setup.

MBT then starts OK, and I can navigate, but as soon as I exit and try to restart it, I get the above error.

Full log file here: https://dl.dropbox.com/u/8367652/MBT-634991227092106733.log

I know MBT is not a high-priority at the moment, but wondered if anyone else was experiencing the same issue ??

TIA.

ebr11 commented 11 years ago

Here is the actual error:

Could not load file or assembly 'MediaBrowser.Controller, Version=3.0.4815.276, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

Is it possible we've left something out of the deployment package that is loaded in memory while the installer is running but not when we run MBT directly...?

abobader commented 11 years ago

I am not facing this problem, after the install, mbt run fine, close it, re start it again without any issue.

ebr11 commented 11 years ago

Then what on earth is going wrong with CBers installs?

CBers, exactly how are you installing? You should not be downloading anything and re running it. You should always be running the setup directly from the web link.

CBers commented 11 years ago

I downloaded the MBT setup.exe from the "Build Notifications" post on the MB3DEV forums (http://www.mb3admin.com/downloads/dev/mbt/setup.exe)

I run this to install MBT and it downloads the latest build.

Is there another way I should be using ??

What is the "WEB LINK" you mention ??

RedshirtMB commented 11 years ago

I have to admit that confuses me too. Clicking on the URL initiates a file download. Eric makes is sound like the installer shouldn't be downloading, rather running remotely.

RedshirtMB commented 11 years ago

Just tested. I'm seeing this issue as well.

Log output is the same as CBers.

CBers commented 11 years ago

I'm glad it's not just me :-)

Thought I was going mad.

xzener commented 11 years ago

I am not experiencing this either... Very odd.

EDIT: What build of MBT is this occurring on??

CBers commented 11 years ago

Whatever is downloaded via setup.exe.

xzener commented 11 years ago

I just installed the latest and greatest, still working ok for me.

abobader commented 11 years ago

I just test it again, I close and open MBT like 5 times after the new install, no problem at all.

RedshirtMB commented 11 years ago

CBers. Do you have Trakt installed. If so delete it from both the server and MBT plugins folder.

It seems that on first run the plugins aren't loaded in MBT Then on subsequent runs they are.

CBers commented 11 years ago

I do yes.

I have deleted it and now I can start MBT without issue.

RedshirtMB commented 11 years ago

Closing this then. I'll open a bug on the MBT issue tracker.

ebr11 commented 11 years ago

To clarify again the install process. When you click on the link to "setup.exe" you need to "RUN" that program, not download and save it somewhere to run over and over again. The next time you want to install, you need to go to the web link and run setup.exe again (let the browser re-download and re-run it from the temporary location).

Basically, you need to be sure you are always re-downloading the "setup.exe" program.

CBers commented 11 years ago

That still sounds confusing :-)

You say to run from the link, then you say we need to be sure to re-download the setup.exe program.

Why does it matter ?? Surely the setup.exe isn't going to change is it ?

In Chrome, you can't run an exe, like you can in IE, you have to download it, then open it.

ebr11 commented 11 years ago

When you click on a link in a browser that is an executable file, you get the option of either saving it or running it. I'm saying to run it. This is in IE. In chrome, it downloads it automatically and then shows it on the bottom bar where, if you then click on it, it will run.

This is what needs to be done each time if you are installing outside of the dashboard because yes the setup.exe does change. That file is not even our setup program. It is the ClickOnce pre-requisite installer.

So, you need to treat our installation just like you do Chrome (they use the same technology). You always click on the link in the browser, let it download and run that exact copy of the setup program. Do NOT save that setup program somewhere for future use as it is transient.

Sorry if all this is confusing. I'm probably making it sound harder than it really is. Basically always click the link and re-download/run the setup.exe every time you install. That's all.

CBers commented 11 years ago

OK, fair enough.

You can't update MBT via the dashboard at the moment can you, or will that be coming ??

ebr11 commented 11 years ago

Not via the dashboard, but via MBT itself will be coming.