Building Web site : Some folders are ignored...Why ??

A

alqui

Hi, I'm actually trying to resolve a simple problem. I'm trying to build my
Web site. The structure of the Web site looks like that :

/Element
/Element/App_Code
/Element/Admin
/Element/Modules
/UserControls

There are aspx pages in every folders except /UserControls where all my ascx
files are.

When I build my web site, this is what I get :

Validating Web Site
Building directory '/Element/App_Code/
Building directory 'Element/Modules/
Validation Complete

Why my other folders are not validated? I have files in every folders and I
know there are errors in those files but the compiler doesn't give me any
errors.

Note :
Visual Studio 2008 Standard Edition
Windows XP Professionnal
It's a Web Site ...not a Web Application

Thank you very much... I tried to find solution over the net for the past
few days and still got nothing.
 
A

alqui

Finally I resolved my problem. This is probably a unknown or known bug of
VIsual Studio 2008 so I will probably send a bug report to Microsoft also.

The problem was in one of my ascx file. The Inherits tag name wasn't
pointing on a valid class... Example :
Inherits="Some_UserControl_Class_Name"
and the .cs file was like this Som_UserControl_Class_Name :
System.Web.UI.UserControl.

When I tried to publish my Web site, I received the error about the wrong
class name. But if I only build my web site, everything looks fine, the
only thing is that the compiler stops building exactly where the file in
error was located.
 

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

Top