TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
John Dsa
NA
28
677
Create Video From PowerPoint Issues - IIS
Oct 14 2020 11:56 AM
I am using Microsoft Interop Library to create a Video from a powerpoint presentation.The power point presentation contains internal embedded videos and animations.
The Interop library works perfectly well and we are able to create the video successfully when we run the application in the Visual studio.
When we deploy the code in the IIS Server the Video creation still works successfully however, the Videos embedded internally within the presentation do not work.
Does anyone have any idea about this behavior of IIS and Visual Studio?
We have checked the Mime types in IIS and all extensions .mov. .mp4 are already present
Here is the code :
var videoRelativePath =
"\\UserData\\User_"
+ templateObj.UserId +
"\\VideoTemplate\\Vid_"
+ timeStampNew +
".mp4"
;
var videoPath = _environment.ContentRootPath + videoRelativePath;
ErrorLoging.LogMessageInLogFile(System.DateTime.Today.ToLongTimeString() +
" - "
+
"Initializing powerpoint application for video creation"
);
Microsoft.Office.Interop.PowerPoint.Application ppApp =
new
Microsoft.Office.Interop.PowerPoint.Application();
Microsoft.Office.Interop.PowerPoint.Presentations oPresSet = ppApp.Presentations;
ErrorLoging.LogMessageInLogFile(System.DateTime.Today.ToLongTimeString() +
" - "
+
"OPening the presentation Instance"
);
Microsoft.Office.Interop.PowerPoint._Presentation oPres = oPresSet.Open(
videoFileNameForConversion,
MsoTriState.msoFalse,
MsoTriState.msoFalse,
MsoTriState.msoFalse);
//System.Threading.Thread.Sleep(180);
oPres.UpdateLinks();
try
{
//CreateVideo(string FileName, bool UseTimingsAndNarrations, int DefaultSlideDuration, int VertResolution, int FramesPerSecond, int Quality)
ErrorLoging.LogMessageInLogFile(System.DateTime.Today.ToLongTimeString() +
" - "
+
"Calling CreateVideo "
);
oPres.CreateVideo(videoPath);
}
What we have already Tried:
IIS is running on local admin account and powerpoint has been granted launch permissions in DComconfig
Mime types for Video mp4 and .mov are added in IIS server
Reply
Answers (
0
)
how to do WhatsApp integration in .net core
Currently we have legacy monolithic solution built on .NET and angular