I'm new to .net programming and just purchase a Winhost Basic. I already host a MVC web application at my root folder and I could access it via something like www.mysite.com. Then I have another MVC web application that I published to a sub directory called "/FacebookApps" as this application will served as a facebook apps. Here's the problem, I tried to access the Facebook Apps via www.mysite.com/FacebookApps but it return me with an error of my web config file saying something like "Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'xxxt.axd' " I suspect this had something to do with the root's web config file that conflict with the sub folder's web config file as they both are almost identical and the web server is treating these two web application as one. So heres the question, do I need a sub domain in order to host the sub folder's application? Because I dun need a xxx.mysite.com URL as my sub domain as I will point it to facebook. The URL www.mysite.com/FacebookApps will be just fine. If I really need a sub domain, do I have to follow those step stated in the sticky thread above? I think those step might not apply in my case as I don't need URL redirect I just need the sub directory able to run. Hope someone can help me as I'm still fresh in web developemnt. Here's the print screen of the error I encountered
Do you have the subfolder that has the MVC application uploaded to it setup as an application folder? You may want to look at this kb article. http://support.Winhost.com/KB/a635/what-is-the-application-starting-point-tool.aspx
See if you can set the inheritance property to false. Try looking at this link. http://www.aspdotnetfaq.com/Faq/how...ld-applications-in-subfolders-in-asp-net.aspx If this doesn't work you'll have to drop one of those duplicate entries.
It worked! Thanks for your link I tried to wrap the parent web config file with location tag but it give me an error saying the inheritInChildApplications is not allowed. Then I try put the <clear /> tag at the child web config file where there is any duplication and it worked