Hi KlytusLord,
Thanks for posting your question.
This is an issue that pops up every so often for us and we really do not know exactly why/how the Virtural Root does not work on some server setups. We have tried several times to recreate this type of environment, but with no luck.
We would love to hear from anyone else out there if they have any suggestions.
BDPLite is used within 1000's of shared hosting evironments and you do not require directory access outside the Application Root.
The problem happens because the Virtual Root has not been setup properly or there is some setting within IIS that we are not aware of. It's probably related to the Virtual Directory either not being created properly or who knows what.
The issue is NOT related to BDP Lite.
The unfortunate part is that in BDP v1.1, the path to the resource files (.js, .css, images) is hard coded to point to the /aspnet_client/ directory which must be placed in the Virtual Root. The trick is the Virtual Root changes depending on whether you are browsing localhost or remote.
When deveoping locally, this is typically C:\Inetpub\wwwroot\aspnet_client\ or http://localhost/aspnet_client/.
When your application is moved to a remote server the aspnet_client directory must be uploaded to the Application Root of your project. On a remote web server the Virtual Root and Application Root should be the same. As you noted above, this is typically the same location as the default Web.config and Global.asax files. But sometimes there is a problem.
If BDPLite is not working, than the standard Microsoft Validator controls will not be working either.
Now, all that said, with the next release (v1.2) we are excited to include the new .ResourcePath property. With the ResourcePath Property the developer can specify the Directory path to the .css and image files.
The default value will continue to point to the /aspnet_client/ directory in the Virtual Root, but can be changed to point to any other location, including the Application Root, by adding a Tilde (~) or a custom location within your directory structure.
More information regarding the new ResourcePath property is available at http://forums.basicdatepicker.com/forums/284/ShowPost.aspx
With v1.2, the required JavaScript will be output inline and not linked externally.
The Beta release of v1.2 is available now. The final release should be available shortly.
Download Beta at http://forums.basicdatepicker.com/forums/505/ShowPost.aspx
So our best suggestion to fix this Virtural Path problem is to upgrade to v1.2 and set the .ResourcePath property. Adding a Tilde (~) to the start of the default string should solve the issue.
Hope this helps.
Thanks,
Geoffrey McGill
----------------------------------------
Coolite Inc.
Email: support [at] coolite [dot] com
Phone: +1(888)775-5888