locked
Keep .aspx & .cs files on seprate Server RRS feed

  • Question

  • User-1837324441 posted

    Dear Experts,

    I have one confusion, i made .net website code in c# (.aspx & .cs)

    Now I have 3 server,

    1. Database server - In which i will put my database

    2. Application Server

    3. Web Server

    Now my confusion is, why we need Application Server and Web Server, where i should upload by website source code. what does application server & Web server do?

    I spoke to my one of my team mate, he told..i need to upload .aspx file on Web Server & .cs file on Application Server, how is that possible?

    Waiting for your quick reply,

    Thanks

    Thursday, April 20, 2017 2:22 PM

All replies

  • User765422875 posted

    rajesh.s.singh

    I spoke to my one of my team mate, he told..i need to upload .aspx file on Web Server & .cs file on Application Server, how is that possible?

    Just to be clear, a Web Server exclusively handles HTTP requests, whereas an Application Server serves business logic to application programs through any number of protocols. That being said, an Application Server can contain a Web Server. An Application server just has a couple more additions/extensions to it than standard Web Servers.

    In your case - ASPX files (markup) are for Web Forms and rendered on the server and having underlying class files (.cs) - they need to run together on a Web Server.

    However, you can have .NET services running on an Application Server that your Web Forms pages can consume.

    Thursday, April 20, 2017 3:43 PM