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.
Henok Girma [ Mi, 16 April 2008 15:53 ] [ ID #1943461 ]

Re: asp.net 2.0 AJAX site deployment

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" <reply [at] here.only.com> wrote in message
news:3ED510C5-5F6C-4B61-8ED3-F8AA245EA660 [at] microsoft.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.
George Ter-Saakov [ Mi, 16 April 2008 17:34 ] [ ID #1943488 ]

Re: asp.net 2.0 AJAX site deployment

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-nsp [at] cardone.com> wrote in message
news:eoKHRd9nIHA.264 [at] 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" <reply [at] here.only.com> wrote in message
> news:3ED510C5-5F6C-4B61-8ED3-F8AA245EA660 [at] microsoft.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.
>
>
NoSpamMgbworld [ Mi, 16 April 2008 18:18 ] [ ID #1943503 ]

Re: asp.net 2.0 AJAX site deployment

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" <reply [at] here.only.com> wrote in message
news:3ED510C5-5F6C-4B61-8ED3-F8AA245EA660 [at] microsoft.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.
NoSpamMgbworld [ Mi, 16 April 2008 18:19 ] [ ID #1943504 ]

Re: asp.net 2.0 AJAX site deployment

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" <reply [at] here.only.com> wrote in message
news:3ED510C5-5F6C-4B61-8ED3-F8AA245EA660 [at] microsoft.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.
Henok Girma [ Mi, 16 April 2008 21:08 ] [ ID #1943528 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » asp.net 2.0 AJAX site deployment

Vorheriges Thema: Export Word Using ASP.net 2.0 : Office 2007 doesn't support UTF-7
Nächstes Thema: using theme's but not for all controls