[RESOLVED] Web app deployment doubts
Hello friends. I am trying to develop an web app based on .net and asp. Therefore I did this tutorial:http://msdn.microsoft.com/es-es/library/ms243156.aspx (Walkthrough: Creating a Simple Web Application). Everything is working fine on localhost.
Then I tried to deply it to my webserver. I used the ftp method. Visual Studio says it is correct. But when I browse to the Dafault.aspx page i can see only this code on my screen:
Code:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="ColorWebApp._Default" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem Selected="True">red</asp:ListItem>
<asp:ListItem>blue</asp:ListItem>
</asp:RadioButtonList>
<asp:Button ID="Button1" runat="server" Text="Submit" />
</form>
</body>
</html>
What am i doing wrong? I am a little lost and would appreciate any help. Thanks in advance.
A.
Re: Web app deployment doubts
Could it be perhaps some ASP publish settings i have missed? Or maybe there is something wrong in the first or second line of code that brings the browsers not to respond properly?
Pls help.
A.
Re: Web app deployment doubts
Could this thread be moved to the ASP forum? Maybe I am in the wrong one.
thx.
A.
Re: Web app deployment doubts
Re: Web app deployment doubts
Hello,
It sounds very much like ASP.Net as not been enabled on the Web Server that you are deploying to. Can you confirm that it has?
Gary
Re: Web app deployment doubts
Have you created a website in IIS so you can view your application or you just copied the code and expect it to work?
Re: Web app deployment doubts
Thanks for the replys.
I will try to make sure that ASP.net is enabled in the webserver. (Will try to figure out how this can be done, because they are not very helpfull. Maybe there is a script or something i can use, to know if it is enabled), otherwise I will deploy the app to another webserver I have (Hostgator).
Sapator: I am a total beginner in this, so I am not sure. What i did was follow the tutorial (The app works fine on localhost) and then deploy it via the ftp-method inside visual studio. (It said that that the deployment was successfull).
A.
Re: Web app deployment doubts
Hello,
Enabling ASP.Net, or rather a specific version of ASP.Net on a Virtual Directory is something that your web host should provide in their Control Panel. If you can't find it, you might have to raise a support ticket to cover the work.
Gary
Re: Web app deployment doubts
Hi friends. I am sorry for the big delay. It was a matter of ASP not being enabled in the web server, just as Gary suggested. As soon as i found a server with ASP enabled, the app worked perfectly. So, many many thanks.
A.
Re: Web app deployment doubts
I tried to add the "resolved" to the thread, but I am not sure how to do it.
A.
Re: Web app deployment doubts
Quote:
Originally Posted by
Alexandra_vb
I tried to add the "resolved" to the thread, but I am not sure how to do it.
A.
You can mark the thread resolved by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. :wave:
Basically the quote in my sig.
Re: Web app deployment doubts
Quote:
Originally Posted by
Alexandra_vb
Hi friends. I am sorry for the big delay. It was a matter of ASP not being enabled in the web server, just as Gary suggested. As soon as i found a server with ASP enabled, the app worked perfectly. So, many many thanks.
A.
Hello there,
Glad to hear that you got the problem resolved!
Gary