How do I configure MATLAB Builder NE 4.0 (R2011a) Webfigures on 64-bit IIS 7.5 with .NET 4.0?

2 views (last 30 days)
I want to use Webfigures in my ASP.NET Web Application which is using .NET Framework 4.0. Further, I want to deploy this Web Application on a 64-bit IIS 7.5 server.
As I am working with a 64-bit project I cannot easily use the WebFigureControl from the Toolbox in Visual Studio. Also using .NET Framework 4.0 appears to pose some (security) restrictions. Which exact steps do I need to take to manually get Webfigures running on my server?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 25 Jan 2017
The general steps for manually installing the WebFigureService on 64-bit servers are given in the "Deploying a MATLAB Figure Over the Web Using WebFigures" -> "Advanced Configuration of a WebFigure" section in the MATLAB Builder NE documentation. A short summary is also given here:
1. Copy WebFiguresService.dll to your Web Application's "bin" directory.
2. Add the following to your Web Application's 'Web.config system.web' section:
<httpHandlers>
<add path="__WebFigures.ashx"
verb="GET"
type="MathWorks.MATLAB.NET.WebFigures.Service.Handlers.Factories.Http.WebFigureHttpHandlerFactory"
validate="false" />
</httpHandlers>
When working with .NET Framework 4.0 on IIS 7.5 there are two more configuration settings which you need to take into account, in IIS Manager:
1. Under the server wide "ISAPI and CGI Restrictions" settings you need to enable "Allow extension path to execute" for the ASP.NET v4.0.XXXX version which you are using.
2. The Application Pool which is used by your Web Application should use "Managed pipeline mode" = "Classic". This means that if your server already has an "ASP.NET v4.0 Classic" Pool, you could assign your Application to this. Or if you want to create your own Pool, make sure you set "Managed pipeline mode" correctly to "Classic".

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2011a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!