473,395 Members | 1,583 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,395 software developers and data experts.

asp.net 2.0 AJAX site deployment

Hello, i have developed an AJAX enabled web app, but when i try to deploy it
on the production server, it craps out.. and it's a rather strange error i
get, and i have no were to go with it.

Compiler Error Message: CS0108: Warning as Error: 'ASP.default_aspx.Profile'
hides inherited member 'Default_Default.Profile'. Use the new keyword if
hiding was intended.

in the srouce error section, it shows

[No relevant source lines]
i'm not sure why the code gets compiled to begin with. i have pre-compiled
it on the development machine.

any help is greatly appreciated.

Jun 27 '08 #1
4 1584
Most likely you have same code in default.aspx page and in your .cs file...
example
------default.aspx------
<script runat=server>
int Profile = 0;
</script>

--------default.cs----------
class _Default
{
int Profile = 0;
}

------------------------
That would do it since "Profile" defined in aspx page would hide "Profile"
defined in .cs file
George.
"Henok Girma" <re***@here.only.comwrote in message
news:3E**********************************@microsof t.com...
Hello, i have developed an AJAX enabled web app, but when i try to deploy
it on the production server, it craps out.. and it's a rather strange
error i get, and i have no were to go with it.

Compiler Error Message: CS0108: Warning as Error:
'ASP.default_aspx.Profile' hides inherited member
'Default_Default.Profile'. Use the new keyword if hiding was intended.

in the srouce error section, it shows

[No relevant source lines]
i'm not sure why the code gets compiled to begin with. i have pre-compiled
it on the development machine.

any help is greatly appreciated.

Jun 27 '08 #2
Same basic idea, but I would assume that this is a Membership Profile object
and he has a member called Profile. Renaming that member will help.

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

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:eo*************@TK2MSFTNGP05.phx.gbl...
Most likely you have same code in default.aspx page and in your .cs
file...
example
------default.aspx------
<script runat=server>
int Profile = 0;
</script>

--------default.cs----------
class _Default
{
int Profile = 0;
}

------------------------
That would do it since "Profile" defined in aspx page would hide "Profile"
defined in .cs file
George.
"Henok Girma" <re***@here.only.comwrote in message
news:3E**********************************@microsof t.com...
>Hello, i have developed an AJAX enabled web app, but when i try to deploy
it on the production server, it craps out.. and it's a rather strange
error i get, and i have no were to go with it.

Compiler Error Message: CS0108: Warning as Error:
'ASP.default_aspx.Profile' hides inherited member
'Default_Default.Profile'. Use the new keyword if hiding was intended.

in the srouce error section, it shows

[No relevant source lines]
i'm not sure why the code gets compiled to begin with. i have
pre-compiled it on the development machine.

any help is greatly appreciated.


Jun 27 '08 #3
Assume you are using Membership bits?

If so, you have something public in default.aspx called Profile. Rename this
member and you should be fine.

Most likely, you are seeing this in the compiler, but it is a warning. Not
sure why it is showing as an error on the application side, but you might
not have everything you need to run AJAX on the server? Just a guess.

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

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"Henok Girma" <re***@here.only.comwrote in message
news:3E**********************************@microsof t.com...
Hello, i have developed an AJAX enabled web app, but when i try to deploy
it on the production server, it craps out.. and it's a rather strange
error i get, and i have no were to go with it.

Compiler Error Message: CS0108: Warning as Error:
'ASP.default_aspx.Profile' hides inherited member
'Default_Default.Profile'. Use the new keyword if hiding was intended.

in the srouce error section, it shows

[No relevant source lines]
i'm not sure why the code gets compiled to begin with. i have pre-compiled
it on the development machine.

any help is greatly appreciated.

Jun 27 '08 #4
Thank you guys, after digging further, i saw that i have warningLevel="4", i
changed that to 1 and it started working..

i did a quick search for something called Profile in the source codes of the
whole project and nothing came up.. but for now it's working by just chaning
the web.config compiler option..

Thanks for the help, ultimately you helped me solve it because you mentioned
that it should not be an error, but rather a warning.

"Henok Girma" <re***@here.only.comwrote in message
news:3E**********************************@microsof t.com...
Hello, i have developed an AJAX enabled web app, but when i try to deploy
it on the production server, it craps out.. and it's a rather strange
error i get, and i have no were to go with it.

Compiler Error Message: CS0108: Warning as Error:
'ASP.default_aspx.Profile' hides inherited member
'Default_Default.Profile'. Use the new keyword if hiding was intended.

in the srouce error section, it shows

[No relevant source lines]
i'm not sure why the code gets compiled to begin with. i have pre-compiled
it on the development machine.

any help is greatly appreciated.
Jun 27 '08 #5

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

Similar topics

2
by: Marcus | last post by:
I have seen many posts of people with the same problem as me (attached below), but I have yet to see any solutions posted. Has anyone figured out how to deploy an Asp.net web site to the webserver...
3
by: Bratislav Jevtic | last post by:
Hi, I've just installed Ajax November CTP, changed app according to instructions and I am (was) satisfied. Next step - deployment to server. I'm receiving error:...
2
by: JezB | last post by:
I want to get into ASP.NET with the AJAX toolkit, but am worried about finding an appropriate provider to host my site. What are the minimum requirements for the web server ?
0
by: =?Utf-8?B?UmljaCBBcm1zdHJvbmc=?= | last post by:
I see that the RTM version of ASP.NET AJAX requires installation of the ASP.NET AJAX assemblies in the GAC. I've been through all the docs, and deployment, per se, is never directly addressed. ...
2
by: =?Utf-8?B?UmljaCBBcm1zdHJvbmc=?= | last post by:
I see that the RTM version of ASP.NET AJAX requires installation of the ASP.NET AJAX assemblies in the GAC. I've been through all the docs, and deployment, per se, is never directly addressed. ...
2
by: Nathan Sokalski | last post by:
I am moving my website from my machine to my webhost, and need some help with what extra files I need to include due to the fact that I used AJAX in my site. Everything on the site is obviously...
10
by: =?Utf-8?B?WWFua2VlIEltcGVyaWFsaXN0IERvZw==?= | last post by:
controlsPlease could some of you here post some of your live examples of AJAX (esp drag panels, collapsable panels, and popup menu.) (It's one thing to talk about how great something is, but it's...
17
by: Scott M. | last post by:
I'd like to start working with Ajax in VS 2008 Pro., but it's important that I not use anything that is not standard with VS 2008 Pro. (with all installation options selected). Does anyone have...
5
by: Cirene | last post by:
When would I use "Copy Web site" over "Publish Website" or visa versa? Why would I use the Web Deployment Project vs these options? I want to make sure no one can pull up/read/download my vb...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.