Free Support Forum - aspose.com

Could not load type 'Aspose.Slides.WF.Template.CreateFromTemplate'

Im testing Aspose.Slides examples in Visual Studio 2012, but get this error


Could not load type ‘Aspose.Slides.WF.Template.CreateFromTemplate’.

What means that?


In your examples
http://www.aspose.com/demos/.net-components/aspose.slides/csharp/general/create-from-template.aspx
It referers to: MasterPageFile="~/tpl/Demo.Master"

What should I do there?










Hi Hakan,


Thanks for your interest in Aspose.Slides.

I have observed the requirement of using Aspose.Slides for .NET in Visual Studio 2012 environment. I regret to share that currently the requested support is not available. However, I have created an issue with ID SLIDESNET-33967 in our issue tracking system to further investigate and resolve the issue.

In second part of your query, you have pointed towards our examples. Can you pleas share the complete information and issue details in this regard.

Many Thanks,

Ok thanks for the answer!

What version of Visual Studio is supported?


The second part says error
File ‘~/tpl/Demo.Master’ was not found

<%@ Page language=“c#”
AutoEventWireup=“false”
CodeBehind=“CreateFromTemplate.aspx.cs”
Inherits=“Aspose.Slides.WF.Template.CreateFromTemplate”
MasterPageFile="~/tpl/Demo.Master"
Title = “Create Slide from Template - Aspose.Slides Demos”
%>
<asp:Content runat=“server” ContentPlaceHolderID=“MainContent”>
<table width=“90%” align=“center” cellspacing=“0” cellpadding=“0” border=“0”>
<tr>
<td height=“41” valign=“top”>
<img src="/Common/images/heading_lft.jpg" width=“19” height=“41” /></td>
<td width=“100%” class=“demos-heading-bg”>
<h2 class=“demos-heading-bg”>
 Create Presentation from Template - Aspose.Slides</h2>
</td>
<td valign=“top”>
<img src="/Common/images/heading_rt.jpg" width=“19” height=“41” /></td>
</tr>
</table>
<p class=“componentDescriptionTxt”>
The sample demo reads presentation file, fills some fields with custom data and
streams the resulting file to the client browser. </p>
<p class=“componentDescriptionTxt”>
It reads a <strong>demo.ppt</strong> and creates a presentation object from it,
then iterates all the slides one by one and finds the text to be updated and replaces
it with new text.
</p>
<p class=“componentDescriptionTxt”>
For example, it finds <strong>“H1”</strong> and replaces it with <strong>“Demo Presentation”
</strong>
</p>
<br />
<asp:Button ID=“Button1” runat=“server” Text=“Click here to create a presentation” />
</asp:Content>

Hi Hakan,


I like to share that Aspose.Slides for .NET is supported upto .NET 4.0 framework and Visual Studio 2010 supports it.

Secondly, I have tested the demo link shared by you and it works on my end without any issue. I have been able to generate the presentation using online demo and it has been shared for your kind reference as well.

Many Thanks,

Hi Hakan,


Can you please share the source demo.ppt that you have used for your investigation while testing with Microsoft Visual Studio 2012. As per our development team, the support for Visual Studio 2012 and .NET 4.5 is available in Aspose.Slides. Can you please also share the sample application developed in Visual Studio 2012 to reproduce the issue on our end.

Many Thanks,

Hi Hakan,


As per our development team, the support for Visual Studio 2012 and .NET 4.5 is available in Aspose.Slides.

If there is still issue on your end then Can you please share the source demo.ppt that you have used for your investigation while testing with Microsoft Visual Studio 2012. Can you please also share the sample application developed in Visual Studio 2012 to reproduce the issue on our end.

Many Thanks,