473,406 Members | 2,847 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,406 software developers and data experts.

Aspx is reading bad web.config

Hello!

On my server I have Sharepoint portal server as default web site
I create there a web application folder with form.aspx file.
When I'm trying to run aspx, i get an error.
Page is trying to read config from x:\inetpub\wwwroot\web.config.
Correct path is x:\inetpub\wwwroot\test\web.config.

How to force on application (or IIS or whatever) to use correct config?
Nov 22 '06 #1
2 1535
the web.config file needs to be in the root of the web app. remove the
web.config under the inetpub\wwwroot. Why is that there anyway? I have
sharepoint portal on my box and the web.config is under the sharepoint
wwwroot\sharepoint folder
and that is also my default web site on my web server.

"marek zegarek" wrote:
Hello!

On my server I have Sharepoint portal server as default web site
I create there a web application folder with form.aspx file.
When I'm trying to run aspx, i get an error.
Page is trying to read config from x:\inetpub\wwwroot\web.config.
Correct path is x:\inetpub\wwwroot\test\web.config.

How to force on application (or IIS or whatever) to use correct config?
Nov 22 '06 #2
web.config is in root directory of web application.I cannot remove second
(from inetpub/wwwroot), because it is Sharepoint config. File is there,
because probably you install Sharepoint not on default web site
(wwwroot\sharepoint).

Anyone have any idea?
Użytkownik "igotyourdotnet" <ig************@nospam.nospamnapisał w
wiadomo¶ci news:81**********************************@microsof t.com...
the web.config file needs to be in the root of the web app. remove the
web.config under the inetpub\wwwroot. Why is that there anyway? I have
sharepoint portal on my box and the web.config is under the sharepoint
wwwroot\sharepoint folder
and that is also my default web site on my web server.

"marek zegarek" wrote:
>Hello!

On my server I have Sharepoint portal server as default web site
I create there a web application folder with form.aspx file.
When I'm trying to run aspx, i get an error.
Page is trying to read config from x:\inetpub\wwwroot\web.config.
Correct path is x:\inetpub\wwwroot\test\web.config.

How to force on application (or IIS or whatever) to use correct config?

Nov 23 '06 #3

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

Similar topics

3
by: spacekid | last post by:
Hi there I am exposing a c# assembly as a COM component (regasm /codebase) and calling it from classic asp. When I try to call the ConfigurationSettings.AppSettings function in the c# assembly,...
7
by: Wardeaux | last post by:
Hey all, I'm hitting a wall... We have many daily reports generated on another server, need to present list of available files and allow user to download desired files from aspx page... any...
5
by: Terry | last post by:
I am developing a asp.net web based service application for our product I am trying to trigger a reboot of the server based on a user request I believe I have all the appropriate code for...
1
by: Sam | last post by:
I have successfully created authentication via web.config however I discovered some security issues as follows: 1. ASPX Security I have web application via asp.net and it is consist of following...
3
by: Christopher Baldwin | last post by:
Hello, Using ASP.NET v2.0.40607.42, I'm attempting to create a new file extension that should be handled exactly like "aspx" pages. For example, I just want to rename an aspx page from...
1
by: Jaime Stuardo | last post by:
Hi all... I have Windows XP with IIS 5.1 I created a Web project under the root web site using Visual Studio 2005 (and ASP.NET 2.0). This is The final URL of the site:...
2
by: Randall Parker | last post by:
I managed to create and compile a simple aspx source file from VS 2003. When I try to access it thru the Cassini web server from my web browser on the same machine I get this below. Anyone know...
3
by: André | last post by:
Hi, I put that question already, but it's still not very clear to me, so ... Assume following option in web.config= debug="false" but in one aspx page (test.aspx) <%@ debug="true" ..%>
3
by: Jack | last post by:
Hi there, In a submit button event, I need to open a (server-side) file relative to the folder containing the ".aspx" file. What's the correct way to locate the ".aspx" folder itself inside my...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.