The type name X does not exist in the type Y error in a Silverlight project

by APIJunkie 27. April 2008 08:25

If you run into this message when building a Silverlight project and have a class name and a namespace name that are identical you might be suffering from some kind of naming problem in the Silverlight development environment.

I found another reference to the problem in an MSDN forum.

To solve the problem I renamed the class name to a different name (one that is not identical to the namespace name).

Hope this helps...




Silverlight | PRB | Troubleshoot


4/27/2008 8:50:58 AM #


Trackback from

The type name X does not exist in the type Y error in a Silverlight pr

11/30/2008 12:09:09 PM #

Matt Mason

If you have recently renamed the class name, even using refactoring, I found that the asmx file got missed and has the old name.  Update it in Notepad and you should be good to go.

Matt Mason United States

Comments are closed

About the author

Name of author

I was first wounded by x86 assembly, recovered and moved on to C. Following a long addiction to C++ and a short stint at rehab I decided to switch to a healthier addiction so I am now happily sniffing .NET and getting hooked on Silverlight.

I am mainly here to ramble about coding, various API’s, Junkies(me especially) and everything else that happens between coders and their significant other.

  James Bacon