Home / ASP.NET Weblogs

February 2010 - Posts

Posted to:

How to package COM component

If we want to package and deploy COM component for a web application only, we can simply reference them and change their “Copy Local” property to “True”.  For example, we can do the following to package a MVC project from VS2010. Create a MVC project In its references, change the following three assemblies “Copy Local” property value to True. System.Web.Mvc System.Web.Routing System.Web.Abstractions You can multi-select them and set the value together. Right click the project node and select “Build Deployment Package” Examine the package, you will see the above assemblies' corresponding dll files are included in the package’s bin directory.   Deploy the above package to a 4.0 site, no matter if the corresponding MVC runtime is...
Posted to:

Workaround: Missing Declarations for Controls in Designer File

We have seen some customers report the issue that certain controls are not getting generated correctly in the designer file in Visual Studio 2010 RC for the ASP.Net Web Application Projects. We are currently working on a fix for this issue for the final RTM release. Workaround: You can work-around this issue by declaring the missing controls in the code behind file for the ASPX page. Example: When you add a Button control with ID as “Button1” to the aspx page normally you should see the following code be generated in the designer file for this control. VB: Protected WithEvents Button1 As Global.System.Web.UI.WebControls.Button C#: protected global::System.Web.UI.WebControls.Button Button1; If this code is not being generated in the designer...
Posted to:

Episode #5 - Jesse Liberty on Silverlight Hyper Video

Episode #5 - Jesse Liberty on Silverlight Hyper Video In this episode The Misfit Geek talks with Sr. PM, Jesse Liberty about his Open Source Video Player Project with a Social Networking Twist . Resources ...... Silverlight web site Jesse's blog The Silverlight HyperVideo Platform site The Silverlight Media Framework site The Managed Extensibility site Links to MiniTutorials on the HVP Links to Minitutorials and videos To Catch Jesse at MIX 2010 : Look for this guy ! If you are interested in advertising, have suggestions, or advice.... Please CLICK HERE and send them to me. Download Now ! Subscribe Via RSS ... Play Now ! ' /> Click to Play With Flash Read More...
Filed under:
Posted to:

The Weekly Source Code 50 - A little on "A generic error occurred in GDI+" and trouble generating images on with ASP.NET

I got a nice little Yellow Screen of Death (YSOD) error on some code running under IIS that worked fine when running on the VS Developer Web Server. The error was "A generic error occurred in GDI+" and you know that if an error is generic, it's sure in the heck not specific. My little application takes an overhead map that's stored in a local file, does some calculations from user input and draws an X on the map, then returns the resulting dynamically generated image. There's basically three ways to do images on the server side. Use Native APIs and Interop, which only works in full trust, use System.Drawing, which " isn't supported " or use WPF on the server side, which also, ahem, isn't officially supported...
Filed under: ,
Posted to:

It’s time for TechDays Sweden again…

March 23rd and 24th I will be presenting at TechDays Sweden in Örebro.  The agenda for my session is not set in stone yet but the plan is to talk about debugging .NET production type issues as usual (Performance, Memory, Crashes, Exceptions etc.) since that is what I know best. I will be talking about them both from a developers perspective, using some of the nice features in Visual Studio .NET 2010 like dump debugging, profiling, and perhaps IntelliTrace as well as discuss options for debugging issues that occur in environments where you don’t have Visual Studio, concentrating on WinDbg/Debug Diag and other tools that lend themselves well for production environment debugging. Hope to see you there, Tess   Read More...
Filed under: ,
Posted to:

Intermittently the Server sends back 0 byte WebResource.axd and ScriptResource.axd files

Recently had this problem with a customer.  The full details and the solution follow. Problem The customer had an AJAX website where intermittently he sees that the webresource.axd and scriptresource.axd come down from the server as 0 bytes and therefore the page is incorrect. When the issue happens, it keeps happening until the customer does an IIS reset or reloads the AppDoman by making some changes in the web.config. The customer can repro the issue faster if he has HTTP Compression turned on but the issue happens even without compression. In the Fiddler, netmon or FREB tracing, we see that the server sends a HTTP 200 OK response and only the response headers with no body. Cause There are a few things at work here.  First there...
Filed under: , , ,
Posted to:

System.Configuration.ConfigurationErrosException “Unrecognized element ‘setting’” and other unrecognized elements

If you have a .NET configuration file with multiple <setting> elements, you may get the following exception: Unhandled Exception: System.Configuration.ConfigurationErrorsException: Unrecognized element 'setting'. (F:\MyApp\bin\Debug\MyApp.exe.config line 11)  at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)    at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)    at System.Configuration...
Filed under:
Posted to:

Free Sandbox Hosting for Visual Studio 2010 RC and ASP.NET 4.0 RC from Discount ASP.NET

Discount ASP.Net has updated their Hosting Sandbox for Visual Studio 2010 RC and ASP.NET 4.0 RC. http://www.discountasp.net/press/2010_02_16_free-asp.net-4.0-RC-hosting.aspx To learn more about the new Web Deployment features in Visual Studio 2010 check out this Step by Step Walkthrough on Web 1-Click Publish with VS 2010 To provide feedback on the RC please visit the Visual Studio Connect site .  You can also contact the Web Tooling team directly by sending mail to vsweb@microsoft.com Bradley Bartz | Visual Web Developer Read More...
Posted to:
by: 
02-15-2010, 1:15 PM

Patch for VS 2010 RC Intellisense Crash Issue 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 ] Last week I blogged about an intellisense crashing issue that is unfortunately in the VS 2010 RC.  Crash Symptom If you are encountering frequent VS 2010 crashes when you are typing in the editor while Intellisense is popping up and/or being dismissed then you are running into this issue. Patch Now Available This morning we made available a VS 2010 RC patch which fixes this issue.  You can download and run it here .  Please apply it if you are encountering any crashes with the VS 2010 RC, or if you have a tablet, multi-touch, screen-reader or external devices attached (including Wacom tablets, phones...
Posted to:

RIA Services at MIX10

A bit about my RIA Services talk at MIX10... let me know what you'd like to see. [ Full post continued here... ] Read More...
Filed under:

< Previous 1 2 3 4 5 Next >

Archives