473,396 Members | 1,853 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,396 software developers and data experts.

configuration error in web.config file

271 100+
hi,
i have developed a web page in one machine and copied the complete project to the other machine. i get the following error,
Expand|Select|Wrap|Line Numbers
  1. Configuration Error 
  2.  
  3. [font=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 
  4.  
  5. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
  6.  
  7. Source Error: 
  8.  
  9. Line 44:            by Microsoft that offers a single logon and core profile services for member sites.Line 45:     -->[color=red]Line 46:     <authentication mode="Windows" /> [/color]Line 47: Line 48:     <!--  AUTHORIZATION 
  10. [font=Verdana]Source File: [/font]F:\sk\AjaxGrid_src\AjaxGrid_src\AjaxGrid_demo\web.config[font=Verdana]    Line: [/font]46 
  11. [/font]
  12.  
but it works fine in the old machine.

after a long search i found that it is due to the miss match of machine.config file. can any one tell me where this file is present and how to correct this problem
Feb 6 '07 #1
8 6074
kenobewan
4,871 Expert 4TB
Not sure that I agree with your diagnosis, I believe its a problem in IIS with your application. Here is one possible solution:
IIS Insider
Feb 6 '07 #2
nmsreddi
366 256MB
Hello karthik

In which version of .net you hav done it.If its in .net1.1 you cannot directly copy the project unless you create a solution icon in your virtual directly. if it is in .net2.0,problem may be different
Feb 7 '07 #3
karthi84
271 100+
Hello karthik

In which version of .net you hav done it.If its in .net1.1 you cannot directly copy the project unless you create a solution icon in your virtual directly. if it is in .net2.0,problem may be different
hi nmsreddi,
sorry i forgot to mention that. i am using .net 1.1, can u tell me the complete procedure on how to solve this problem. the projects i have created on that machine is working fine but the projects which i have copied from other machines shows this error. help me in this with complete procedures.

thanks,
Feb 7 '07 #4
karthi84
271 100+
Not sure that I agree with your diagnosis, I believe its a problem in IIS with your application. Here is one possible solution:
IIS Insider

hi kenobewan,
i think the problem is not with the iis as when i do a project in that machine it works fine. only the copied projects gets me that error. please help me with this.
Feb 7 '07 #5
kenobewan
4,871 Expert 4TB
Not sure why you are assuming the projects will work fine when copied, that they are not working is evidence to the contrary. We need to find out why :).

If you have clicked the configuration button and checked IIS settings, then we can move on to other options.

Try commenting out the authentication section in your web.config and see if this enables you to copy the project...
Feb 7 '07 #6
karthi84
271 100+
Not sure why you are assuming the projects will work fine when copied, that they are not working is evidence to the contrary. We need to find out why :).

If you have clicked the configuration button and checked IIS settings, then we can move on to other options.

Try commenting out the authentication section in your web.config and see if this enables you to copy the project...
i tried that also. but i shows the same error on the next part which ever comes, either authorisation or what ever comes next to it. what to do
Feb 7 '07 #7
kenobewan
4,871 Expert 4TB
Did you comment out authentication in this file F:\sk\AjaxGrid_src\AjaxGrid_src\AjaxGrid_demo\web. config or the project web.config?
Feb 7 '07 #8
karthi84
271 100+
Did you comment out authentication in this file F:\sk\AjaxGrid_src\AjaxGrid_src\AjaxGrid_demo\web. config or the project web.config?

i have commented it, see below for what i have done
this is the line which i have commented in the web.config file,
Expand|Select|Wrap|Line Numbers
  1. [size=2][/size][size=2][color=#0000ff]<![/color][/size][size=2][color=#008000]-- AUTHENTICATION 
  2.  
  3. This section sets the authentication policies of the application. Possible modes are "Windows", 
  4.  
  5. "Forms", "Passport" and "None"
  6.  
  7. "None" No authentication is performed. 
  8.  
  9. "Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to 
  10.  
  11. its settings for the application. Anonymous access must be disabled in IIS. 
  12.  
  13. "Forms" You provide a custom form (Web page) for users to enter their credentials, and then 
  14.  
  15. you authenticate them in your application. A user credential token is stored in a cookie.
  16.  
  17. "Passport" Authentication is performed via a centralized authentication service provided
  18.  
  19. by Microsoft that offers a single logon and core profile services for member sites.
  20.  
  21.  
  22.  
  23. <authentication mode="Windows" /> 
  24.  
  25. AUTHORIZATION 
  26.  
  27. This section sets the authorization policies of the application. You can allow or deny access
  28.  
  29. to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous 
  30.  
  31. (unauthenticated) users.
  32.  
  33. --[/color][/size][size=2][color=#0000ff]>[/color][/size]
  34. [size=2][color=#0000ff]
[/color][/size]
[size=2][color=#0000ff][/color][/size]
[size=2][color=#0000ff]the error which i get now is[/color][/size]
[size=2][color=#0000ff][/color][/size]
[size=2][color=#0000ff]
Expand|Select|Wrap|Line Numbers
  1. [/color][/size]
  2.  
  3. Server Error in '/sk' Application. 
  4.  
  5. Configuration Error 
  6.  
  7. [font=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 
  8.  
  9. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
  10.  
  11. Source Error: 
  12.  
  13. Line 81:           To disable cookies, set sessionState cookieless="true".Line 82:     -->[color=red]Line 83:     <sessionState [/color]Line 84:             mode="InProc"Line 85:             stateConnectionString="tcpip=127.0.0.1:42424"
  14. [font=Verdana]Source File: [/font]F:\sk\AjaxGrid_src\AjaxGrid_src\AjaxGrid_demo\web.config[font=Verdana]    Line: [/font]83 
  15.  
  16.  
  17. [font=Verdana]Version Information:[/font] Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 [/font]
  18. [size=2][color=#0000ff]
[/color][/size]
Feb 7 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Dean | last post by:
This is a problem in ASP.NET, when I run an application from Visual Studio (2003) when I do a "start without debugging". The asp page uses objects that I have built in 3 other projects,...
3
by: fred bliss | last post by:
Hi All We have a new server running the latest framework, windows server 2003 & IIS 6.0, and we're getting the following error when we try to load the app in IE. Server Error in...
0
by: VB Programmer | last post by:
I added a rich text editor to my webpage. When I run the form I get this error. Any ideas? Server Error in '/HtmlTest' Application....
1
by: Ivan | last post by:
Hi, I have moved an entire solution from .netframework 1.0 to 1.1; also I have migrated the solution to VS2003. After this I have added a new project (Web) to previous solution; I'm referencing...
0
by: VB Programmer | last post by:
I've been using a Rich Textbox control on my webform. It works great. Doing work on another page then all of a sudden when I run the web app I get this error. Any ideas? Server Error in...
6
by: chokk | last post by:
All, I am getting the following error when I try to run a form page. Can someone tell me what this is about and show me how to fix it. Thnaks. Server Error in '/' Application...
2
by: Chris_24 | last post by:
To all, I am experiencing difficulties with an asp.net web application and its web.config file. No matter what I try I keep getting the following error: Server Error in '/action' Application....
10
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server...
6
by: Jeff Hegedus | last post by:
I have a dll that requires some configuration data. I put the configuration data in a custom configuration section in a config file that is loaded in the installation folder of the dll. If I...
4
by: aSoundMind | last post by:
Hi there, I recieve this error Server Error in '/integrate' Application. -------------------------------------------------------------------------------- Configuration Error Description: An...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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
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...

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.