473,769 Members | 5,871 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\wwwr oot\web.config.
Correct path is x:\inetpub\wwwr oot\test\web.co nfig.

How to force on application (or IIS or whatever) to use correct config?
Nov 22 '06 #1
2 1555
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\sharepo int 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\wwwr oot\web.config.
Correct path is x:\inetpub\wwwr oot\test\web.co nfig.

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\sharep oint).

Anyone have any idea?
U¿ytkownik "igotyourdotnet " <ig************ @nospam.nospamn apisa³ w
wiadomo¶ci news:81******** *************** ***********@mic rosoft.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\sharepo int 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\wwwr oot\web.config.
Correct path is x:\inetpub\wwwr oot\test\web.co nfig.

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
2429
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, it does not return the values from my web.config. The web.config is located in the root of the web application. The classic asp page that calls the COM exposed c# assembly is located in a subfolder called message. Can anyone help me out here?
7
1346
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 suggestions on how to do this? The other server is running Win2K3 with SQL but no IIS... tried mapping drives and setting up shortcuts, nothing allows permissions from IIS_Guest account... even a "Can't Get there from here..." would be appreciated at...
5
315
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 AdjustingTokens etc an all those calls seem to succeed, however, the final call to ExitWindowsE is failing with 'Access Denied' In my machine.config, I have already set the userName to 'System' as seem to require this for some other functionality I...
1
1826
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 sections: i. Administration ii. Attendance iii. Reporting Each section has it own authorise user and it should not cross over.
3
2908
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 "test.aspx" to "test.extx", where .extx extensions are handled in exactly the same way as aspx pages. In pre-2.0 versions of ASP.NET, simply adding a HttpHandler element (below) to web.config, and adding a IIS mapping of "extx" to
1
1999
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: http://localhost/GestionInterna/Default.aspx After trying to view the page, I got the error:
2
1607
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 why? Originally web.config was <authentication mode="Windows" /> and had the same error. But I tried editing the web.config file line 46 to "None" and that didn't help. They mention IIS in the error message. But I'm not using IIS. ...
3
3109
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
1379
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 handler? Thanks in advance.
0
10045
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...
1
9994
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
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
8872
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7409
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5299
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
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3959
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
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.