Last post Dec 15, 2016 09:26 AM by paaresh
Sep 20, 2016 07:46 AM|paaresh|LINK
I am getting error BC30561: 'Globalization' is ambiguous, imported from the namespaces or types 'System.Web, System'. while running
website on IIS but not at compile time in visual studio. It was working till yesterday but suddenly started showing error. I tried cleaning temp files and re-building website, reinstalled framework etc but no luck.
I am using Windows 10 Home
Visual Studio 2013 with Update 5
The website is developed on Framework 4.5.1
There is no newer version of Framework installed on my machine.
One solution could be : I use fully qualified name for "Globalization" name space but I am thinking that why suddenly it started giving error.
What could be the issue?
Edit: I think the error is because of 4.6 framework pre-installed in Windows 10.
Sep 21, 2016 04:53 AM|Nan Yu|LINK
Hi paaresh ,
You may get that because you have provided a name that is ambiguous and therefore conflicts with another name. You must disambiguate names yourself. Try to search "Globalization" in your application and modify the related code . It's strange the application suddenly
show error as you said it works yesterday . Have you changed the target framework for the website ? You could also refer to below thread which discuss same error as yours :
Dec 15, 2016 09:26 AM|paaresh|LINK
From error message its clear that its ambiguous so applying full name or import will work but its not advisable to change lakhs of line of working code just for Microsoft issue. I think it was because of Windows 10 update. I reverted back Windows 10 updated
and it was started working as before without error.