TITLE: What does the case of $\operatorname{Spec}C^{\infty}(M)$ tell us about the relavance of scheme theory to general rings?
QUESTION [8 upvotes]: I guess a lot of people with previous exposure to differential geometry have had this naive question pop out in their mind when studying schemes for the first time.
The category of compact smooth real manifolds is contra-equivalent to the category of smooth rings on them $C^{\infty} (-)$. The inverse functor to the global section functor takes maximal ideals and makes sheafs out of the smooth rings. By a partion of unity argument the ring of global sections determines the sheaf so wer'e good. (At least, I hope we are. It's not something I found written explicitly in any book).
On the other hand, the famous result for schemes gives the equivalence $\mathsf {Aff} \cong (\mathsf{Ring})^{op}$. This suggests that the correct and uniform way to think about rings geometrically is studying the functor $Spec$.
There are many reasons for why studying $\operatorname{Spec}C^{\infty}(M)$ Is not so fruitfull. Elaboration on this in answers would be welcome as well, though my question is a more philosophical one.

Question: Given what we know about the unsuitability of scheme theory for the study of smooth rings why should we believe that it's the right generalization for algebraic geometry over arbitrary rings?

Personally, (and I hope It's okay to express my opinion despite my ignonrance) I think this is a good argument for studying general locally ringed spaces (Of which schemes are a part of but not at the center necessarily)... What do you think?

REPLY [3 votes]: The point of scheme theory is not to study arbitrary commutative rings. Scheme theory was invented as a tool to answer geometric questions that people were ultimately asking about varieties. 
Here's an example. The prime spectrum of $\mathbb{F}_2^{\mathbb{N}}$ turns out to be quite complicated: it is the Stone-Cech compactification $\beta \mathbb{N}$, otherwise known as the space of ultrafilters on $\mathbb{N}$. This is an "ungeometric" answer: $\text{Spec } \mathbb{F}_2^{\mathbb{N}}$ is the coproduct, in the category of affine schemes, of $\mathbb{N}$ copies of $\text{Spec } \mathbb{F}_2$, so the geometric answer "should" be that this spectrum just looks like $\mathbb{N}$. 
We get the answer we expect by taking the coproduct in the category of schemes instead: in other words, the inclusion from affine schemes into schemes does not preserve infinite coproducts. So the passage from affine schemes to arbitrary schemes is not totally innocent: it does something to at least some colimits to make them more "geometric."