[Home] [Recent] [Site Map] [SharePoint] [XBOX] [Biztalk]
You've deployed your app in prod server, you run it on the browser and you get an exception:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace: [NullReferenceException: Object reference not set to an instance of an
object.]
System.Web.Script.Services.WebServiceData.GetWebServiceData(Http
Context context, String virtualPath, Boolean failIfNoData,
Boolean pageMethods) +378
System.Web.Script.Services.PageClientProxyGenerator.GetClientProxy
Script(HttpContext context, IPage page, Boolean debug) +45
System.Web.UI.ScriptManager.RegisterServices() +728 System.Web.
UI.ScriptManager.OnPagePreRenderComplete(Object sender,
EventArgs e) +244
System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2012740
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBef
oreAsyncPoint, Boolean includeStagesAfterAsyncPoint)+1566
It happens when your site use ASP.NET AJAX RC in a VS 2005 Web Site Project and you deploy with "publish web site" or "web deployment project" utility with checkbox "allow the site to be updatable" unchecked.
It's a bug from ASP.NET AJAX RC1 and will be fixed in next version.
Until this you can make everything work fine if you precompile with checkbox "allow this site to be updatable" checked.
I just put up my new web site at KenCox.ca which is based on Microsoft's Small Business Site Starter Kit . One of the problems with sample sites is that they're often too elaborate and completely undocumented. By the time you reverse engineer the code to figure out what's going on, you could have built your own site from scratch. This small business kit is quite easy to work with and has just enough functionality for my needs. If you're design-challenged like me, a starter kit is...(read more)
This weekend was a really exciting one for the VS Web Tools team. On Saturday they checked in their new HTML and ASP.NET WYSIWYG designer into Visual Studio. This designer is a major, major improvement over previous HTML designers within Visual Studio, and will be a shared component used by both Visual Studio and Expression Web Designer going forward. Among other things, the new HTML designer provides: Below is a screen-shot with a lot of the new features in action: We actually began working on the new designer in November 2004 - almost a year before VS 2005 shipped (there was a lot of work todo!). Mikhail Arkhipov was the dev manager who led and architected the work. You can learn more about the project and see some initial screen-shots of the new designer in his blog post here. I"m planning to record some videos over the next few weeks that show off the new HTML designer as well as other cool new "Orcas" features. The next "Orcas" CTP will also contain the new designer (and a ton of other new features) to try out yourself. Hope you enjoy it, Scott
I am really excited to announce that the final release of ASP.NET AJAX 1.0 (aka "Atlas") shipped this morning. You can download it here. ASP.NET AJAX 1.0 ASP.NET AJAX 1.0 delivers a rich client-side AJAX library that provides cross platform, cross browser support for a core JavaScript type-system, JSON-based network serialization stack, JavaScript component/control model, as well as common client JavaScript helper classes. ASP.NET AJAX also delivers a rich server-side library that integrates AJAX functionality within ASP.NET, and enables developers to easily AJAX-enable existing ASP.NET 2.0 sites with minimal effort. ASP.NET AJAX is available for free, and can be used with ASP.NET 2.0 and VS 2005. It is a fully supported Microsoft product, and is backed by a standard 10 year Microsoft support license (with Microsoft Product Support available via phone 24 hours a day x 7 days a week). ASP.NET AJAX Control Toolkit In addition to the fully-supported ASP.NET AJAX 1.0 release, you can use the more than 30 free ASP.NET AJAX enabled controls available within the ASP.NET AJAX Control Toolkit. The control toolkit is a shared-source collaborative project built together by a team containing both Microsoft and non-Microsoft developers (visit the CodePlex Project to learn more, or volunteer to contribute). All source for the controls is provided completely for free (with full re-use and modification rights). The majority of controls within the ASP.NET AJAX Control Toolkit leverage the "Control Extender" pattern that the core ASP.NET AJAX library introduces, and which delivers a super powerful way to easily enable specific AJAX scenarios on a site with minimal effort. For example, consider the scenario where you want to add a cool AJAX calendar picker to a page (note that the browser below is Opera): To enable this with the ASP.NET AJAX Control Toolkit you can simply add a <ajaxToolkit:CalendarExtender> control to a page and point it at a textbox to store the date (no additional code required): The ASP.NET AJAX Control Toolkit will continue to grow and expand in the months ahead - with more controls, features (and bug-fixes) being added every month. The new version of the AJAX Control Toolkit that ships today adds support for 4 new controls to the Toolkit: <ajaxToolkit:CalendarExtender>, <ajaxToolkit:MaskedEditExtender>, <ajaxToolkit:TabContainer>, and <ajaxToolkit:AutoCompleteExtender>. You can try samples of them all out online here. (Special thanks to Ron and Fernando for implementing the new Calendar, Tab, and MaskedEdit controls added this month). ASP.NET AJAX 1.0 Source Release In addition to shipping the source code for the ASP.NET AJAX Control Toolkit controls, we are also releasing all of the source code for the fully supported ASP.NET AJAX 1.0 release. Specifically: We are releasing the client-side ASP.NET AJAX JavaScript library (which we also call the "Microsoft AJAX Library") under the Microsoft Permissive License (Ms-PL). This grants developers the right to freely customize/modify the library, as well as to redistribute the derivative versions of the JavaScript library for both commercial and non-commercial purposes. To help with debugging and development, we are also releasing all of the source code for the server-side ASP.NET AJAX 1.0 implementation (including the UpdatePanel, UpdateProgress, ScriptManager, and Network Serialization code) under the Microsoft Reference License (Ms-RL). Changes between the ASP.NET AJAX Release Candidate and RTM Build We made a number of improvements and bug fixes between the ASP.NET AJAX Release Candidate and RTM builds. These included: More complete documentation covering all changes can be found on the http://ajax.asp.net website. If you have installed previous versions of ASP.NET AJAX on your system, I recommend that you delete the cached VS schema files for control markup that VS maintains to provide HTML view intellisense. This will ensure that your HTML source editor Intellisense for the ASP.NET AJAX controls is correct and doesn"t get lost (otherwise it might incorrectly use the old values from the Beta2 release and generate errors). Future Plans While the core ASP.NET AJAX 1.0 release is now officially shipped, we are definitely not slowing down. :-) All of the ASP.NET AJAX 1.0 features will be integrated directly into the next release of ASP.NET (codename: "Orcas"). Visual Studio "Orcas" will also provide client-side JavaScript intellisense, JavaScript compilation checking, and rich JavaScript debugging support for ASP.NET AJAX scenarios. We are also already at work on the next ASP.NET AJAX release, and will continue to add new features and improvements to the supported ASP.NET AJAX core. You can already start using many of these new features with the ASP.NET AJAX Futures CTP (available for download now on the ASP.NET AJAX site - it also supports a "go live" license). Summary We are really excited about having the ASP.NET AJAX 1.0 release finally out. It will dramatically simplify adding rich AJAX functionality to ASP.NET 2.0 applications, and is going to significantly improve user experience for customers. We are really looking forward to seeing all the great applications you build with it! Thanks, Scott
<ajaxToolkit:CalendarExtender ID="Calendar1" runat="server" TargetControlID="DateTextBox" />
I"m happy to hear that the next VS ASP.NET designer will be huge!
It will fix some stuff and bring nice value additions to the poor actual VS2005 one :
Please read more on Scott Guthrie"s blog entry :
Visual Studio "Orcas" Web Designer Integrated into Main
I've done a lot of articles and product reviews for Visual Studio Magazine over the years, mainly because I enjoy technical writing but also for some pocket change for new toys. When Fawcette Technical Publications ran into financial trouble a few years ago, they stopped paying me and many others. However, Jim Fawcette promised that authors would be paid eventually . Today, I received a cheque from 1105 Media , the new owners of the company. When Jim Fawcette sold FTP , he convinced the new owners...(read more)
Below is a walkthrough of the steps I took to install VSTF (Visual Studio Team Foundation) on a VPC. I found a path that worked for me. I"m providing it as a reference both for myself and for others that might need it. I ran into issues during my initial installation. These turned out to be problems with my base installation of Windows on my VPC, not VSTF.
Here"s the steps I took:
I don"t think it was actually necessary to do all the reboots that I did. Personally, I"ve found that interspersing reboots during product installations help me avoid common installation hiccups.
If you want to prefix your code to use the AJAX Control Toolkit, add in the following item to your web.config.
<system.web>
<pages>
<controls>
<add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" />
</controls>
</pages>
I think it helps out with the Intellisense in Visual Studio .NET 2005
One of my goals this year is to use video more with my blog. My theory is that video is often a better medium than text to walkthrough how something works, and can also help you avoid the tedium of reading though some of my really long blog posts... :-) Over the next few months I"m going to try and create a new video every other week or so on various topics. Many of these videos are going to involve first looks at some of the new features coming with Visual Studio "Orcas", which is our new release that will ship later this year. For today"s video I decided to focus on introducing LINQ - which I think is one of the most exciting features coming with "Orcas". At a high-level, LINQ makes the concept of query a first class programming concept within .NET. Using LINQ you can easily query relational databases, XML files, as well as any plain-old .NET object. You can also easily use your own data source abstractions with LINQ to provide rich domain models for various data providers (for a great example of this check out Fabrice"s LINQ to Amazon implementation that supports LINQ queries against Amazon data exposed via web-services). Both VB and C# include rich language integration with LINQ as part of the "Orcas" release, including full intellisense, compile-time checking, and debugging support. Watch or Download the Video This first video starts with a new project, and then demonstrates the basics of using LINQ against a SQL Database to build a simple data reporting page (including support for aggregate values computed from multiple tables, and efficient server-side paging within the database). You can watch the video online here (it is 24 minutes in length). Or you can download a .zip version of it here if you want to save and watch it locally. Note that it might take 30-60 seconds to buffer (since it is a large video). In the event that my server is swamped with requests, I"ll update the location and post it on one of the Microsoft video servers later this week. For more information on LINQ (including the slide deck for a "Building ASP.NET Data Driven Application Using LINQ" talk of mine), please check out my previous post here. For other ASP.NET 2.0 Tips, Tricks and Tutorials please check out my ASP.NET Tips and Tricks summary listing page. Specifics Topics Covered in this Video My walkthrough in this video illustrates a number of new features: 1) A brief demonstration of some of the new WYSIWYG HTML designer capabilities (including split-view and a brief look at the new CSS manager - both of which I"ll cover in more detail in the future in a separate video): 2) How to create classes that model data using the new VS "Orcas" ORM designer for LINQ to SQL: 3) How to use the new LINQ intellisense support within the VS "Orcas" code editor to get full intellisense and compilation support for queries: 4) How to use LINQ to SQL to create a data report that combines Product entity data with aggregate unit and revenue values computed from OrderDetail entities associated with the Product entities. This data report uses server side database paging to efficiently retrieve only 10 rows of data at a time (so that with a 100,000 row products table you only ever retrieve 10 rows of data from the database regardless of which page index you are on within a report): Future Videos I"ll be drilling into LINQ some more with future videos (I barely scratched the surface with this one). Additional segments will include content on: I"ll also obviously have many more ASP.NET and web-related video topics to cover including: Hope this helps, Scott P.S. If you have other topics and/or subjects you"d like me to drill in on with videos, please post them in the comments section of this post.
Here is a screencast that shows TestDriven.NET running in Orcas and the new C# 3.0 support in Reflector 5.0. To start off with I create a reference to the new "System.Core" assembly which you"ll find in the "\Windows\Microsoft.NET\Framework\v3.5.11209" directory. C# 3.0 language features such as Linq and extension methods are only available after referencing this assembly. I then add a method with a simple query over a sequence of numbers.
After confirming that the code works, I use "Go To Reflector" to view the simple Linq query inside Reflector. You can see what the query would look like if it was written using C# 2.0. I then go into the Reflector options and choose to optimize for .NET 3.5. When I go back to the "Dissasembler" view you can see Reflector has successfully disassembled C# 3.0 Linq code! IMHO this is a great way to find out what"s going on under the covers of C# 3.0.
Watch the screencast.
![]()
![]()
![]()
Download TestDriven.NET 2.2 Beta
Download Visual Studio Orcas Jan CTP
Month Archives:
Oct 2007
Sep 2007
Top Tags:
social software social networking .NET mashable Sharepoint ASP.NET Web 2.0 Web2.0 Startups Community News Search Marketplace General Software Development AJAX Windows Vista Visual Studio Microsoft myspace Silverlight People Powered! YouTube Vista MOSS Featured News C# Events MOSS 2007 Google WPF Office 2007 Web Community Security General Personal Xbox 360 facebook Tools development SharePoint 2007 Fun Atlas Architecture ASP.NET AJAX myspace codes TheLongTail IIS SQL Server Developers Revenue Sharing Video Pictures WCF Mobile 2.0 Announcements Orcas MIX07 Arcade Team System JavaScript News
@2007 All rights Reserved |