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
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!
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:
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.
gordon1221
Member
12 Points
117 Posts
Deploy Project Question
Dec 20, 2012 01:45 PM|LINK
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
usman400
Contributor
3503 Points
721 Posts
Re: Deploy Project Question
Dec 20, 2012 04:40 PM|LINK
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
dotnetnerd
Contributor
2428 Points
548 Posts
Re: Deploy Project Question
Dec 21, 2012 01:55 AM|LINK
Hi gordon,
Have you publish your files properly? Any error message?
Windows ASP.NET Hosting | Reseller Hosting | Cloud Hosting
Anil Pathak
Member
206 Points
54 Posts
Re: Deploy Project Question
Dec 21, 2012 12:11 PM|LINK
Please try to publish on your machin and then move on server. and please check asp.net deployment guide.
Software Developer
LnT Infotech
rachanapandy...
Member
10 Points
8 Posts
Re: Deploy Project Question
Dec 24, 2012 07:54 AM|LINK
dont use ftp instead use file system and upload ur published folder on webserver hope this help you..
Angie xu - M...
All-Star
18602 Points
1575 Posts
Microsoft
Re: Deploy Project Question
Dec 25, 2012 02:06 AM|LINK
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
Feedback to us
Develop and promote your apps in Windows Store
necro_mancer
Star
8073 Points
1587 Posts
Re: Deploy Project Question
Dec 26, 2012 04:30 AM|LINK
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!
Professional SQL 2008 R2 Service
gordon1221
Member
12 Points
117 Posts
Re: Deploy Project Question
Jan 03, 2013 02:58 PM|LINK
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?
gordon1221
Member
12 Points
117 Posts
Re: Deploy Project Question
Jan 03, 2013 03:41 PM|LINK
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.