Question : Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to

Windows 2008 R2 64bit server, IIS 7.0,  NET 3.51

Installing Education courses for Epicor 9.05

The courses install onto the web server fine ... no errors

When trying to access the courses from the Epicor Client I get the following:

Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error InformationModule IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x800700b7
Config Error Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'FormsAuthorizationModule'  
Config File \\?\C:\inetpub\wwwroot\web.config

Config Source
   40:     <modules>
   41:       <add name="FormsAuthorizationModule" type="Epicor.Mfg.Edu.Core.FormsAuthorizationModule, Epicor.Mfg.Edu.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
   42:     </modules>

If I comment out the offending stansa in the root web.config, ( <modules> ....... </modules> ), I can get to the table of contents of the courses, but the courses themselves do not launch, presumably because the module is not loading.

Through a web browser I get the same messages, until I comment out the lines, and then I get a default site image (The IIS 7 image).

If I edit line 41 to make the add name label different, I still get the above errors.

I think at its heart this is a IIS issue, but need to be turned in the correct direction.

Thank you

Answer : Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to

You can use jQuery http://jquery.com

Although I am not an ASP coder at all, You can access the variables as post variables on the asp page. Does that help?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
        
        function validate_field(){
                value = $("#textfield_id").val();
                if(value == ''){
                        alert("Please enter something in the field");
                        return false;
                }
                $.post("your_php_page.asp", { value: ""+value+"", another_variable: "testing" },
                        function(data){
                        //data is the output of your_php_page.php after it runs
                alert("Here is the data returned: " + data);
                        //you could also write the data on the page too
                        $("#response").html(data);
                });
        }

        
</script>
<div id="response"></div>
<input type="text" name="texfiled_name" id="texfield_id"> <input type="button" onClick="validate_field()" value="Check Field">
Random Solutions  
 
programming4us programming4us