Share vs. low version development project to vs High version 4 small problem resolution records

Source: Internet
Author: User
Tags stack trace

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
&LT;%=VIEWBAG.CURDEP%> "
Change this into a sample
<%= (String) viewbag.curdep%> "


That's normal.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.