I have a very simple form that displays a gridview. (members.aspx & members.aspx.vb)
The gridview is linked to a datasource that is an xml file in the app_data directory. It has an associated translation file in the app_data directory. (rowers.xml & rowers.xsl)
Everything works as it should on the local machine.
I then copy members.aspx and members.aspx.vb to a remote site in directory: (Front Page Server .net 2 enabled)
http://ddd.ddd.ddd.ddd/frontpagesubweb and
rowers.xml and rowers.xsl to:
http://ddd.ddd.ddd.ddd/frontpagesubweb/app_data
when I run the link:
http://ddd.ddd.ddd.ddd/frontpagesubweb/members.aspx
I get the following message:
Could not find file 'D:\inetpub\domainname\App_Data\rowers.xsl'.
The file of course is at:
D:\inetpub\domainname\frontpagesubweb\App_Data
How do I get everything set up to point to the proper directories when I copy the files?
TIA,
Jim
Ok, I did the obvious and ftp'ed the data files to an app_data directory off of the root, but does that mean all subwebs will use the same app_data directory??
Thanx again,
Jim
All "applications" setup in IIS have their own root folder. You can then have "virtual applications" setup in IIS that reside under an "application", but they still have their own working directory.
Although it's your choice to share one app_data folder with an application and virtual applications under it, by default, that would be a nested application and have it's own root, which would also give it it's own app_code directory.
0 comments:
Post a Comment