Server.MapPath() error 'ASP 0175 : 80004005' The '..' characters are not allowed in the Path parameter for the MapPath m
2009-07-03 23:02
711 查看
The '..' Characters Are Not Allowed In The Path Parameter For The MapPath Method
Posted July 20, 2006 at 3:49 PMTags: XStandard WYSIWYG
I am covering for someone on vacation was given the task of configuring XStandard on a client site. The web services were not working and when accessed directly, the error they throw is:
The '..' characters are not allowed in the Path parameter for the MapPath method
The client is running off of the ASP version of the web services, not my ColdFusion implementation (again, not my client). This doesn't apply to my ColdFusion version, but, since I do so much Xstandard work, I figure I would post up the reason this happens. It's all about security. If you can put ".." in your MapPath() method, then you can go outside of your web root and I guess that freaks some people out. XStandard PRO needs this though because it uploads files to dynamic paths. So, we must allow ".." characters otherwise, we would never know to where we were uploading.
To remedy this (as taken off of the Fog Creek Software site):
Open IIS Manager, right click and choose properties on your [SITE_NAME] virtual directory (or the website root if [SITE_NAME] is installed at the root.
Click the Home Directory or Virtual Directory tab and choose the 'Configuration' button on that tab.
Click the Options tab and make sure the "Enable parent paths" setting is enabled.
Now, when accessed directly, the web services say: "Status: Ready".
相关文章推荐
- PRB: "Requested Registry Access Is Not Allowed" Error Message When ASP.NET Application Tries to Write New EventSource in the Eve
- Could not store transport type data for Receive Location 'Recv.Loc' to config store. Primary SSO Server 'Sql-server' failed. The external credentials in the SSO database are more recent.
- error: ‘for’ loop initial declarations are only allowed in C99 mode
- How to fix the issue that GEM_HOME and/or GEM_PATH not set issue for rvm in mac version 10.12
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- Server.MapPath() 错误 'ASP 0175 : 80004005'
- Code::Blocks 关于error: 'for' loop initial declarations are only allowed in C99 mode
- Server Error in '/' Application. Access to the Path Is Denied" error message appears
- ERROR: The version of SQL Server in use does not support datatype 'datetime2'.
- MySql 执行语句错误 Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- Dev-c++ [Error] 'for' loop initial declarations are only allowed in C99 or C11 mode
- error: 'for' loop initial declarations are only allowed in C99 mode
- error: 'for' loop initial declarations are only allowed in C99 mode
- 转:Code-blocks are not allowed in this file: Using Server-Side Code with SharePoint
- SQL Server error "Xml data type is not supported in distributed queries" and workaround for it
- The server encountered an internal error (No action instance for path /user could be created) th...
- Error: The version of SQL Server in use does not support datatype 'datetime2
- This article provides a fix for the error: Login failed for user “. The user is not associated with a trusted SQL Server
- There is an internal error in the React performance measurement code.Did not expect componentDidMount timer to start while render timer is still in progress for another instance
- Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.