473,385 Members | 1,324 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Lots of type 'xxxxxxx' is not defined errors when migrating web site project to web app project

I am migrating a web site project to a web application project as indicated
at this page:
http://webproject.scottgu.com/CSharp...igration2.aspx

However when I try to compile, I get a lot of type 'xxxxxxxxx' is not
defined errors. It seems classes in the project are not getting compiled in
the project even when they are present in the solution explorer. When I
inspected the vbproj file, I noticed that many .vb files are in an
'include' tag instead of a 'compile' tag. So they are being included as
like static files instead of being compiled.

These .vb files reside in folders. I have added these files in different
ways: drag and drop or add existing.. The only way I can add these files
and have them compile is if add them to the root folder.

What's the way to include a folder in the project and have all the .vb
files compiled instead of just being included?

John Dalberg
Mar 23 '07 #1
1 1446
For classes to be compiled automagically, in ASP.NET 2.0, they should go in
the App_Code folder. I have not tried this with a converted project, so I am
not sure if there are additional caveats. I also have only done a few test
projects with the web application model, as my production apps were started
before the project was in final form.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*********************************************
Think outside the box!
*********************************************
"John Dalberg" <no****@nospam.ssswrote in message
news:20*******************@newsreader.com...
>I am migrating a web site project to a web application project as indicated
at this page:
http://webproject.scottgu.com/CSharp...igration2.aspx

However when I try to compile, I get a lot of type 'xxxxxxxxx' is not
defined errors. It seems classes in the project are not getting compiled
in
the project even when they are present in the solution explorer. When I
inspected the vbproj file, I noticed that many .vb files are in an
'include' tag instead of a 'compile' tag. So they are being included as
like static files instead of being compiled.

These .vb files reside in folders. I have added these files in different
ways: drag and drop or add existing.. The only way I can add these files
and have them compile is if add them to the root folder.

What's the way to include a folder in the project and have all the .vb
files compiled instead of just being included?

John Dalberg
Mar 24 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: John Grandy | last post by:
My ASP.NET Web Service project has a Web Method that returns an array filled with instances of a custom class. The custom class is defined in a Class Library that is included in the web-service...
6
by: Phil | last post by:
I've started getting this message after doing a publish of an Asp.Net 2.0 (c#) web site. The site uses a custom profile provider - I'm sure there is a relation here, but I can't find it. ...
0
by: Sky | last post by:
Hi, Like many others, I've search the newsgroups and KB's and none quite seem to be the problem I am encountering. The problem is as follows: 1) I originally created an ASP.Net Web...
5
by: Bruce | last post by:
I am getting a lot of link errors when compiling in the debug build but not release. I am compiling a CLR managed code class library. I believe the link errors are actually being caused by a...
5
by: Alias | last post by:
Hi - I'm trying to implement a custom RoleProvider based on the SqlRoleProvider. I keep receiving a an error that it can't load type 'MyRoleTest.MyRoleProvider' when trying to load my...
8
by: Rob T | last post by:
When I was using VS2003, I was able to compile my asp.net project locally on my machine and copy it to the production server and it would run just fine. I've now converted to VS2005. The project...
0
by: Gregory Gadow | last post by:
We have a number of development machines in our IT department, all running the same version of VS 2005 sp 1. Our company website and several compiled components were all written in VB.Net 2.0 using...
8
by: =?Utf-8?B?ZG1idXNv?= | last post by:
I'm migrating a VB.NET 2003 application to VB.NET 2008. The 2003 app used the June 2005 Enterprise Library while I'm going to use the latest EntLib, 4.0 - May 2008. I copied the 2003 app to a...
2
by: =?Utf-8?B?UmFuZHlz?= | last post by:
This just started when I updated to sp 1 working on a APS.net, Visual Studio 2008, c# Project. When I open a project, I get tons of Errors showing in the list 300+ if I double click on them I go...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.