Original start:
http://anforen.com/wp/2017/08/extensionattribute_compilerservices/
BC30560: ' ExtensionAttribute ' is ambiguous in the namespace ' System.Runtime.CompilerServices '
An error occurred during the compilation of resources required to provide services to the request. Please check the following specific error details and modify the source code appropriately. Compiler error message: BC30560: "ExtensionAttribute" is ambiguous in namespace "System.Runtime.CompilerServices". SOURCE error: [No related source rows]
Source file: Internalxmlhelper.vb Line: 9
This problem is handled in such a way that only the page file such as ASPX, the first line plus
<%@ Page language= "C #" inherits= "system.web.mvc.viewpage<dynamic>"%>
Can.
====================================
The file "" cannot be copied to "Bin\*.*". Access to the path "Bin\*.*" was denied. Solving method
If there is no particular code error, it updates an automatically acquired webserive
Then nothing can be done, direct vs close, and open it again.
=================================
Original start:
http://anforen.com/wp/2017/08/extensionattribute_compilerservices/
Because of the bin directory, it is not generally put into VSS source management. When you collaborate with many people, you often compile problems.
So the use of the DLL file into the packages directory, and into the source management. However, when Point vs is regenerated, the bin directory is cleared and the DLL file is missing.
In this case, you can right-click on the project, select Properties, select Build Events, and then type in the pre-build event command line
xcopy/r/y $ (solutiondir) $ (solutionname) \packages $ (TargetDir)
That is, you can automatically copy the DLL from packages to the bin directory before each build or F5 debugging.
The error 7 command "xcopy/r/y xx\packages xx\bin\" has exited and the code is 4.
If this error occurs when generating or F5 debugging, it is only necessary to stop the ASP.net Development server in the lower-right corner of the Windows taskbar.
================================
The invocation between the following methods or properties is ambiguous: "System.IO.TextWriter.Write (String, params object[])" and "System.IO.TextWriter.Write (char[])"
The invocation between the following methods or properties is ambiguous: "System.IO.TextWriter.Write (String, params object[])" and "System.IO.TextWriter.Write (char[])" Description: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace for more information about the error and where the error occurred in the code.
Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The invocation between the following methods or properties is ambiguous: System.IO.TextWriter.Write ( String, params object[]) "and System.IO.TextWriter.Write (char[))"
SOURCE Error:
String, params object[] System.IO.TextWriter.Write
This problem, you just need to add the corresponding type on the front.
An example is provided:
The original error is like this
<%=VIEWBAG.CURDEP%> "
Change this into a sample
<%= (String) viewbag.curdep%> "
That's normal.