.net
Are you getting 404’s on your deployed site when it works perfectly on your development machine? There’s a number of hidden gotchas when deploying an ASP.NET MVC application to a shared hosting providers. My provider of choice is Webhost4life.com. Here’s a list of issues I ran into and the solutions for each. IIS 6.0 vs IIS 7.0 There’s a number of issues you need to be aware of here. If you using IIS 6 -- and if you’re on Webhost4life there’s a good chance you are – then you need to make sure you’re virtual directory is...
Over the last six months, I’ve been working with a team of good folks building a pretty serious set of WCF based web services. These services were intended to be the next generation of products that will hopefully reinvent the systems that support a large percentage of our business. It’s been a fun ride and I’ve definitely learned WCF inside and out. Part of this effort involved building out a semi-customer facing client application. We needed a harness to drive development of our service-oriented features as well as something that showcased the platform independence of the services we were building. ...
From time to time, my status bar disappears. I used to believe this was due to a botched install or add-in. I recently upgraded to Team System Test Edition, and my status bar again disappeared. For the last few weeks I’ve been trying to figure out a time to do a full reinstall. Today, I discovered this is a setting in Visual Studio (duh). So, if you see this: and you can’t figure out how to get your status bar back, go to Tools –> Options –> Environment –> General section and check the “Show status...
Open Windows PerfMon and… Is “% Time in GC” is greater than 30%? Is “# Gen 0 Collections” sustaining a ratio less than 10:1 to “# Gen 2 Collections”? You’ve probably got a leak or two or ten
I’ve been battling this literally for months. I couldn’t seem to get .svc files hosted on my Vista machine. It wasn’t until tonight that I really needed to get it working. It took me the better part of an hour to find Guy Burstein’s WCF on IIS7 on Vista - Adding .svc Handler post (no idea why this wasn’t ranking higher on Google). If you’re seeing this: Server Error in Application “Default Web Site/...” HTTP Error 404.3 - Not Found Then do the following: ...
I’ve been getting into some pretty advanced scenarios with WCF where we need to precisely shape the XML on the wire and the schema’s that are produced by svcutil.exe. Trust me, the moment you start using WCF for exposing services to Java clients, those Java clients are really going to care how the XML looks. WCF makes .NET-to-.NET very easy, and .NET-to-Java doable, but I wouldn’t call it easy. For vanilla scenarios (simple contracts with simple types and basic complex types), it’s pretty easy. The hooks exposed by WCF for shaping the XML are pretty poor in my opinion....
I’m finally getting a chance to sink my teeth into Windows Communication Foundation (WCF). I’m finding quite a few gaps on the interoperability side of things, and I think it’s overly complex in it’s configuration schemes and extensibility points, but it’s light years beyond what we had previously in ASMX. From what I can tell, the WCF adoption was just much slower than everyone anticipated. I’m not sure why that is – perhaps it’s the vastness of it that’s intimidated people. Perhaps it was the quality of the the .NET version 2.0 release that resulted in a slow adoption of...
I've had to build one of these a few times over the years. If you want a very quick and dirty dropdown of US states in an ASP.NET app, here is the code
1: <asp:DropDownList runat="server" ID="StatesList">
2: <asp:ListItem Value="AL" Text="Alabama"></asp:ListItem>
3: <asp:ListItem Value="AK" Text="Alaska"></asp:ListItem>
4: <asp:ListItem Value="AZ" Text="Arizona"></asp:ListItem>
5: <asp:ListItem Value="AR" Text="Arkansas"></asp:ListItem>
6: <asp:ListItem Value="CA" Text="California"></asp:ListItem>
7: <asp:ListItem Value="CO" Text="Colorado"></asp:ListItem>
...
Two product efforts at Microsoft have spun up this year and both are new implementations of very old ideas:
ASP.NET MVC Framework - Microsoft's upcoming implementation of a Model View Controller architecture for their web application platform. MVC has been around for a long time on other development platforms, but only recently has there been a push in the .NET community demanding for this.
ADO.NET Entity Framework - Microsoft's next rev of data access technology (ADO.NET) contains a lot of new ways to...
Its refreshing when you solve what appears to be a nasty problem with a simple and clean solution. It's an even better feeling when you solve it with Computer Science fundamentals. I solved something this morning by releaning how acces modifiers work (access modifiers in C# in my case).
We have a basic data transfer object that has some private state that handles change tracking. Something such as:
1: public class ProductDTO
2: {
3: private bool _isDirty = false;
4: private string _name;
...
Full .net Archive