473,508 Members | 2,168 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.FirstName

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.String"
provider="AspNetSqlMembershipProvider"/>

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.microsoft.com/.NetConfiguration/v2.0:configuration'.
C:\Inetpub\wwwroot\insite_test\Web.config 1 4 insite_test
Message 2 Could not find schema information for the element
'http://schemas.microsoft.com/.NetConfiguration/v2.0:appSettings'.
C:\Inetpub\wwwroot\insite_test\Web.config 2 3 insite_test
Message 3 Could not find schema information for the element
'http://schemas.microsoft.com/.NetConfiguration/v2.0:add'.
C:\Inetpub\wwwroot\insite_test\Web.config 3 4 insite_test
Message 4 Could not find schema information for the attribute 'key'.
C:\Inetpub\wwwroot\insite_test\Web.config 3 8 insite_test
Message 5 Could not find schema information for the attribute
'value'. C:\Inetpub\wwwroot\insite_test\Web.config 3 26
insite_test Message 6 Could not find schema information for the
element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:add'.
C:\Inetpub\wwwroot\insite_test\Web.config 4 4 insite_test
Message 7 Could not find schema information for the attribute 'key'.
C:\Inetpub\wwwroot\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 1766
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.FirstName

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.String"
provider="AspNetSqlMembershipProvider"/>

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.microsoft.com/.NetConfiguration/v2.0:configuration'.
C:\Inetpub\wwwroot\insite_test\Web.config 1 4 insite_test
Message 2 Could not find schema information for the element
'http://schemas.microsoft.com/.NetConfiguration/v2.0:appSettings'.
C:\Inetpub\wwwroot\insite_test\Web.config 2 3 insite_test
Message 3 Could not find schema information for the element
'http://schemas.microsoft.com/.NetConfiguration/v2.0:add'.
C:\Inetpub\wwwroot\insite_test\Web.config 3 4 insite_test
Message 4 Could not find schema information for the attribute 'key'.
C:\Inetpub\wwwroot\insite_test\Web.config 3 8 insite_test
Message 5 Could not find schema information for the attribute
'value'. C:\Inetpub\wwwroot\insite_test\Web.config 3 26
insite_test Message 6 Could not find schema information for the
element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:add'.
C:\Inetpub\wwwroot\insite_test\Web.config 4 4 insite_test
Message 7 Could not find schema information for the attribute 'key'.
C:\Inetpub\wwwroot\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
5715
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...
1
2054
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...
6
1283
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...
27
1905
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...
3
1788
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 :...
3
1217
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...
0
1740
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...
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...
1
2618
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...
0
7227
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,...
0
7391
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...
1
7054
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...
1
5056
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1564
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 ...
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
424
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...

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.