473,667 Members | 2,577 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

website work on localhost but not on the server

Hi Everybody,

I have a project and I upload it to the server but it dosn't work.
On my local host it is work fine.
I try to write simple page just hello world and upload to the server
it same thing , and I cannot know the error from the client side it is
give me this error.
--------------------
Details: To enable the details of this specific error message to be
viewable on remote machines, please create a <customErrorsta g within
a "web.config " configuration file located in the root directory of the
current web application. This <customErrorsta g should then have its
"mode" attribute set to "Off".
<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a
custom error page by modifying the "defaultRedirec t" attribute of the
application's <customErrorsco nfiguration tag to point to a custom
error page URL.
<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="RemoteOnl y"
defaultRedirect ="mycustompage. htm"/>
</system.web>
</configuration>
---------------------------------------
Please any Idea, I'm using vs 2005 asp.net vb

Thanx

Sep 9 '07 #1
7 4651
Is the server yours?

or is this a ISP's server?

You need to enable ASP.NET on the server

"LaiLakY" <fa********@yah oo.comwrote in message
news:11******** **************@ y42g2000hsy.goo glegroups.com.. .
Hi Everybody,

I have a project and I upload it to the server but it dosn't work.
On my local host it is work fine.
I try to write simple page just hello world and upload to the server
it same thing , and I cannot know the error from the client side it is
give me this error.
--------------------
Details: To enable the details of this specific error message to be
viewable on remote machines, please create a <customErrorsta g within
a "web.config " configuration file located in the root directory of the
current web application. This <customErrorsta g should then have its
"mode" attribute set to "Off".
<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a
custom error page by modifying the "defaultRedirec t" attribute of the
application's <customErrorsco nfiguration tag to point to a custom
error page URL.
<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="RemoteOnl y"
defaultRedirect ="mycustompage. htm"/>
</system.web>
</configuration>
---------------------------------------
Please any Idea, I'm using vs 2005 asp.net vb

Thanx
Sep 9 '07 #2
Change the web.config so the customErrors element looks like the one you
were shown in the error. That will make the error visible to you.
--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"LaiLakY" <fa********@yah oo.comwrote in message
news:11******** **************@ y42g2000hsy.goo glegroups.com.. .
Hi Everybody,

I have a project and I upload it to the server but it dosn't work.
On my local host it is work fine.
I try to write simple page just hello world and upload to the server
it same thing , and I cannot know the error from the client side it is
give me this error.
--------------------
Details: To enable the details of this specific error message to be
viewable on remote machines, please create a <customErrorsta g within
a "web.config " configuration file located in the root directory of the
current web application. This <customErrorsta g should then have its
"mode" attribute set to "Off".
<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a
custom error page by modifying the "defaultRedirec t" attribute of the
application's <customErrorsco nfiguration tag to point to a custom
error page URL.
<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="RemoteOnl y"
defaultRedirect ="mycustompage. htm"/>
</system.web>
</configuration>
---------------------------------------
Please any Idea, I'm using vs 2005 asp.net vb

Thanx

Sep 9 '07 #3
Hi all, thanks for your replay
I went to the server and run application from browser, it is give
error about the connection string which is not recognized, I delete
the line becouse my application is simple helo world app. and ren it
again and give error about
----------------------------
it is an error to use a section registered as allowDefinition ='machine
ToApplication' beyond application level. this error can be caused by a
virtual directory not being configerd as an application in IIS.

line 57 : <authenticati on mode="windows" /s

I copy the pages in wwwroot folder which all old files on it.
any idea please. thanks

Sep 10 '07 #4
What this means is the directory you are publishing to is not marked as an
application. If you're publishing to a directory such as
www.mysite.com/myapp then the myapp is not marked as an application for the
web server. You are receiving this message because the authentication
element can only be used in the web.config that's at the root directory of
an application. In this case, it would be at www.mysite.com. Putting it into
the myapp directory is thus placing it into a sub-directory of the app. That
also means that your bin directory with your dll files would also be inthe
wrong directory. What you'll need to do is to find a way to mark the
directory you are publishing to as it's own application. your we host may
have this feature available as part of your web site's control panel.
--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"LaiLakY" <fa********@yah oo.comwrote in message
news:11******** **************@ d55g2000hsg.goo glegroups.com.. .
Hi all, thanks for your replay
I went to the server and run application from browser, it is give
error about the connection string which is not recognized, I delete
the line becouse my application is simple helo world app. and ren it
again and give error about
----------------------------
it is an error to use a section registered as allowDefinition ='machine
ToApplication' beyond application level. this error can be caused by a
virtual directory not being configerd as an application in IIS.

line 57 : <authenticati on mode="windows" /s

I copy the pages in wwwroot folder which all old files on it.
any idea please. thanks

Sep 10 '07 #5
LaiLakY,

What that error means is that you must configure the physical directory
where your "hello world" file is located as a virtual directory in IIS.

Open IIS Manager by going to Control Panel -Administrative Tools -Internet Information Services.

In the IIS Manager, select the "Default Web Site" folder and right-click it.
Select "New" from the context menu, and then click Virtual Directory .

The Virtual Directory Creation Wizard appears.

B. Click Next.
C. In the Alias box, type a name for the virtual directory. (choose a short name that is easy to type)
D. Click Next.

E. In the Path box, type or browse to the physical directory where your application resides,
( drive:\inetpub\ wwwroot\yourDir \ is the default, but it could be anywhere on your hard drive,
and then click Next.

F. Choose the defaults on the next two pages.
G. Click Finish.

After you're done, you should be able to access the files in the physical directory
by typing : http://localhost/TheVirtualDirectory...lias/some.aspx

Btw, if all you're doing is a simple "Hello world" app, I'd also delete the contents of your web.config.

You don't need it to experiment with a simple "Hello world" application.
After you get more familiar with what web.config files do, you can start adding things to it.

Good luck...and let us know if you have any problems after doing that.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"LaiLakY" <fa********@yah oo.comwrote in message news:11******** **************@ d55g2000hsg.goo glegroups.com.. .
Hi all, thanks for your replay
I went to the server and run application from browser, it is give
error about the connection string which is not recognized, I delete
the line becouse my application is simple helo world app. and ren it
again and give error about
----------------------------
it is an error to use a section registered as allowDefinition ='machine
ToApplication' beyond application level. this error can be caused by a
virtual directory not being configerd as an application in IIS.

line 57 : <authenticati on mode="windows" /s

I copy the pages in wwwroot folder which all old files on it.
any idea please. thanks


Sep 10 '07 #6

I relay appreciate your replay thanks again
I found the problem is in my application that if I run the application
from the vs 205 software it is run fine. but from the browser it is
give this error if the page had some Db
-------------------
Exception Details: System.Data.Sql Client.SqlExcep tion: Login failed
for user 'C0011791\ASPNE T'.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.
-------------------
for simple page it is work if there is no web.config file
thanks Juan T. Llibre and Mark Fitzpatrick for your support.
and I relink IIS to the folder and it is make sense the error now
change

Sep 11 '07 #7
Hi all,
I add a user to be login not as windows,rather it will sql
authentication
and give me the error in both from the browser or from the visual
studio debug command
error is
--------------------------
Exception Details: System.Data.Sql Client.SqlExcep tion: Login failed
for user 'fahad'. Reason: Not associated with a trusted SQL Server
connection.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.
-------------------------------
Please I hav a deadline for this project and it is work fine and I
need to upload it to the server
any idea
thanks

Sep 11 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1356
by: Wizard | last post by:
Hi, If I have a box with SQL on and IIS and develop a Website on this box entering all connection strings and links in as local host, then move the box on to the network and get clients to connect to say http://192.168.0.1/index.aspx will this work? I mean will the App run on the server or will it look at the localhost (ie the client thats connecting) for its database
1
1600
by: Philipp Lenz | last post by:
I'm completely new to ASP.Net 2.0 and I'm baffled about what to do to get this to work. FYI, I'm not new at this, I've used asp.net 1.1 for allmost 4 years now. I'm running a development machine running Team Foundation Server, VS.net 2005 Team Suite and SQL Server 2005, all freshly installed and working (all final, no betas). I've built my first website and, having worked with sharepoint for
13
1749
by: coosa | last post by:
Dear all, When i create a website using Visual Studio 2005 i have an option to choose based on the local file system or the http:// address; For the local file system, when i later run my web site, the asp.net development server starts and it assigns a random port to the web server while for the second option by choosing a http:// address for the web site project, no random ports will be assigned. More convenient for me is let people...
10
3377
by: TS | last post by:
i just noticed the website i created in VS 2005 is running on a different port than the default. I see that it is running on the local web server, and also that the website i created isn't in IIS. My crystal report looks weird because it is trying to show images from the crystalreportviewers10 virtual directory based on the current website running, which in this case is localhost:1169, but actuall the crystalreportviewers10 virtual...
1
251
by: glezaber | last post by:
Hi, I´ve two websites stored in IIS 5.0, and what I want is to Redirect from A website to B website, the problem is that doesn´t work because if I use Response.Redirect (http://localhost:5080) where is the A website from the B, it only works in the same machine, because if you try doing it from another one it takes de localhost directly without asking for the correct parsing. I tryed too doing it with the Server.Transfer, but that doesn´t...
5
3323
by: Dariusz Tomon | last post by:
Hello I have no idea how to deploy my website to another server (in virtual folder I cannot see dlls file). Is thate any simple and quick manner to deploy web site to another servers? Best Regards Dariusz Tomon
1
1215
by: Joey | last post by:
Hello all, I have a machine with the following config: Windows XP Professional Microsoft SQL Server 2005 Standard Ed Microsoft SQL Server Management Studio Express (it works fine with Standard Ed) asp.net 1.1 asp.net 2.0
2
1551
by: =?Utf-8?B?Tkg=?= | last post by:
Hi, I have an asp.net 2.0 website and a sql database on the same server. In the web config file I have set up a connection to the database using this connection string.... connectionString="Data Source=myServer;Initial Catalog=MyDatabase;Persist Security Info=True;User ID=LoginUser;Password=LoginPassword" providerName="System.Data.SqlClient" />
11
3304
by: AAaron123 | last post by:
I have an vs2008 app that generates a website. I have a vs2008 app that uses the webbrowser and does this: WebBrowser1.Navigate(New Uri(address)) the address is: http://localhost:1226/Mr.%20Louis%20Jones/
5
1616
by: Peter | last post by:
IIS6 on Windows Server 2003 I have a DotNetNuke website which works fine as long as I am openning the webpage on the web server, but when I try to open the same website from any client the webpage gets redirected from: http://reports01/Reports/Default.aspx to http://localhost/Reports
0
8457
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8883
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8788
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8646
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.