- References to the master page will not be updated in the content pages. You will need to update them manually, e.g. using find-replace.
- The same applies for the rename refactoring in ReSharper (version 4.5.1288).
Comments, how-to's, examples, tools, techniques and other material regarding .NET and related technologies.
Saturday, January 02, 2010
Compile error in file reference.cs
It's a bit strange but I'm observing the following:
ASP.NET Web Application + Service Reference + master page = compile errors in file reference.cs
Under certain circumstances the above combination doesn't seem to work in Visual Studio 2008 SP 1. If that is the case you may see compile errors like "The type name 'xxx' does not exist in the type 'yyy' ... Reference.cs ..." For example:
To better understand what is going wrong let me also show the project settings:
And here is the project layout:The point is that I added a master page named "Dolphin.Master". It has the prefix "Dolphin." which is also the default namespace set for the project. The default namespace in the project settings is used to generate client side code for the service reference.
So if you receive a compile error, my recommendation would be to rename the master page to something different than the project's default namespace. When you do, please be aware of the following items as they may lead to follow-on issues:
Labels:
Tools
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment
All comments, questions and other feedback is much appreciated. Thank you!