Deploy web app from VS ExpressEdition to production server? Is it possible ...

I

ivo

Hi everyone

I am having trouble with deploying VS 2005 Express Edition web app to
real server on the net.

Since VS 2005 ExpressEdition is free - is it for that reason unpossible
to do deployment ...

What do I need to copy to remote server ...

Thank you
 
K

Ken Cox [Microsoft MVP]

You shouldn't have a problem deploying the site.

Try copying all the files and folders to the server and see what happens?
 
I

ivo

Hi

Maybe I am missing something ... here is link:
http://www.bet-live.ba/x_test/Default.aspx


I am moving 3 files to x_temp server directory ... I have a feeling
there are more files needed to be copied ... but for now I copy these 3
(this is hello world example)

1. Default.aspx
2. Default.aspx.cs
3. Web.Config

Does anybody have a clue what might be wrong here?!?

Thank you for help!
:)

Greetings

---------------


And here is content of all 3 files:

--------------
Default.aspx
--------------
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" runat="server"
Text="Label"></asp:Label></div>
</form>
</body>
</html>


--------------
Default.aspx.cs
--------------
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
this.Label1.Text = System.DateTime.Now.ToLongTimeString();
}
}

-------------
Web.Config
I did one change here ... <compilation debug="true"/> to <compilation
debug="false"/>
-------------

<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="false"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
 
K

Ken Cox [Microsoft MVP]

In your web.config file, make sure customErrors is set like this:

<customErrors mode="Off"/>

and upload it to the server again?

That way, we can see what's not working..

Ken
 
I

ivo

Hi

I did it like this ... still same result ...
:-|

Added extra tag ... with atribute mode set to "Off"

<customErrors mode="Off"/>

However, I am wondering ... could it be possible that .Net 1.1
Framework causes this error ... if I try to run 2.0 app ...

Cheers
Ivan


--------------------
Here is new Web.Config

<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="false"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<customErrors mode="Off"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
 
K

Ken Cox [Microsoft MVP]

You have to be running .NET 2.0 for the Web if your code is for 2.0.
 
I

ivo

:)

I know ...

But I dont have clear info on .Net version ... still waiting for
hosting company to tell me what version is running ...

http://www.utic-hosting.ba/bos/hosting/index.php?paket=5

They state that ASP.NET is running ... but no version info ...

I saw that hosting company is also using aspx pages ...
https://winhost1.utic.net.ba/admin/login/Login.aspx?ReturnUrl=/admin/Default.aspx

So I took a peek to HTML source ...
.... to see is there any "signature" of .Net 2.0 or 1.1 ...

And this is what I have found ...
:
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
:

This 7.0 would be VS 2003 (I have 8.0 for VS 2005) ... and it looks
like (to my missfortune) probably .Net Fw 1.1 is running ...

Thanks for help ...

Much appreciated!
:)

Cheers
Ivan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top