Call Savance Workplace Call Us: (248) 478-2555

Support Suite

User Login



 

Main

Knowledgebase: EIOBoard
IIS Deployment Error with .NET
Posted by Jacob Fairbairn on 25 October 2012 10:17 AM

When attempting to deploy a .NET 3.5 website on the default app pool in IIS7 having the framework section set to .NET 4.0, you may get the following error:

"There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined."

 

This error occurs because you are using.NET Framework 4.0, which means that the machine config already has some of the section defined that were used in previous asp.NET versions. In order to fix this error, you will have to do ONE of the following.

 

 

OPTION 1 - Set the Web Configuration to use .NET 4.0

  1. On your EIOBoard Server machine, open up a file explorer.
  2. Go to the Savance folder. By default it is in C:\Program Files for 32-bit machines or C:\Program Files (x86) for 64-bit machines. However, if you chose a different location during installation, go to that folder location.
  3. Go to: Savance\EIOBoard Server\EIOBoard
  4. Right-click on web.config, click on Open With and select Notepad (or a similar text editor).
  5. Near the top, locate the section that looks something similar to this (where the "..." represents a long line of text):

  6. <configSections>
        <sectionGroup...>
            <sectionGroup...>
                <section...>
                <sectionGroup...>
                    <section...>
                    <section...>
                    <section...>
                    <section...>
                </sectionGroup>
            </sectionGroup>
        <sectionGroup>
    </configSections>


  7. In each section with a "...", there is an attribute in the tag that is currently "Version=3.5.0.0". These are all located in about the same column in each line.
  8. Change each of these values to "Version=4.0.0.0". There should be 8 changes total, 1 in each long line of text in this section.
  9. Save the web.config file after making these changes, and you should no longer receive the error.

 

 

OPTION 2 - Create a New App Pool for EIOBoard

  1. On your EIOBoard Server machine, open up Internet Information Service (IIS) Manager.
  2. Under your server's name in the tree explorer on the left, right-click Application Pools and select Add Application Pool.
  3. Now give a meaningful name to your new Application Pool and make the .NET Framework version to be 2.0.


  4. After creating the App Pool, right-click on it and go to Advanced Settings. The Advanced Settings window will come up. 


  5. Next to Identity under Process Model, click on .
  6. The Application Pool Identity window will pop up. Select Custom Account, click on , and set your desired credentials. Be sure to note these credentials.


  7. When you are done, click in the Application Pool Identity window and in the Advanced Settings window to get back to the IIS Manager.
  8. Now browse to your EIOBoard site or Virtual Directory. Right-click on it and select Edit Permissions.
  9. In the EIOBoard Properties window, go to the Sharing tab and click on .
  10. Check the Share this folder checkbox and click .
  11. Right-click on your EIOBoard site or Virtual Directory again and select Add Application Pool. The Add Application window will pop up.


  12. Next to the current Application Pool, click on .
  13. The Select Application Pool window will pop up. Select your new Application Pool and then select .


  14. Back in the Add Application window, select a meaningful Alias.
  15. Under Physical Path, click on and select the path for the App. By default, it is in C:\Program Files\Savance\EIOBoard Server\EIOBoard for 32-bit machines or C:\Program Files (x86)\Savance\EIOBoard Server\EIOBoard for 64-bit machines. However, if you chose a different location during installation, use that folder location.
  16. Click on . Select Specific User and click on . Type in the credentials that you chose before in Step 6.
  17. Click on twice to get back to the Add Application window.
  18. Click on to make sure there is a next to the Authentication test and the Authorization test to make sure they are both valid.
  19. Select in the Add Application window to create your new App under your EIOBoard site or Virtual Directory.
  20. Now go to the WebService under your EIOBoard site or Virtual Directory.
  21. Repeat steps 8 through 19 to add an application under WebService. You should then no longer receive the error when deploying .NET.