locked
Deploy Project Question RRS feed

  • Question

  • User444756084 posted

    Hi, I am deploying my first project in Visual Studio 2010. I Published the project as FTP. I used FileZilla to move the cresated directory over to the server. However, when I view the page in the browser I am seeing the code - not the form. Any pointers on what I am doing wrong? Thanks

    Thursday, December 20, 2012 9:45 AM

Answers

  • User1196771204 posted

    hi GorDon,

    Choosing between FTP and Web Deploy do not really matter here. As long as you can get it right, both methods will work just fine.

    For FTP publishing, please just make sure you "publish" your site properly first via your Visual Studio tool. Please follow the guidelines below:

    1. Please open your VS 2010 tool and please open your Project
    2. On the "Solution Explorer" window, right click your project and select "Publish"
    3. Please publish your project to a local folder, e.g. C:\MyProject
    4. Once published, you will notice that all the code-behind files (.cs or .vb) have disappeared on C:\MyProject
    5. You just need to upload whatever files and folders you see on C:\MyProject to the server via FTP and everything will work fine

    Please mark this response as an "answer" if it helps you. Thanks heaps!  

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 26, 2012 12:30 AM

All replies

  • User-151368862 posted

    What code u r seeing?
    Is it source code (HTML) or server side code (vb or c#) ???

    Some times the HTML source misses some end tag, and it causes the rest of the page to be displayed as
    simple text insted of being rendered from HTML

    Thursday, December 20, 2012 12:40 PM
  • User311508580 posted

    Hi gordon,

    Have you publish your files properly? Any error message?

    Thursday, December 20, 2012 9:55 PM
  • User-1349187584 posted

    Please try to publish on your machin and then move on server. and please check asp.net deployment guide.

    Friday, December 21, 2012 8:11 AM
  • User1122214537 posted

    dont use ftp instead use file system and upload ur published folder on webserver hope this help you..

    Monday, December 24, 2012 3:54 AM
  • User-166373564 posted

    Hi gordon

    I think the deployment strategy below ia also available for you to deploy Windows-based applications from Visual Studio,

    Choosing a Deployment Strategy- http://msdn.microsoft.com/en-us/library/e2444w33(v=vs.100).aspx

    hope it helps you,

    Kind regards

    Monday, December 24, 2012 10:06 PM
  • User1196771204 posted

    hi GorDon,

    Choosing between FTP and Web Deploy do not really matter here. As long as you can get it right, both methods will work just fine.

    For FTP publishing, please just make sure you "publish" your site properly first via your Visual Studio tool. Please follow the guidelines below:

    1. Please open your VS 2010 tool and please open your Project
    2. On the "Solution Explorer" window, right click your project and select "Publish"
    3. Please publish your project to a local folder, e.g. C:\MyProject
    4. Once published, you will notice that all the code-behind files (.cs or .vb) have disappeared on C:\MyProject
    5. You just need to upload whatever files and folders you see on C:\MyProject to the server via FTP and everything will work fine

    Please mark this response as an "answer" if it helps you. Thanks heaps!  

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 26, 2012 12:30 AM
  • User444756084 posted

    hi GorDon,

    Choosing between FTP and Web Deploy do not really matter here. As long as you can get it right, both methods will work just fine.

    For FTP publishing, please just make sure you "publish" your site properly first via your Visual Studio tool. Please follow the guidelines below:

    1. Please open your VS 2010 tool and please open your Project
    2. On the "Solution Explorer" window, right click your project and select "Publish"
    3. Please publish your project to a local folder, e.g. C:\MyProject
    4. Once published, you will notice that all the code-behind files (.cs or .vb) have disappeared on C:\MyProject
    5. You just need to upload whatever files and folders you see on C:\MyProject to the server via FTP and everything will work fine

    Please mark this response as an "answer" if it helps you. Thanks heaps!  

     

    I followed step by step using the above, and the end result is still dispalying as code and not the application: This is what is displayed:

     

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="COF.aspx.cs" Inherits="ChooseOhioFirst.WebForm1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <link href="COF.css" rel="stylesheet" type="text/css" />
    <%--<script type="text/jscript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"> </script> <script type="text/jscript">
         $(document).ready(function () {          $("#txtStudentID").blur(function () {              var StudentID = $("#txtStudentID").val();              if (StudentID != "") {                  $("#txtFirstName").val("test");              }              else {                  $("#txtFirstName").val("");              }          });      }); </script>--%>
     

     

    Am I missing a step?

     

     

    Thursday, January 3, 2013 10:58 AM
  • User444756084 posted

    On my test server, the application is displaying (NOT the code) but it is only dispalying the images, paragraphs, headings, dropdown text. The controls (textbox, radiobuttons, submit buttons) are not displaying.

    Thursday, January 3, 2013 11:41 AM