It's easy… well, if you know where to look…
Step 1: Open "FTP Logging" settings
Step 2: Click "Disable" on the panel on the very right.
Nutrition for the ambitious .NET developer - since 2003
It's easy… well, if you know where to look…
Step 1: Open "FTP Logging" settings
Step 2: Click "Disable" on the panel on the very right.
I have almost no clue about Regular Expressions, but still I can create even pretty complex RegEx patterns in a snap and therefore can impress collegues with those (almost non-existant) skills.
How do I do that, you will ask?
Well, I use Expresso Regular Expression Tool
It's free (although you have to register after a period to receive your free registration code) and helped me a lot. Highly Recommended!
You receive the error message:
The provided URI scheme 'http' is invalid; expected 'https'.
Parameter name: via
… while using WCF to connect to an endpoint.
Probably you are trying to send a a username and password to authenticate although the connection is not secure (no HTTPS).
This modified binding should help:
<binding name="UserPasswordBinding">
security mode="TransportCredentialOnly">
transport clientCredentialType="Basic" />
/security>
/binding>
Beginning June 22, 2010 the .NET Framework 4 is available through WIndows Update to ease deployment.
The whole framework? No, only the "light" version, so called "Client Profile", which contains the features to develop a client application, including:
Common language runtime (CLR)
ClickOnce
Windows Forms
Windows Presentation Foundation (WPF)
Windows Communication Foundation (WCF)
Entity Framework
Windows Workflow Foundation
Speech
XSLT support
LINQ to SQL
Runtime design libraries for Entity Framework and WCF Data Services
Managed Extensibility Framework (MEF)
Dynamic types
Parallel-programming features, such as Task Parallel Library (TPL), Parallel LINQ (PLINQ), and Coordination Data Structures (CDS)
Debugging client applications
It does not include (meaning you still need to install the full .NET Framework 4.0 to use those features), for example:
ASP.NET
Advanced Windows Communication Foundation (WCF) functionality
.NET Framework Data Provider for Oracle
MSBuild for compiling
Now, it's on Windows update, will it install automatically?
It depends on the Windows Update settings, "the .NET Framework 4 Client Profile is released as a recommended update that may be installed automatically on Windows Vista and Windows 7. The Client Profile is released as an optional update for Windows XP. In Windows XP, you must manually run WU and select the .NET Framework 4 Client Profile".
.NET Framework 4 Client Profile:
Full .NET Framework 4:
More Information?
… then this is your solution:
On the machine you connect to run the following .REG file:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"IgnoreRemoteKeyboardLayout"=dword:00000001
Download: IgnoreRemoteKeyboardLayout.zip
"Internet Explorer redirects to mobile layout web site"Solution: (as found in this thread)
"Some websites are connecting to mobile version"
Why am I getting mobile sites? I'm using my desktop PC!
If you are getting SMTH AUTH errors while trying to send e-mails using the SmtpClient to an smtp server that requires authentication, make sure that you call UseDefaultCredentials before settings the credentials.
So, order is important here!
using System.Net;
using System.Net.Mail;
...
using (var client = new SmtpClient())
{
client.Host = "smtp.teamfoundationserver.de";
client.Port = 25;
client.UseDefaultCredentials = false;
client.Credentials = new NetworkCredential(username, password);
client.Send(message);
}
If you use the new System.Diagnostics.Contracts classes like
int Div(int a, int b)
{
Contract.Requires(b > 0);
return a / b;
}
Do not forget to download the Code Contracts tool and turn on static and/or runtime checking of your code.
Otherwise the Contract.Requires statement above will just be ignored (thus the second parameter will not be checked)…
Notes:
void MyMethod(Foo foo)
{
if (foo == null) throw new ArgumentNullException(...);
Contract.EndContractBlock();
... normal method code ...
}
You the receive compile error when using XML literals and try to set an attribute using quotation marks…
Error message: "Expected matching closing double quote for XML attribute value."
Your code might look similar to this fragment:
Results in an error:
Dim output = From item In items
Select <Item ID="<%= item.ID %>">
</Item>
What's wrong? Just Remove the quotation marks. The <% %> syntax will insert them later.
Works fine:
Dim output = From item In items
Select <Item ID=<%= item.ID %>>
</Item>
The result as XML:
<Item ID="1">
</Item>
<Item ID="2">
</Item>
Reference cards for the default keybindings in Visual Studio 2010 for Visual Basic, Visual C#, Visual C++ and Visual F#
Download from Microsoft: Visual Studio 2010 Keybinding Cards
icacls feeds /setintegritylevel (OI)(CI)lowRelated posts:
This guide knows how to do it:
The .REG file:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters] "NtpServer"="pool.ntp.org" "Type"="NTP" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient] "SpecialPollTimeRemaining"="pool.ntp.org" "SpecialPollInterval"=dword:00000e10
Download: TimeSync.zip
After restarting the Windows Time Service
net stop w32time
net start w32time
You can check when the last time synchronisation happend using
w32tm /query /status