Force refresh of designer.cs for Visual Studio 2010 after changing table adapter:
1) Click on the XSD file in the solution explorer
2) Click on the properties tab and check the Custom Tool Property. In
there you should find MSDataSetGenerator. If it's not there, type it
there
3) Once done right click the XSD file and click the menu item Run
Custom Tool.
http://bytes.com/topic/c-sharp/answers/695740-visual-studio-dataset-designer-doesnt-regenerate-designer-cs-code
Monday, April 22, 2013
Sunday, September 30, 2012
Thursday, September 1, 2011
VS2005 Debug Breakpoints Not Working in Javascript
If using Visual Studio 2005 and Internet Explorer 8, debugging breakpoints may not work for javascript. However it will work if the Attach to Process function (to internet explorer) is used, it will work. However this would need to be done for each debug session
This can be fixed by:
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
More information can be found at this thread:
http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/e2c795cd-b7a0-4fad-b7c9-b1ca40d7302e/
Tuesday, August 2, 2011
Report Access to ASP.NET Development Port
Since it's not always possible to install all browsers on a development system for testing web applications durng debugging, the port can be redirected so that the application can be launched in debug mode and then accessed from a different computer.
Download the Soap Toolkit 3.0 from here:
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=13456
and install the trace utility.
Run the Trace Utility and select FileNewFormatted Trace. Change the destination port to the port defined by ASP.NET. Run the application, and from the other browser, use the url like "http://111.22.33.44:8080/Home.aspx/Index"
More detail can be found at: http://www.pluralsight-training.net/community/blogs/jimw/archive/2009/09/03/accessing-the-visual-studio-asp-net-development-server-from-iphone.aspx
Tuesday, June 14, 2011
Web.config encryption
To encrypt the connection string section of a web config file:
1. Open a command prompt and cd to:
c:\Windows\Microsoft.NET\Framework\v2.0.*
2. Type the command:
aspnet_regiis -pe "connectionStrings" -app "/sitename" -prov DataProtectionConfigurationProvider
Note: The provider parameter is needed otherwise the app cannot read the encrypted section and will return the error "The RSA key container could not be opened"
More information: http://msdn.microsoft.com/en-us/library/ms998280.aspx
Monday, June 13, 2011
Visual Studio crashes creating entity data model
One way around this is:
1) Open the "Visual Studio 2008 Command Prompt" (with administrator privileges if Vista)
2) devenv /resetskippkgs
3) Close Visual Studio
4) devenv /setup
5) Run Visual Studio
Found in: http://forums.asp.net/p/1414299/3114264.aspx
Saturday, January 29, 2011
Report Control Formatting in Firefox
When displayed on a Safari or Firefox, the ASP.NET ReportControl renders incorectly - like a small box in the corner. This can be fixed by setting the style in the control:
Style="display: table; margin: 0px; overflow: auto;" runat="server"
This suggestion can be found in the forum post:
http://social.msdn.microsoft.com/Forums/en-US/vsreportcontrols/thread/d5157c21-f271-4f17-bac4-3e27dbc9e0cf