Ok David asked me to bring the rain. Here we go.
Indeed it is very feasible and very efficient to use an electromagnetic accelerator to launch something into orbit, but first a look at our alternative:
Space Elevator: we don't have the tech
Rockets: You spend most of the energy carrying the fuel, and the machinery is complicated, dangerous, and it cannot be reused (no orbital launch vehicle has been 100% reusable. SpaceShipOne is suborbital, more on the distinction in a moment). Look at the SLS that NASA is developing, the specs aren't much better than the Saturn V and that was 50 years ago. The reason is that rocket fuel is the exact same - there is only so much energy you can squeeze out of these reactions. If there is a breakthrough in rocket fuel that is one thing but as there has been none and there is none on the horizon, rockets as an orbital launch vehicle are dead end techs which we have hit the pinnacle of.
Cannons: Acceleration by a pressure wave is limited to the speed of sound in the medium, so you cannot use any explosive as you will be limited by this (gunpowder is around $2\text{ km/s}$ , this is why battleship cannons have not increased in range over the last 100 years). Using a different medium you can achieve up to 11km/s velocity using hydrogen. This is the regime of 'light gas guns' and a company wants to use this to launch things into orbit. This requires high accelerations ( something ridiculous like thousands of $\mathrm{m/s^2}$) which restricts you to very hardened electronics and material supply such as fuel and water.
Maglev: Another company is planning on this (http://www.startram.com/) but if you look at their proposal it requires superconducting loops running something like 200MA generating a magnetic field that will destroy all communications in several states, I find this unlikely to be constructed.
Electromagnetic accelerator (railgun): This is going to be awesome! There is no requirement on high accelerations (A railgun can operate at lower accelerations) and no limit on upper speed. See the following papers:
Some quick distinctions, there is suborbital and orbital launch. Suborbital can achieve quite large altitudes which are well into space, sounding rockets can go up to 400miles and space starts at 60miles. The difference is if you have enough tangential velocity to achieve orbit. For $1\text{ kg}$ at $200\text{ km}$ from earth the energy to lift it to that height is $0.5 m g h = 1\text{ MJ}$, but the tangential velocity required to stay in orbit is $m v^2 / r = G m M / r^2$ yielding a $KE = 0.5 m v^2 = 0.5 G m M / r = 30\text{ MJ}$ , so you need a lot more kinetic energy tangentially. To do anything useful you need to be orbital, so you don't want to aim your gun up you want it at some gentle angle going up a mountain or something.
The papers I cited all have the railgun going up a mountain and about a mile long and launching water and cargo. That is because to achieve the $6\text{ km/s}+$ you need for orbital velocity you need to accelerate the object from a standstill over the length of your track. The shorter the track the higher the acceleration. You will need about 100 miles of track to drop the accelerations to within survival tolerances NASA has.
Why would you want to do this? You just need to maintain the power systems and the rails, which are on the ground so you can have crews on it the whole time. The entire thing is reusable, and can be reused many times a day. You can also just have a standard size of object it launches and it opens a massive market of spacecraft producers, small companies that can't pay 20 million for a launch can now afford the 500,000 for a launch. The electric costs of a railgun launch drops to about 3\$/kg, which means all the money from the launch goes to maintenance and capital costs and once the gun is paid down prices can drop dramatically. It is the only way that humanity has the tech for that can launch large quantities of object and in the end it is all about mass launched.
Noone has considered having a long railgun that is miles long because it sounds crazy right off the bat, so most proposals are for small high-acceleration railguns as in the papers above. The issue is that this limits what they can launch and as soon as you do that noone is very much interested. Why is a long railgun crazy? In reality it isn't, the raw materials (aluminum rails, concrete tube, flywheels, and vacuum pumps) are all known and cheap. If they could make a railroad of iron 2000miles in the 1800s why can't we do 150miles of aluminum in the 2000s? The question is of money and willpower, someone needs to show that this will work and not just write papers about this but get out there and do it if we ever have a hope of getting off this rock as a species and not just as the 600 or so that have gone already. Also the large companies and space agencies now are not going to risk billions into a new project while there is technology which has been perfected and proven for the last 80 years that they could use. There are a lot of engineering challenges, some of which I and others have been working on in our spare time and have solved, some which are still open problems. I and several other scientists who are finishing/have recently finished their PhDs plan on pursuing this course ( jeff ross and josh at solcorporation.com , the website isn't up yet because I finished my PhD 5 days ago but it is coming).
CONCLUSIONS
Yes it is possible, the tech is here, it is economic and feasible to launch anything from cargo to people. It has not gotten a lot of attention because all the big boys use rockets already, and noone has proposed a railgun that can launch more than cargo. But it has caught the attention of some young scientists who are going to gun for this, so sit back and check the news in a few years.