Jul 16

Written by: BM Web Design
7/16/2011 2:53 PM 

 I just recently came across this error on one of my servers... "ascx is ambiguous in the namespace ASP"

"apparently this is a known bug in the asp.net 2.0 compiler. It is fixed by adding "batch=false" into the compilation tag in web.config.
It occurs when porting websites with ascx controls from asp.net 1.1 to asp.net 2.0.
The problem happens at run time NOT on the development machine becuase it is caused by the runtime compilation.
This problem is expected if the custom control is named the same as an aspcontrol, e.g. GridView. BUt it happens with controls with, well, custom names. "

I hope this helps someone...

BM Web Design
"Inexpensive design solutions, without sacrificing quality"
Renton, Seattle, Bellevue, Lynnwood, Tacoma and all cities in between

Tags: