Last post Jul 09, 2009 10:30 AM by KurtPW
Jul 08, 2009 12:25 PM|KurtPW|LINK
Hi again. ASP.Net 2.0 C# website. I created the site in VS2005 and am not using IIS to run/debug the local site. I am using the ASP.Net dev server built into VS2005.
I seem to be having issues with the virtual directory on the server: wwwRoot. When I create an Access DataSource and steer it to the database it uses path notation like so in the aspx page: DataFile="~/DB/Events.mdb". The tilde, I assume, points to the virtual
directory. Since I have no virtual directory set up locally the path to the database it resolves like so on the server: 'C:\Websites\myWebsite\wwwRoot\DB\Events.mdb'
How can I set the local folder wwwRoot as a virtual directory from inside VS2005? I know I can do it via IIS but really, seriously want to avoid that route as I need to give hair and blood samples, and pledge my first-born, to our security folks before I
can run IIS.
Jul 08, 2009 08:08 PM|visliCom|LINK
check this out connection part http://mytechnicalcorner.blogspot.com/2009/06/newsletter-sample-template-using-access.html
This may help.
Jul 09, 2009 10:30 AM|KurtPW|LINK
Thanks man. I think you were on the right track. This site is an old classic ASP site with the DB above the root for security and I just needed to do a fully qualified path - just like you did in your example!