Home / ASP.NET Weblogs

April 2010 - Posts

Posted to:

Upgrade or Uninstall of Office 2007 might cause VS 2008 Web designer to hang

With Office 2010 releasing, some of you might be upgrading to Office 2010 from Office 2007. A plain uninstall of Office 2007 might also run into the issue described below. If this is something you have done (or plan to do) and are running a 64-bit OS, please keep on reading. On machines with a 64-bit OS, uninstall of Office 2007 will break the VS 2008 web designer. You will find that the VS designer won't be able to load, and any attempts to switch to Design View will hang the product. Note that 32-bit machines are not affected and neither are other VS releases. The root cause of this problem is that Office 2007 and the VS 2008 web designer both share a component, 32-bit MSXML5. When Office 2007 uninstalls or gets upgraded, MSXML5 is removed...
Posted to:

Web Deployment Projects Released to Beta (WDP for VS 2010)

  Our team recently released WDP for VS 2010… The key features to note for WDP for VS 2010 are: All the core features of WDP 2008 Migration from WDP 2008 to WDP 201o Multi-Targeting support in WDP 2010 Support Web Deploy Packages in the WDP project.. You can read more about the above features on our team blog at Visual Web Developer Team Blog Download WDP 2010 Beta by clicking here!! The guidance around using WDP 2010 is Use it if you want to migrate to VS 2010 and are currently using WDP for VS 2008 Use it for TeamBuild/MSBuild based deployment of Web Site Projects in VS 2010… Use them for Web Application Projects (WAPs) if you feel it is extremely important for you to pre-compile/merge your projects… If not then you can use Web Deployment...
Posted to:
by: 
04-16-2010, 2:58 AM

Silverlight 4 Released

The final release of Silverlight 4 is now available. [In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu ] What is in the Silverlight 4 Release Silverlight 4 contains a ton of new features and capabilities.  In particular we focused on three scenarios with this release: Further enhancing media support Building great business applications Enabling out of the browser experiences On Tuesday I gave a 60 minute keynote about Silverlight 4 which showed off many of the new features and capabilities now available.  You can watch my keynote to learn more about Silverlight 4 and see a ton of great demos of it in action. Also check out these three great posts by Tim Heuer...
Posted to:

What happens to C# 4 optional parameters when compiling against 3.5?

Here’s a method declaration that uses optional parameters: public Path Copy( Path destination, bool overwrite = false , bool recursive = false ) Something you may not know is that Visual Studio 2010 will let you compile this against .NET 3.5, with no error or warning. You may be wondering (as I was) how it does that. Well, it takes the easy and rather obvious way of not trying to be too smart and just ignores the optional parameters. So if you’re compiling against 3.5 from Visual Studio 2010, the above code is equivalent to: public Path Copy( Path destination, bool overwrite, bool recursive) The parameters are not optional (no such thing in C# 3), and no overload gets magically created for you. If you’re building a library that is going to have...
Filed under: , ,
Posted to:

Rendering Issue in Visual Studio 2010 when Accessing the Session State in the OnInit() Method

In VS 2010, if you are accessing the Session state in the OnInit(…) method of your page, similar to the following code snippet: then you will encounter an “Error Creating Control” for ASP.NET controls when viewing the Design view of the page. For example, if you have an ASP.NET button control on the page, the designer will display the error: “ Error Creating Control – Button1 Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System. Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.”. Screen shot of the error: However...
Posted to:

Controls State: "Error Creating Control" in the Design View in Visual Studio 2010

In VS 2010, if you are accessing the Session state in the OnInit(…) method of your page, similar to the following code snippet: then you will encounter an “Error Creating Control” for ASP.NET controls when viewing the Design view of the page. For example, if you have an ASP.NET button control on the page, the designer will display the error: “ Error Creating Control – Button1 Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System. Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.”. Screen shot of the error:  ...
Posted to:

Issues between Visual Studio, Microsoft Wireless Laser Mouse and Windows 2008 Server

Quite some time ago, when Vista just went RTM, Risk Strahl discovered that when he used Microsoft Wireless Laser Mouse, code intellisense and markup validation in Visual Studio stopped working. Since several activities in VS are done in a background on idle (not to be confused with background threads - idle processing is performed on the main thread), it was clear that VS was not getting any idle time slots, i.e. something was keeping OS busy. We tracked the issue down some third party applications as well as to a bug in Microsoft Wireless Mouse driver that was keeping OS busy and prevented OS from going to sleep or launching screen saver. See Knowledge Base topic for details and workarounds/updates. What about Windows 7? The fix was included...
Posted to:

Silverlight 4 Tools Released

This morning we released Silverlight 4 Tools for Visual Studio 2010! The link to download and installs the tools is http://go.microsoft.com/fwlink/?LinkId=177508 .  The tools will install: Silverlight 4 RTM Developer Runtime Silverlight 4 Tools RC for VS 2010 Silverlight 4 SDK RTM Silverlight 4 Tools RC Package WCF RIA Services RC Note that this is the RC release of the Silverlight 4 tools. With these tools you can start developing Silverlight 4 applications using Visual Studio 2010. If you are not familiar with what’s new in SL 4 check out Tim’s blog here: http://timheuer.com/blog/archive/2009/11/18/whats-new-in-silverlight-4-complete-guide-new-features.aspx If you haven’t already downloaded VS 2010, you can get the free Express version...
Posted to:

Web Deployment Demos, Slides & Videos for VS 2010 launch

I have been dormant for ever, have been keeping busy on a very exciting project… Anyways April 12th 2010 was a big day with VS 2010 formally launching…  Few days back I asked Twitter whether people needed a ready made talk to talk about VS 2010 Web Deployment as part of the community launch events of VS 2010 and got a lot of asks for the content so here it is…  Titles & Abstract I would recommend you do not use are below… :-)  The reason I say that is coz VS 2010 & Web Deploy are way more exciting than the way I present here; so get creative and make a fun abstract & title…  The only reason I have them descriptive is so that you know what are the key items to put in there… Title : Web Deployment with VS 2010 &...
Posted to:

Sending JSON to an ASP.NET MVC Action Method Argument

Javier “G Money” Lozano , one of the good folks involved with C4MVC , recently wrote a blog post on posting JSON (JavaScript Object Notation) encoded data to an MVC controller action. In his post, he describes an interesting approach of using a custom model binder to bind sent JSON data to an argument of an action method. Unfortunately, his sample left out the custom model binder and only demonstrates how to retrieve JSON data sent from a controller action, not how to send the JSON to the action method. Honest mistake. :) His post reminds me of how remiss I’ve been in blogging recently because a while back, we added something to our ASP.NET MVC 2 Futures library that handles sending JSON to an action method but I just never found time to blog...

« First ... < Previous 2 3 4 5 6 Next > ... Last »

Archives