Server Error in ‘/’ Application
————————————————————
Configuration Error
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.
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.
Source Error:
| 1 | |
| 2 | Line 50: ASP.NET to identify an incoming user. |
| 3 | Line 51: --> |
| 4 | Line 52: <authentication mode="Windows" /> |
| 5 | Line 53: <!-- |
| 6 | Line 54: The <customErrors> section enables configuration |
Source File: c:\inetpub\wwwroot\website1\web.config Line: 52
Source File: c:\inetpub\wwwroot\somewhere\web.config Line: 51
Cause
This error is generated because the default set of configuration values in web.config require IIS to treat the web site as an application but this has not been configured.
Solution:
1.Control Panel > Administrative Tools >IIS
2. Open webiste properties (Default Web Site>Your Website >Right click > Properties)
3. If the "application name" (under "Application Settings" on the "Directory" tab) is greyed out then click '[Create]' and then '[OK]'.
Posted: October 28th, 2009
Categories:
Asp.net
Tags:
Comments:
No Comments.
Error: Path for project must have only one segment
Even Though google shows 995,000 pages containg the text “Path for project must have only one segment” – None of them really explains what this error mean – Except if you look at the source code of WorkspaceRoot class, particularly ‘getProject’ method:
This problem usually occurs when you try to access a project name/path,etc, when it is not avialable or you might have forget to instantiate the IProject object or try to instantiate the IProject with different name.
Solution: Have a look at your code where you are calling
getProject.
Check names, paths are called correctly.
| 01 | public IProject getProject(bold;">STRING JavaDoc NAME) { |
| 02 | //bold;">FIRST check our project CACHE |
| 03 | Project result = (Project) projectTable.get(NAME); |
| 04 | bold;">IF (result == null) { |
| 05 | IPath projectPath = NEW Path(null, NAME).makeAbsolute(); |
| 06 | bold;">STRING JavaDoc bold;">MESSAGE = "Path for project must have only one segment."; //$NON-NLS-1$ |
| 07 | Assert.isLegal(projectPath.segmentCount() == ICoreConstants.PROJECT_SEGMENT_LENGTH, bold;">MESSAGE); |
| 08 | //try bold;">TO bold;">GET the project bold;">USING a canonical NAME |
| 09 | bold;">STRING JavaDoc canonicalName = projectPath.lastSegment(); |
| 10 | result = (Project) projectTable.get(canonicalName); |
| 11 | bold;">IF (result != null) |
| 12 | RETURN result; |
| 13 | result = NEW Project(projectPath, workspace); |
| 14 | projectTable.put(canonicalName, result); |
| 15 | } |
| 16 | RETURN result; |
| 17 | } |
| 18 | |
| 19 | |
| 20 | |
Posted: July 9th, 2009
Categories:
Java
Tags:
eclipse,
Java
Comments:
No Comments.