Tuesday, March 08, 2011
Monday, March 07, 2011
Friday, March 04, 2011
Wednesday, March 02, 2011
Friday, February 25, 2011
Thursday, February 17, 2011
Wednesday, February 02, 2011
Monday, November 15, 2010
Tuesday, November 09, 2010
forgatas Silverlight-ban
Monday, October 04, 2010
Thursday, September 09, 2010
David Mendez: Start, Stop, and Restart Windows Services from Mac OS X
Mac OS X includes Samba support by default, and this is really handy if you’d like to remotely restart and monitor services running on a Windows machine.
To list services running on the Windows machine, use this command:net rpc service list -I IPADDRESS -U USERNAME%PASSWORD
A practical example would be:net rpc service list -I 192.168.0.115 -U Windows%myPassword
After identifying the service you want to restart, you issue the following command to stop the service:net rpc service stop SERVICENAME -I IPADDRESS -U USERNAME%PASSWORD
Then you can restart (or start) the service by using the following command:net rpc service start SERVICENAME -I IPADDRESS -U USERNAME%PASSWORD
This is tip that I found on Lifehacker that was aimed at Linux users, but considering Mac OS X has a unix underbelly equipped with samba the command works just the same on a Mac.
Thursday, August 12, 2010
Sunday, June 13, 2010
Wednesday, June 09, 2010
readerQuotas
Wednesday, June 02, 2010
Sunday, May 16, 2010
Scott Guthrie: VS 2010 and .NET 4 Series
- Clean Web.Config Files
- Starter Project Templates
- Multi-targeting
- Multiple Monitor Support
- New Code Focused Web Profile Option
- HTML / ASP.NET / JavaScript Code Snippets
- Auto-Start ASP.NET Applications
- URL Routing with ASP.NET 4 Web Forms
- Searching and Navigating Code in VS 2010
- VS 2010 Code Intellisense Improvements
- WPF 4
- Add Reference Dialog Improvements
- SEO Improvements with ASP.NET 4
- Output Cache Extensibility with ASP.NET 4
- Built-in Charting Controls for ASP.NET and Windows Forms
- Cleaner HTML Markup with ASP.NET 4 - Client IDs
- Optional Parameters and Named Arguments in C# 4 - and a cool scenarios with ASP.NET MVC 2
- Automatic Properties, Collection Initializers and Implicit Line Continuation Support with VB 2010
- New <%: %> Syntax for HTML Encoding Output using ASP.NET 4
- JavaScript Intellisense Improvements with VS 2010
- VS 2010 Debugger Improvements (DataTips, BreakPoints, Import/Export)
- Box Selection and Multi-line Editing Support with VS 2010
- VS 2010 Extension Manager (and the cool new PowerCommands Extension)
Friday, May 14, 2010
WrapPanel
Victorgaudioso: How to use the Silverlight Toolkit’s WrapPanel to Create a Three Column ListBox
Thursday, May 13, 2010
Scott Guthrie: Silverlight 2 End to End Tutorial
To help people come up to speed with Silverlight 2, I've written a simple Silverlight application and put together a series of step by step tutorials that explain the different programming concepts behind it (controls, layout management, networking, data-binding, styles, user controls, templates, etc). I also added a tutorial post that demonstrates how to migrate the application outside of the browser and enable it to run as a desktop application using WPF and the full .NET Framework.
Below are the pointers to the 8 tutorials I've put together:
- Part 1: Creating "Hello World" with Silverlight 2 and VS 2008
- Part 2: Using Layout Management
- Part 3: Using Networking to Retrieve Data and Populate a DataGrid
- Part 4: Using Style Elements to Better Encapsulate Look and Feel
- Part 5: Using the ListBox and DataBinding to Display List Data
- Part 6: Using User Controls to Implement Master/Details Scenarios
- Part 7: Using Templates to Customize Control Look and Feel
- Part 8: Creating a Digg Desktop Version of our Application using WPF
Thursday, May 06, 2010
Wednesday, March 03, 2010
Wednesday, February 10, 2010
Tuesday, January 26, 2010
Zulfiqar: DataContract Serializer and IsReference property
Wednesday, January 06, 2010
Monday, December 14, 2009
Friday, December 11, 2009
Tuesday, December 01, 2009
System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'
Dependig on the operating system this user account is either Network Service or ASPNET. On Windows 2003 ASP.Net process runs under context of 'Network Service' account and on Windows XP or prior the process runs under context of 'ASPNET' user account.
The error message gives all the clues that you need to figure out what the problem is. Your application is trying to open connection with SQL server and SQL Server is not authenticating the user context. ASPNET or Network Service is not some user account that you could have created. So first clue is that it is some built-in windows account that is trying to connect to SQL Server. That tells you that your connection string is using Integrated Security meaning it wants to use the login user's credentials to connect to SQL Server. This leads to next clue that you intended to use Windows authentication for ASP.Net application. Based on this forensic data and clues following is a list of things that could have gone wrong.
- Your connection string is wrong. Meaning you wanted to use SQL authentication but for some reason it is using Integrated Security
- Your settings in Web.config are wrong. Meaning that you wanted to use authentication mode to be windows but it is set to none.
- Your IIS settings for web application or virtual directory are not correct.
- You forgot to add these Windows accout to SQL Server users list
Based on above list, you can do the following to fix the problem.
- If you intended to use SQL authentication and not Integrated security then fix your connection string.
- Fix authentication mode in Web.config and set impersonation on if you intended to use Windows authentication for ASP.Net web application. Also make sure that you have turned off anonymous access in IIS for your ASP.Net web application
- You can grant 'Network Service' or 'ASPNET' user accounts permissions to connect to database.