473,657 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

compile errors when converting web site project to web application project

I converted a working web site project to a web application project and I
am getting a bunch of warnings and compile errors.

All code using .NET's profile class is giving an error.

example line:
txtName.Text = Profile.FirstNa me

gives an error:
... FirstName' is not a member of 'Profile'.

Even though it worked before migration and I have an attribute for it in
web.config:

...... <properties>
<add name="FirstName " type="System.St ring"
provider="AspNe tSqlMembershipP rovider"/>

and then I am getting lots of warnings for the web.config file. See below.
The warnings might be the cause for the profile errors because it couldn't
read the attributes for the profile but why is Visual Studio giving
warnings about the web.config file?

Message 1 Could not find schema information for the element
'http://schemas.microso ft.com/.NetConfigurati on/v2.0:configurat ion'.
C:\Inetpub\wwwr oot\insite_test \Web.config 1 4 insite_test
Message 2 Could not find schema information for the element
'http://schemas.microso ft.com/.NetConfigurati on/v2.0:appSetting s'.
C:\Inetpub\wwwr oot\insite_test \Web.config 2 3 insite_test
Message 3 Could not find schema information for the element
'http://schemas.microso ft.com/.NetConfigurati on/v2.0:add'.
C:\Inetpub\wwwr oot\insite_test \Web.config 3 4 insite_test
Message 4 Could not find schema information for the attribute 'key'.
C:\Inetpub\wwwr oot\insite_test \Web.config 3 8 insite_test
Message 5 Could not find schema information for the attribute
'value'. C:\Inetpub\wwwr oot\insite_test \Web.config 3 26
insite_test Message 6 Could not find schema information for the
element 'http://schemas.microso ft.com/.NetConfigurati on/v2.0:add'.
C:\Inetpub\wwwr oot\insite_test \Web.config 4 4 insite_test
Message 7 Could not find schema information for the attribute 'key'.
C:\Inetpub\wwwr oot\insite_test \Web.config 4 8 insite_test

and lots more of 'Could not find schema information.." warnings.
John Dalberg
Mar 26 '07 #1
1 1775
You need to add a WebProfile class since the provider normally expects an
APP_CODE folder. Scott Guthrie covers this on his blog and there is even an
add-in to generate the required class. Sorry, can't remember exactly where it
is.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"John Dalberg" wrote:
I converted a working web site project to a web application project and I
am getting a bunch of warnings and compile errors.

All code using .NET's profile class is giving an error.

example line:
txtName.Text = Profile.FirstNa me

gives an error:
... FirstName' is not a member of 'Profile'.

Even though it worked before migration and I have an attribute for it in
web.config:

...... <properties>
<add name="FirstName " type="System.St ring"
provider="AspNe tSqlMembershipP rovider"/>

and then I am getting lots of warnings for the web.config file. See below.
The warnings might be the cause for the profile errors because it couldn't
read the attributes for the profile but why is Visual Studio giving
warnings about the web.config file?

Message 1 Could not find schema information for the element
'http://schemas.microso ft.com/.NetConfigurati on/v2.0:configurat ion'.
C:\Inetpub\wwwr oot\insite_test \Web.config 1 4 insite_test
Message 2 Could not find schema information for the element
'http://schemas.microso ft.com/.NetConfigurati on/v2.0:appSetting s'.
C:\Inetpub\wwwr oot\insite_test \Web.config 2 3 insite_test
Message 3 Could not find schema information for the element
'http://schemas.microso ft.com/.NetConfigurati on/v2.0:add'.
C:\Inetpub\wwwr oot\insite_test \Web.config 3 4 insite_test
Message 4 Could not find schema information for the attribute 'key'.
C:\Inetpub\wwwr oot\insite_test \Web.config 3 8 insite_test
Message 5 Could not find schema information for the attribute
'value'. C:\Inetpub\wwwr oot\insite_test \Web.config 3 26
insite_test Message 6 Could not find schema information for the
element 'http://schemas.microso ft.com/.NetConfigurati on/v2.0:add'.
C:\Inetpub\wwwr oot\insite_test \Web.config 4 4 insite_test
Message 7 Could not find schema information for the attribute 'key'.
C:\Inetpub\wwwr oot\insite_test \Web.config 4 8 insite_test

and lots more of 'Could not find schema information.." warnings.
John Dalberg
Mar 28 '07 #2

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

Similar topics

2
5731
by: Qiao Yun | last post by:
I used vc++.net (visual studio .net ) to open a project which can work well in vc++6.0. I succeeded in compiling the project in vc++.net in release mode . But when I tried to compile the project in debug mode, the following errors happened: d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(29): error C2365: 'new' : redefinition; previous definition was a 'member function' d:\Program Files\Microsoft Visual Studio...
1
2065
by: Ravi Chaudhary | last post by:
Hi, We are using VS.Net 2003 and coding in VB.net. The solution has 38 projects; most of the projects in the solution reference other projects (without any circular references) and all the references were added to using the Projects tab on the Add Reference dialog and not by browsing to the DLL for the project. When we build or run the solution "bogus" compile errors
6
1291
by: Kevin Atherton | last post by:
Hello. I work for a large web company, and we are in the process of converting our old .asp pages to .aspx with VB code-behind. The solution includes 8 projects, all of which are very interwoven. The problem is that when I first open the IDE and load my solution, if I try to build or build all, it gets partway through the compile and then IDE simply goes away. There is no error, no fanfare, no warning, no indication that there is a...
27
1923
by: Rene | last post by:
I keep getting the following error every time I compile the solution under VS 2005: ---------------- Error 5 Unable to copy file "obj\Debug\xyz.dll" to "bin\Debug\xyz.dll". The process cannot access the file 'bin\Debug\xyz.dll' because it is being used by another process. ----------------
3
1801
by: walter | last post by:
Hi there, we have a big ecommerce site contains lots of services which is developed by different teams. But physically there are on the same site just different folders. here is what I want to do : 1. Compile each service folder into a separated DLL.Note I don't think aspnet_compiler works for me since all these services is not stand-alone application. But I definitely don't want to compile the whole site as one since each service has...
3
1224
by: Dean Slindee | last post by:
My project is getting a bit large, and I would like to kick-start VS05 into performing the error-checking compilation at my direction, rather than waiting for it to self-start. Is there a way to do this? Thanks, Dean S
0
1756
by: Ramesh2006 | last post by:
Hi, The following error occurred when i programmatically compile another project from my present project. The Error: error CS0234:The type or namespace name 'Windows' does not exist in the namespace 'System' <are you missing an assembly reference> The Source Code:
4
554
by: K Viltersten | last post by:
We have a project working well today and it's developed on VS2005. Since we're planing to switch to VS2008 in a soon future, i've been trying to move the project to VS2008 Express (Web Developer). After i've moved over all the files, i run into problems compiling and running it. Both versions of VS are run on the same computer (with the sam settings, of course). Still, when i try to run index.aspx, i get error message as follows:
1
2635
by: =?Utf-8?B?SG93YXJkIFBpbnNsZXk=?= | last post by:
I'm trying to convert a Web Site to the Web Application project model and I'm running into compile errors that do not seem to be covered by the guidance I found at "Converting a Web Site Project to a Web Application Project". The issue is that standard ASP.NET controls that are embedded as child controls within the ContentTemplate of the Ajax Control Toolkit's TabContainer/TabPanel are no longer visible to the page (and result in compile...
0
8420
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8516
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7353
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.