Tag Archive : Asp.Net

Visual Studio Debug Problem with IE8

1
Digg me

Thanks to  : Abdulla AbdelHaq
Source : http://weblogs.asp.net/abdullaabdelhaq/archive/2009/06/01/VS-Debug-Problem-with-IE8.aspx
 
How VS debugger could be crashed with IE8?
If you opened multiple instances of IE8 and you attempt to debug your project, you mostly will have the issue where VS debugger just stops and ignores your break points!
Why was that?
Well, IE 8 has a feature called Loosely-Coupled Internet Explorer (LCIE) which results in IE running across multiple processes. 
http://www.microsoft.com/windows/internet-explorer/beta/readiness/developers-existing.aspx#lcie
Older versions of the Visual Studio Debugger get confused by this and cannot figure out how to attach to the correct process. 
To overcome this issue, you need to disable the process growth feature of LCIE by follow the below steps:
1)  Open RegEdit
2)  Browse to HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main
3)  Add a dword under this key called TabProcGrowth
4)  Set TabProcGrowth to 0
 If you run into the same problem on Vista or newer, you will also need to turn off protected mode.
And then go a head and start debugging your code.

LoginControl and CSSAdapters

1
Digg me

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified) 
I got this error when I started using LoginStatus Control. It seemed very wiered. After lot of struggle I found out this is caused by CSSAdapters.
Open CSSFriendlyAdapters.browser  (or something similar)
Look for this line and remove or comment it.
<adapter controlType="System.Web.UI.WebControls.LoginStatus"
 adapterType="CSSFriendly.LoginStatusAdapter" />
Now you LoginControl will work without any issues.
 

Interesting tools / .net components

0
Digg me

List of interesting  tools / .net components. Visit  www.codeplex.com for more :)

DoddleReport will add automatic reporting (HTML/PDF/Excel/etc) for any LINQ Query, IEnumerable, DataTable or SharePoint List

http://www.codeplex.com/doddlereport

Open DBDiff is an open source database schema comparison tool for SQL Server 2005/2008.

http://www.codeplex.com/OpenDBiff

Map Report

http://www.codeplex.com/MapReport

Visual Studio 2008 XHTML 1.1 Templates

http://www.codeplex.com/VSXHTML11Templates

MultiMenu ASP.NET Cascading Menu WebControl

http://www.codeplex.com/MultiMenu

Simple weather control

http://www.codeplex.com/aspnetweathercs

TytanNET – Visual Studio Great Add-in

http://www.codeplex.com/tytannet

.Net Documentor

http://www.codeplex.com/netDocumentor

Sharepoint Admin Report

http://www.codeplex.com/spadminreport

AJAX FileUpload

http://en.fileuploadajax.subgurim.net/

Extended Gridview Control

http://aspalliance.com/946_Extended_GridView_Control.all

ASP.NET Alerts

http://www.codeplex.com/alerts

HelpDesk – Very simple ticket and bugtracking web app for very small companies

http://www.codeplex.com/HelpDesk/Release/ProjectReleases.aspx?ReleaseId=13594

PickList ASP.NET WebControl

http://www.codeplex.com/picklist/Release/ProjectReleases.aspx?ReleaseId=16222

TooltipExtender

http://www.codeplex.com/tooltipextender

Multi-select listbox without holding down Ctrl Title is required

http://www.codeplex.com/AjaxControlToolkit/WorkItem/View.aspx?WorkItemId=11907

CSS Cleaner for asp.net apps

2
Digg me

I found this Freebie (not great interface though) which helped me to cleanup my stylesheet.

http://www.dotnetsurfers.com/Blog/ct.ashx?id=5eb69d72-b844-412a-9da2-ac8f21b5a714&url=http%3a%2f%2fwww.dotnetsurfers.com%2futils%2fcsscleaner.zip

Word of caution

By default this looks for .aspx,.ascx,.master files.

So before removing the unused class, please search the entire solution to make sure you haven’t used them in code behind files.

object.cssclass = “cssclassname”

Happy Style Cleaning !