RSS
 

Archive for the ‘.NET’ Category

FxCop Code Analysis Error When Building a VS Project

11 May

Error message: In order to perform Code Analysis on managed binaries, MSBuild needs to launch FxCop. MSBuild is unable to locate the FxCop binaries. Make sure Visual Studio Team Edition for Software Developers or Visual Studio Team Suite is installed and run MSBuild from within the “Visual Studio Command Prompt” or specify the path to FxCop by setting the FXCOPDIR environment variable.

To get rid of this error, we’ll make false Run Code Analysis property.

Open .csproj file with notepad;

...
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>true</RunCodeAnalysis>
<CodeAnalysisRules>+!Microsoft.Security</CodeAnalysisRules>
</PropertyGroup>
...

Just replace “<RunCodeAnalysis>true</RunCodeAnalysis>” with “<RunCodeAnalysis>false</RunCodeAnalysis>”

 
No Comments

Posted in .NET, English

 

SOAP Testing URL

15 Jul

SOAP URL is used for Remoting in .NET applications.

To test if the service is available, we can use internet explorer.

Add “?wsdl” after the URL and see the XML output.

URL = “http://10.150.60.81/Remoting01/MessageBroker.soap”

Test URL = “http://10.150.60.81/Remoting01/MessageBroker.soap?wsdl”

 
No Comments

Posted in .NET, English