Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Web controls cannot be rendered.

    I have created a web form that on click command sends registration data to a SQL server and partial information via server.transfer and string query to another page. That page has a PayPal button that utilizes a string query. Everything works like a champ on my local machine, but when I upload to a web server (with ASP ver2) None of my web controls can be rendered! Being so close to finish is driving me crazy! As a noob there must be something I am overlooking! All help is appreciated.

  • #2
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    What is the exact error message displayed?
    My guess is that the site is configured to be 2.0 but your assemblies point to 1.1. What version is on localhost?

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #3
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It is a runtime error, I am at home right now so I cannot remember the message while running. While trying to display in Frontpage, for every web control it gives the dreaded "There was an error rendering the control. RegisterForEvent Validation can only be called during Render()".
    The funny thing is, yes, this document was created in ASP.Net Web matrix which I think is 1.1, but I had started a form a few weeks previous in Visual Web Developer 2005 which is 2.0. Both, when uploaded to the site gave the same rendering error (in Frontpage). I have both (1.1 & 2.0) on localhost. I was under the impression both could coexist. Would both assemblies point to 1.1? Thanks again.

  • #4
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Actually I have .Net 1.0.3705, 1.1 and 2.0 on this machine.

  • #5
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    So which is giving the error, the web server, or Frontpage?
    Frontpage runs on your machine. If it is giving you render errors, the issue is with the IDE configuration (or it just sucks, which is my general opinion of it, to be honest).
    If the web server is throwing the error, that's a whole 'nother ball of yarn.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #6
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry, the error message is when attempting to view the page on the web server. It is a configuration error, "Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS" Googling this error, I have determined the following : 1. The application was created in wwwroot folder. 2. Viewing the project folder it was not configured as application folder. This has since been rectified.
    The Frontpage is used as management front end on the web server. It is while attempting to view this application within Frontpage that it cannot render the web controls. I hope I haven't confused things further. Again, this works without a hitch on my local host. Thanks again.

  • #7
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I thought I discovered the problem being that my web folder on the server was not a virtual directory in IIS. But that since has been corrected and I still have the problem.

  • #8
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Do you have any web.config files in any subfolders?
    http://groups.google.com/group/micro...cefe5aa5d9c83a

    Is your virtual directory configured as the application root?
    http://groups.google.com/group/micro...73bb85674343aa

    Other possibly useful threads:
    http://groups.google.com/group/micro...73bb85674343aa
    http://groups.google.com/group/micro...05c8188e7522f6

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •