How can I set up IIS to work with a web application developed in Visual Studio 2010 and to use a .NET assembly from MATLAB Builder NE 4.1 (R2011b)?

3 views (last 30 days)
I have created a .NET assembly with MATLAB Builder NE 4.1 (R2011b) and am including it in a web application developed in Visual Studio. In order to test and debug the application, I would like to use IIS 7.0 or 7.5 on Windows 7.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 15 Dec 2016
Edited: MathWorks Support Team on 15 Dec 2016
IIS is included with Windows 7 and needs to be enabled. Then, some other steps may need to be taken to finish setting up the sever. To enable IIS please:
1. Navigate to 'Start Menu -> Control Panel -> Programs and Features' and click 'Turn Windows Features On or Off' in the left-hand side of the resulting dialog box.
2. Adjust the features in the resulting dialog to include at least those shown here:
3. If this is the initial setup, ASP.NET will likely need to be registered with IIS if it has not been. To do this, open a command window as an administrator by:
a. Clicking on the Start Menu and searching for CMD
b. Right-clicking the CMD icon and choosing 'Run as Administrator'.
Then, if 64-bit web applications will be run, navigate to:
%WindowsDir%\Microsoft.NET\Framework64\<version number>\
if 32-bit web applications will be run, change to:
%WindowsDir%\Microsoft.NET\Framework\<version number>\
where version number is the version of the .NET Framework to be used in IIS.
Finally, execute the command:
 
aspnet_regiis.exe -i
4. Open the IIS Manager by opening the Start Menu and searching for 'Internet Information Services Manager' in the 'Search Programs and Folders' search box. Click on 'Internet Information Services (IIS) Manager'.
5. In the left-hand pane of the resulting dialog, select the machine on which the server is running and double-click on the icon labeled 'ISAPI and CGI Restrictions' as shown here:
6. Finally, enable support for the version of the .NET Framework registered in step (3) by selecting the appropriate entry and clicking the 'Allow' link in the right-hand pane as shown in:
The server is now configured and application pools may be added to it in which web applications may be run. Instructions for doing this may be found in the related solutions below.

More Answers (0)

Products


Release

R2011b

Community Treasure Hunt

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

Start Hunting!