Publish and Master Pages in ASP.NET 2 conflict

G

Guest

When publishing Web Applications different rules are applied than those
applied to Building. This is sometimes a little late in the process to
discover bugs at least give us a warning when building. Also when using
Master pages and publishing we receive an error that the page is Ambiguous
because it is contained within all the dll's. When we do not use publish the
site works fine. When we use a previous page and cast it to an object at
Build time there are no problems but when we publish it fails. Again, tell
us at build time at least with a warning.
 
S

Scott Allen

Hi wschaub:

I'd enter your comment into the Ladybug feedback area:
http://lab.msdn.microsoft.com/ProductFeedback/

You have to be very careful referencing types in other aspx / ascx /
master files in 2.0 because of the way web applications are structured
and the various build options.

Are you using an @ PreviousPage directive?

I have a couple tips and thoughts on the matter here:

Design Considerations for Cross Page Post Backs in ASP.NET 2.0
http://odetocode.com/Articles/421.aspx

One More On ASP.NET 2.0 Compilation
http://odetocode.com/Blogs/scott/archive/2005/06/30/1889.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top