Add Video Tracks

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/17/2012 9:22:18 AM
Gravatar
Total Posts 30

Add Video Tracks

Hi Joe,

Using Mojo portal 2.3.9.0, sql server 2005. Log in as administrator

I can add, play video tracks of any size without any problem. Thanks for helping with that.

New Problem:

The problem happens if I add a track of video of different file type  in the same group. It throws error

We're sorry but a server error has occurred while trying to process your request.The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

Now I know which trcak is creating this problem and I want to remove this track that is creating the problem. There is no way I can edit this page to remove this track as I cannot view this page and select the option Edit this Page.

I have to go look into sql server for added track. Delete the record and everything works fine. But I don't want users calling me to do this everytime. I want them to be able to delete track that is causing problem. They are also admin to the site.

Please Suggest a solution.

Thanks

 

 

 

10/17/2012 9:30:15 AM
Gravatar
Total Posts 18439

Re: Add Video Tracks

Start with Basic Troubleshooting to get the error details.

Post the error here but please don't post large chucks of your log, try to post just a single error with the full stack trace.

I suspect you just need to configure the mime type for the different type of file to prevent this error, or change the allowed file extensions from web.config to prevent users from uploading that type of file.

See also the troubleshooting section of the article Using the Audio and Video Players which explains about mime types.

Hope that helps,

Joe

10/17/2012 9:48:22 AM
Gravatar
Total Posts 30

Re: Add Video Tracks

Hi Joe,

The Tracks in the Edit Media Player is .mp4. and the File I added is .mpg.  Config File is set to accept these files.

I know the problem. Its a wrong file. I want to delete this track. If I cannot view this page, I cannot select edit player. The problem is if I cannot edit this page, I cannot delete the track that is throwing error.

So I am looking at a solution of  how to delete this track without going to backend database.

Thanks,

AS

10/17/2012 10:01:02 AM
Gravatar
Total Posts 18439

Re: Add Video Tracks

I still need to see the error detail. I can't do anything without that.

10/17/2012 10:37:45 AM
Gravatar
Total Posts 30

Re: Add Video Tracks

The Error is

Event Type: Warning
Event Source: ASP.NET 4.0.30319.0
Event Category: Web Event
Event ID: 1309
Date:  10/17/2012
Time:  9:20:52 AM
User:  N/A
Computer: xxxxxx

Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 10/17/2012 9:20:52 AM
Event time (UTC): 10/17/2012 1:20:52 PM
Event ID: 8aed0aba457f400087ade5e7c249b12a
Event sequence: 38453
Event occurrence: 4
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1/Root-1-129948985185835694
    Trust level: Full
    Application Virtual Path: /
    Application Path: x:\xxxx\MojoPortal\
    Machine name: xxxxxx
 
Process information:
    Process ID: 16344
    Process name: w3wp.exe
    Account name: xxxxxxxx
 
Exception information:
    Exception type: Exception
    Exception message: No Matching Video File Extension Found
   at mojoPortal.MediaPlayerUI.VideoPlayer.SetupScripts()
   at mojoPortal.MediaPlayerUI.VideoPlayer.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 
 
Request information:
    Request URL: http://demo7.cityofstamford.org/Default.aspx?pageid=2158
    Request path: /Default.aspx
    User host address: 64.251.53.231
    User: xxxxxx    Is authenticated: True
    Authentication Type: Forms
    Thread account name: xxxxxxx

 
Thread information:
    Thread ID: 7
    Thread account name: xxxxx

    Is impersonating: False
    Stack trace:    at mojoPortal.MediaPlayerUI.VideoPlayer.SetupScripts()
   at mojoPortal.MediaPlayerUI.VideoPlayer.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Again my intention is not to resolve this error I want to be able to just delete the track and add a good one from the user interface.

Thanks, Really appreciate any suggestion

AS

 

 

10/17/2012 10:49:00 AM
Gravatar
Total Posts 18439

Re: Add Video Tracks

The only thing I can do is add error handling for that in the next release. I was hopijng it would show a more specific error type than just Exception because I don't generally like to trap general Exceptions.

But in this case I'll just have to add code like

try
{

SetupScripts();

}
catch(Exception ex)

log.Error(ex);

}

to keep it from crashing the page.

So for now I guess you'll have to either configure your server to handle .mpg mime type which would solve it permanently and immediately or delete the track from the database.

I'll add that code in the next release to prevent it from crashing the page.

Best,

Joe

10/17/2012 10:54:16 AM
Gravatar
Total Posts 18439

Re: Add Video Tracks

Note that if adding this file type to web.config isn't solving it you can directly configure mime types in IIS. In IIS 7.x in the very top node has an icon for mime types that will apply it at the server level though it can also be done at the site level. On my machine .mpg is configured as video/mpeg

Hope that helps,

Joe

10/17/2012 11:21:47 AM
Gravatar
Total Posts 30

Re: Add Video Tracks

Thanks Joe,will try that for now and wait for the new release.

AS

10/17/2012 12:04:53 PM
Gravatar
Total Posts 18439

Re: Add Video Tracks

I take it back this is not a server configuration problem and cannot be fixed by adding a mime type. After looking at the code (I didn't write this feature myself so I didn't know off the top of my head) I discovered that we were actually throwing an Exception from code if the file extension is not supported by the video player.

I've changed it to throw a more specific ArgumentException and added handling to trap and log that error so it won't crash the page. I've also added a more specific config setting for allowed file types so users will be prevented from uploading file types not supported by JPlayer in the Video and Audio features to avoid this error.

So this will be fixed in the next release but the only way to solve the problem at the moment is to delete the track from the database and advise users not to upload .mpg files. Sorry for the inconvenience.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.