Last post Feb 08, 2019 07:56 AM by AddWeb Solution
Feb 04, 2019 05:03 AM|baimars|LINK
I'm working on SignalRService and error occurs on this line
It's returning an error "Two Hubs must not share the same name"
Packages were updated. I don't have App_Code folder. Already cleaned bins.
When I set it to just simple SignalR, it works.
May I know other possible issues for this?
Feb 05, 2019 05:17 AM|Brando ZWZ|LINK
As far as I know, the problems was you put the hub class in App_Code folder in Web Application Project.
The App_Code folder is a special ASP.NET RUNTIME folder. It will generate two hub files which make this issue.
More details, you could refer to below article to know how app_code folder work:
Feb 07, 2019 02:31 AM|baimars|LINK
Thanks for your response.
I'm using a Web Application project and I don't have App_Code folder.
Any other suggestions to check? Thanks!
Feb 08, 2019 07:56 AM|AddWeb Solution|LINK
We should never use the App_Code folder for actual system code, it should be for your web forms only.You use the App_Code folder in anything but WebForms as that's the place where you can simply add code pages (even on the live server) and they'll compile
at run time.
We created a separate folder called _Code and place our code in there .