1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Issue with ASP.net Website

Discussion in 'C#' started by jadsn003, Jul 27, 2011.

  1. #1
    I have a problem with my ASP.net website:

    Recently i installed SSL on the website. I added the website bindings to port 443.

    Now, Website Bindings say that it can run on port 80 and port 443.

    Till here everything works fine. The website runs on http and https.

    I have written redirection rules for certain webpages to run on https. I have redirected the home page from https to http

    for eg: https://www.example.com to http://www.example.com
    Now what the problem is??

    All incoming traffic requests are listened by port 443 by default and then redirected to port 80 . I need that all incoming web requests should be listened by port 80 first and then if required the requests to be shifted to port 443 (for certain pages like cart & checkout).

    What is happening at the moment ?

    Since all the incoming requests are being served by port 443 the memory consumption is huge and every now an then i have to restart my II7 .

    Also i have written Connection Close or dispose in my code by some how connections are not being closed. Even if a visitor leaves a website, the process still remains in the memory and eventually the memory runs out and i have restart IIs again. Application pools restart normally but connections are still not closed and connection data remains in memory , thereby consumed memory and ultimately memory runs out.

    Need Solution :

    1) I want my website to run on port 80 by default which at moment is running on Port 443 . I need port 80 to listen all incoming web traffic first and not port 443 .

    2) Whenever a visitor leaves the website i want the connections to be closed and connection data to be removed from the memory.

    3) I dont have to restart the IIS every now and then.
    jadsn003, Jul 27, 2011 IP
  2. mgonzalvez09

    mgonzalvez09 Peon

    Likes Received:
    Best Answers:
    Trophy Points:
    Go To Visual studio and open u r website then open solution explorer, click the name of application

    Properties pane, click the down-arrow beside Use dynamic ports and select False from the dropdown list.

    This will enable editing of the Port number property.

    In the Properties pane, click the text box beside Port number and type in a port number.

    Click outside of the Properties pane. This saves the property settings.


    Go to Control Panel --> Admin Tools --> Internet Information Services (IIS) Manager
    Expand "Web Sites"

    Now either stop this site, or change it to another port other than 80.

    To change a port right click on the Default Web Site and click properties. Then on the "Web Site" tab you can modify the port.

    Once this is done then right click on the visual studio site and change the port to 80.
    mgonzalvez09, Jul 28, 2011 IP
  3. jadsn003

    jadsn003 Peon

    Likes Received:
    Best Answers:
    Trophy Points:
    To Be Precise, I am getting this Error in Event Viewer :

    "A worker process '1500' serving application pool 'Classic .NET AppPool' failed to stop a listener channel for protocol 'http' in the allotted time. The data field contains the error number."

    Please respond...
    jadsn003, Jul 29, 2011 IP
  4. anonymous-MD

    anonymous-MD Peon

    Likes Received:
    Best Answers:
    Trophy Points:
    u got a live demo?
    anonymous-MD, Aug 1, 2011 IP