Tips and tricks from a Developer Support perspective.
learn.microsoft.com/en-us/archive/blogs/spike
While some cases may start of as complex, they sometimes turn out to be caused by something not that complex. As the case always is once you have the solution. So I thought I would share some of the things that I've come across, and hopefully tha
Web developmentC# / .NETWindows internalsMicrosoft blogsMSDN archive
- Posts
- 124 from 14 Jul 2008 to 3 Mar 2015
- Posting
- archived, read-only
- Kind
- personal blog
- Feed
- https://learn.microsoft.com/en-us/archive/blogs/spike/feed.xml
2015 2
2013 7
- "Installation of one or more roles, role services, or features failed. Error: 0x800f0922" when installing IIS 8.0 Application Initialization.
- Repeated login dialogs ending with a 401 when using Basic Authentication in IIS.
- A network analysis of passive (EPSV or PASV) FTP connection.
- How to download multiple files concurrently using WebClient and the DownloadFileAsync method.
- How to deploy your Windows Store app to Surface RT for testing.
- IIS 7.5 - Unable to deploy second server to WFF farm, "Failed to upload assembly 'Microsoft.Web.PlatformInstaller, Version=3.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' on remote agent"
- Adding printer with "Internet Printing" gives "Windows couldn’t connect to the printer. Check the printer name and try again."
2012 12
- How to edit server information in response sent to client.
- Using MSDeploy to update and remove sections in web.config. A simple example
- One-to-one client certificate mapping. 401.1 with a sc-win32-status of 2148086018
- HTTP Error 500.19 0x8007000d Failed to decrypt attribute 'password' because the keyset does not exist
- "System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool."
- Windbg and managed code. What does, for example, a null value look like?
- How to setup UrlScan with DenyUrlSequence
- "SQL Server Configuration Manager" gives "Invalid class [0x80041010]” when starting.
- How to create a dump on x number of threads in a process.
- How to create a dump on an OutOfMemoryException.
- Some gotchas when using ASP.NET MVC with Entity Framework Code First.
- How to create a clock style line rotation in Silverlight.
2011 9
- .docx, .pptx, .xlsx open as compressed folder in IE8.
- How to create a StackOverflowException. And how to figure out where it is happening.
- How to publish a calendar from Outlook to IIS and WebDAV
- How to resolve "Cannot debug pid <pid>, NTSTATUS 0xC0000048" - "An attempt to set a process's DebugPort or ExceptionPort was made ..."
- How to use LogParser, SQL Server and ETW to find reasons for exceptions.
- No files in the “IIS Temporary Compressed Files” directory. Some possible reasons.
- WPF, DataBinding, DataGrid and simple conditional 'higher than' using IValueConverter
- Inserting a file into a FILESTREAM table from C#. And how to get it back as well.
- An unhandled exception of type 'System.StackOverflowException' occurred in System.Data.Entity.dll
2010 21
- Running a database mirror setup with the SQLBrowser service off may produce unexpected results.
- Clarification on the Failover Partner in the connectionstring in Database Mirror setup.
- How to consume a web service from within SQL Server using SQL CLR
- Error : The OutputPath property is not set for project 'xxxxx.dbproj'.
- Simplified steps for creating BID / ETW traces for ADO.Net and SQLNCLI
- Invalid object name 'MSysConf'. (State 42S02) (Code 208)
- "Error Locating Server/Instance Specified [xFFFFFFFF]". SQLSRV32 to the rescue.
- Registry keys for ODBC connections using sqlsrv32, sqlncli and sqlncli10
- Simplified steps to create BID / ETW tracefiles.
- Concurrency violation: the UpdateCommand affected 0 of the expected 1 records.
- Using User Instance with a .Net application
- Simple Databinding example with Entity Framework and Windows Presentation Foundation
- "No value given for one or more required parameters." / "Incorrect syntax near the keyword 'DEFAULT'."
- Must declare the scalar variable …
- Parent/Child DataRelation. The Basics.
- Compiling application gives : “Embedded statement cannot be a declaration or labeled statement”
- How to query for netstat info using PowerShell
- How to create a simple Extension method. A simple example.
- How to use the ObjectDataSource as a DataSource, simple example
- How to use LINQ to XML together with LINQ to SQL.
- How to use LINQ to SQL without using the designer generated classes
2009 45
- DataSet, DataTable, DataRelation, PrimaryKey template.
- How to examine memory dump for SqlCommand.CommandText using WinDbg and SOS
- How to create memory dump for SqlException using DebugDiag
- Very short and simple example of using SqlMetal
- How to see the SQL executing when updating a DataSet via DataAdapter.Update()
- Getting AutoNumber from Access via "SELECT @@IDENTITY" needs to be done in same connection as the INSERT.
- How to create a DNS less linked server in Access to SQL Server.
- Getting metadata about dataset using lambda. Some examples.
- How a proper physical TCP/IP connection to SQL Server works. Network Monitor
- Format of the initialization string does not conform to specification starting at index
- Why is autogenerated UPDATE and DELETE statements complex?
- My take on @@IDENTITY vs SCOPE_IDENTITY()
- DataTable.GetChanges(DataRowState.Modified) returns NULL
- XQuery in SQL Server, some examples
- MemberwiseClone by example
- SGEN gives "Error: The top XML element 'class' from namespace '' references distinct types UserDefinedFunctions.Class and UserDefinedFunctions.Class1."
- SGEN gives "Assembly ... does not contain any types that can be serialized using XmlSerializer.
- How to save information about DataSet into the XML when serializing it with WriteXML()
- "System.Data.Linq.ChangeConflictException: Row not found or changed" Finding the culprit
- Why massive inserts using SubmitChanges lack in performance.
- How to store performance monitor data into SQL Server using Reliability and Performance Monitor
- How to read a SQL Server trace file using .Net code, TraceFile and TraceServer.
- "There is already an open DataReader associated with this Command which must be closed first" explained
- IsolationLevel is carried over to connections in connectionpool
- SQL CLR stored procedure called via JDBC using setAutoCommit(false) does not update database.
- System.Data.SqlClient.SqlException: Cannot open database "database name" requested by the login. The login failed.
- Improving XslCompiledTransform performance.
- Oracle, Stored Procedures with ref cursor from .Net code and BID tracing.
- How to create a .Net SqlTransaction deadlock with SQL Server
- How use Convert in a DataTable select?
- Msg 7399 - The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "<linked server>" reported an error. Authentication failed.
- A simple example on how to get Return and Out parameter values using Ado.Net
- Using a subset of columns in a datatable as a DataSource for Windows controls.
- A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
- Catch a Sql Server RAISERROR at client side using SqlDataReader.
- Table-Value parameter used in .Net. Simple sample
- TechDays - Link to downloadable tools
- Pivot tables in SQL Server. A simple sample.
- DataAdapter.Update returns 0 and doesn't update the table in SQL Server.
- (working) TCP network monitor trace explained.
- System.InvalidOperationException: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
- Getting "Query is too complex" or "Expression is too complex” when using Access
- Typed DataSet from xsd using LINQ. Trial by fire
- SqlCommand.ExecuteNonQuery() returns -1 when doing Insert / Update / Delete
- How to prepare for a SQL Developer / Connectivity case
2008 28
- (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)
- Unable to find the requested .Net Framework Data Provider. It may not be installed.
- Create a LINQ/WCF/Silverlight application in 10 simple steps.
- What version of a particular dll is my application running? Find out using code.
- The importance of selecting the correct Sql provider for the job. Sqlncli vs. Sqlncli10
- SMO Transfer.TransferData() gives: A network-related or instance-specific error occurred while establishing a connection to SQL Server.
- Connectionstrings, mixing usernames and windows authentication. Who goes first?
- SQL Server Error: 10060 SQL Server Error: 10061
- Connecting to an Oracle server you know is there. But connection still fails. What gives.
- How to update an Excel worksheet using DataSet and the OleDbDataAdapter
- Command prompt utilities, some resources in one place.
- Some of the new stuff in .Net 3.x simply/examplyfied.
- “Deferred vs. Immediate Loading” or “Lazy vs. Eager Loading”, simplyfied, I hope....
- Dude, where did my ODBC System DSN go?!
- Nested RecordSet and the port/socket in TIME_WAIT problem by example.
- XmlDocument and the removal of the indentations. It is good.
- System.Data.SqlClient.SqlException: The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect.
- (provider: TCP Provider, error: 0 - Only one usage of each socket address (protocol/network address/port) is normally permitted.)
- Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool.
- How to use a FileDsn in .Net
- Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
- Invalid attempt to read when no data is present.
- OLE DB provider "MICROSOFT.JET.OLEDB.4.0" for linked server "(null)" returned message "Unspecified error".
- The simplification of JOIN. Simple example of how T-SQL JOIN work
- Failed to find or load the registered .Net Framework Data Provider
- {"Syntax error in FROM clause."} when using text based datasources
- Creating a new system DSN: "Faulting application odbcad32.exe, version 3.526.3959.0, faulting module unknown, version 0.0.0.0, fault address 0x5bb312de"
- Error/Event 18456 explained