Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

asp.net 2.0 AJAX site deployment

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Henok Girma - 16 Apr 2008 14:53 GMT
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 - 16 Apr 2008 16:34 GMT
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.

> 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
[quoted text clipped - 12 lines]
>
> any help is greatly appreciated.
Cowboy (Gregory A. Beamer) - 16 Apr 2008 17:18 GMT
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.

Signature

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!

*************************************************
> Most likely you have same code in default.aspx page and in your .cs
> file...
[quoted text clipped - 32 lines]
>>
>> any help is greatly appreciated.
Cowboy (Gregory A. Beamer) - 16 Apr 2008 17:19 GMT
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.

Signature

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!

*************************************************
> 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
[quoted text clipped - 12 lines]
>
> any help is greatly appreciated.
Henok Girma - 16 Apr 2008 20:08 GMT
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.

> 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
[quoted text clipped - 12 lines]
>
> any help is greatly appreciated.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.