473,399 Members | 3,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

web.config error! please help!

hi,

i just got a web host with asp.net , seemed really cool. aspx with the
c# or vb IN the actual main page run fine, but when i use codebehind and
make another source file ( a .cs) to go with the aspx (as you would
realistically) I get this :

Details: To enable the details of this specific error message to be
viewable on remote machines, please create a <customErrors> tag within a
"web.config" configuration file located in the root directory of the
current web application. This <customErrors> tag should then have its
"mode" attribute set to "Off".

----- every damn time, and ive done what it says about the web.config,
ive tried everything. i get nothing back from the tech support at the
minute so im totally in the dark :( . any suggestions please?

thanks
Nov 16 '05 #1
8 1560
Rasika wrote:
Make sure you web.config looks something like this:

<?xml version="1.0" encoding="utf-8" ?><configuration><system.web><compilation debug="true" /><customErrors mode="Off" /></system.web></configuration>

mode="Off" should only be used for debugging purposes. Change it back to "On" after you finish so that everyone doesnt see your code during an exception and stack trace.


yeah all looks corect, i even replaced with youts

take a look http://www.necrius.net/WebApplication1/WebForm1.aspx
Nov 16 '05 #2
Hi

I think the error could be that you have not configured an IIS application
at the
WebApplication1 folder.

Currently it is now taking the root application. Unless you configure an
application in IIS for the folder WebApplication1, your web.config (which is
under the WebApplication1 folder) will not take effect.

let me know if this helps..

-Raj

"n3crius" <n3*****@blueyonder.co.uk> wrote in message
news:Q1*****************@news-binary.blueyonder.co.uk...
Rasika wrote:
Make sure you web.config looks something like this:

<?xml version="1.0" encoding="utf-8" ?><configuration><system.web><compilation debug="true" /><customErrors
mode="Off" /></system.web></configuration>
mode="Off" should only be used for debugging purposes. Change it back to
"On" after you finish so that everyone doesnt see your code during an
exception and stack trace.
yeah all looks corect, i even replaced with youts

take a look http://www.necrius.net/WebApplication1/WebForm1.aspx

Nov 16 '05 #3
How can I alter the IIS? This is a web host I'm using, I can't fiddle
with their IIS! ;)
CK
R Rajesh wrote:
Hi

I think the error could be that you have not configured an IIS application
at the
WebApplication1 folder.

Currently it is now taking the root application. Unless you configure an
application in IIS for the folder WebApplication1, your web.config (which is
under the WebApplication1 folder) will not take effect.

let me know if this helps..

-Raj

"n3crius" <n3*****@blueyonder.co.uk> wrote in message
news:Q1*****************@news-binary.blueyonder.co.uk...
Rasika wrote:

Make sure you web.config looks something like this:

<?xml version="1.0" encoding="utf-8"
?><configuration><system.web><compilation debug="true" /><customErrors
mode="Off" /></system.web></configuration>
mode="Off" should only be used for debugging purposes. Change it back to


"On" after you finish so that everyone doesnt see your code during an
exception and stack trace.
yeah all looks corect, i even replaced with youts

take a look http://www.necrius.net/WebApplication1/WebForm1.aspx


Nov 16 '05 #4
Some webhosting provider will provide you a "control panel" to configure
these.

In case you dont have such a facility, the best bet you could do is to
configure the web.config at the root of the site .

Just copy the web.config to root and try....

HTH

Raj
"n3crius" <n3*****@blueyonder.co.uk> wrote in message
news:mz*****************@news-binary.blueyonder.co.uk...
How can I alter the IIS? This is a web host I'm using, I can't fiddle
with their IIS! ;)
CK
R Rajesh wrote:
Hi

I think the error could be that you have not configured an IIS application at the
WebApplication1 folder.

Currently it is now taking the root application. Unless you configure an application in IIS for the folder WebApplication1, your web.config (which is under the WebApplication1 folder) will not take effect.

let me know if this helps..

-Raj

"n3crius" <n3*****@blueyonder.co.uk> wrote in message
news:Q1*****************@news-binary.blueyonder.co.uk...
Rasika wrote:
Make sure you web.config looks something like this:

<?xml version="1.0" encoding="utf-8"


?><configuration><system.web><compilation debug="true" /><customErrors
mode="Off" /></system.web></configuration>
mode="Off" should only be used for debugging purposes. Change it back
to
"On" after you finish so that everyone doesnt see your code during an
exception and stack trace.
yeah all looks corect, i even replaced with youts

take a look http://www.necrius.net/WebApplication1/WebForm1.aspx


Nov 16 '05 #5
hey thanks mate,

i put the config in a number of palces, and now it works! but...

after fixing a few things inthe config, i get this :

Server Error in '/' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required
to service this request. Please review the following specific parse
error details and modify your source file appropriately.

Parser Error Message: Could not load type 'WebApplication2.WebForm1'.

Source Error:
Line 1: <%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication2.WebForm1" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 3:
Source File:
D:\Webspace\necrius.net\wwwroot\WebApplication2\We bForm1.aspx Line: 1
CKR Rajesh wrote:
Some webhosting provider will provide you a "control panel" to configure
these.

In case you dont have such a facility, the best bet you could do is to
configure the web.config at the root of the site .

Just copy the web.config to root and try....

HTH

Raj
"n3crius" <n3*****@blueyonder.co.uk> wrote in message
news:mz*****************@news-binary.blueyonder.co.uk...
How can I alter the IIS? This is a web host I'm using, I can't fiddle
with their IIS! ;)
CK
R Rajesh wrote:

Hi

I think the error could be that you have not configured an IIS
application
at the
WebApplication1 folder.

Currently it is now taking the root application. Unless you configure
an
application in IIS for the folder WebApplication1, your web.config
(which is
under the WebApplication1 folder) will not take effect.

let me know if this helps..

-Raj

"n3crius" <n3*****@blueyonder.co.uk> wrote in message
news:Q1*****************@news-binary.blueyonder.co.uk...
Rasika wrote:

>Make sure you web.config looks something like this:
>
><?xml version="1.0" encoding="utf-8"

?><configuration><system.web><compilation debug="true" /><customErrors
mode="Off" /></system.web></configuration>

>mode="Off" should only be used for debugging purposes. Change it back
to
"On" after you finish so that everyone doesnt see your code during an
exception and stack trace.
yeah all looks corect, i even replaced with youts

take a look http://www.necrius.net/WebApplication1/WebForm1.aspx


Nov 16 '05 #6

May be you should by pass the WebApplication1 folder all together..

just copy access the site as,

http://www.necrius.net/webform1.aspx

In case this is not feasible, you can copy just the bin folder to the root.
(i am not sure if this will fix it)

HTH

Raj


"n3crius" <n3*****@blueyonder.co.uk> wrote in message
news:fl*****************@news-binary.blueyonder.co.uk...
hey thanks mate,

i put the config in a number of palces, and now it works! but...

after fixing a few things inthe config, i get this :

Server Error in '/' Application.
-------------------------------------------------------------------------- ------
Parser Error
Description: An error occurred during the parsing of a resource required
to service this request. Please review the following specific parse
error details and modify your source file appropriately.

Parser Error Message: Could not load type 'WebApplication2.WebForm1'.

Source Error:
Line 1: <%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication2.WebForm1" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 3:
Source File:
D:\Webspace\necrius.net\wwwroot\WebApplication2\We bForm1.aspx Line: 1
CKR Rajesh wrote:
Some webhosting provider will provide you a "control panel" to configure
these.

In case you dont have such a facility, the best bet you could do is to
configure the web.config at the root of the site .

Just copy the web.config to root and try....

HTH

Raj
"n3crius" <n3*****@blueyonder.co.uk> wrote in message
news:mz*****************@news-binary.blueyonder.co.uk...
How can I alter the IIS? This is a web host I'm using, I can't fiddle
with their IIS! ;)
CK
R Rajesh wrote:
Hi

I think the error could be that you have not configured an IIS


application
at the
WebApplication1 folder.

Currently it is now taking the root application. Unless you configure


an
application in IIS for the folder WebApplication1, your web.config


(which is
under the WebApplication1 folder) will not take effect.

let me know if this helps..

-Raj

"n3crius" <n3*****@blueyonder.co.uk> wrote in message
news:Q1*****************@news-binary.blueyonder.co.uk...
>Rasika wrote:
>
>
>
>>Make sure you web.config looks something like this:
>>
>><?xml version="1.0" encoding="utf-8"

?><configuration><system.web><compilation debug="true" /><customErrors
mode="Off" /></system.web></configuration>

>>mode="Off" should only be used for debugging purposes. Change it back


to
"On" after you finish so that everyone doesnt see your code during an
exception and stack trace.
>yeah all looks corect, i even replaced with youts
>
>take a look http://www.necrius.net/WebApplication1/WebForm1.aspx


Nov 16 '05 #7

You lack the knowledge to develop in ASP.NET.

Sami
www.capehill.net

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #8
thanks for your dambass response, i'm a .net developer for a large
company in the uk, and i do my job very well. just because i've not
done this through a different host before doesn't mean i 'lack the
knowledge to develop in asp.net', nazi boy!

Sami Vaaraniemi wrote:
You lack the knowledge to develop in ASP.NET.

Sami
www.capehill.net

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #9

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

Similar topics

1
by: Chris | last post by:
I have seen the posts on various places on the internet about .NET framework mismatch issues and I don't think that is my problem. ; ) When I execute the following C++.NET code: String...
10
by: Ron Weldy | last post by:
I am working on a website that someone else has set up. They have a web.config file with a customerrors element that points the error handling to a special aspx page. <customErrors...
1
by: Robert | last post by:
I have a server where the main web application (root) is now migrated to 2.0. It's web.config has a line where it adds the system.data.oracleclient in the configuration and assembiles section. ...
2
by: kramer.newsreader | last post by:
I am develoing a C# web application on a remote server. I have publish access to this server, but not permission to change configuration setting. When I try to load my page, I get the following...
2
by: Ian | last post by:
Hi, I am trying to use machine.config to store database settings for a connection wrapper class I am using as part of the data layer of an n-tier system. Have added the following section to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.