HTML Help Forum HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

MSBuild cannot map path to server side include
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum -> SSI
View previous topic :: View next topic  
Author Message
murphys811



Joined: 25 Jan 2008
Posts: 4

Posted: Fri Jan 25, 2008 10:28 am     MSBuild cannot map path to server side include  

I am trying to use automated builds for my website. This uses MSBuild to compile everything and then it ships it out.

I just recently added a server side include to my main page. When I just save the file and throw it on the server, the server side include works. However, when I try to build the project in Visual Studio 2005 I get a "Failed to map the path '/X/Y/Z.html'" and the automated build fails each time because MSBuild fails.

Any suggestions?


Code: <!-- #include virtual="/X/Y/Z.html" -->


Corey Bryant



Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

Posted: Fri Jan 25, 2008 1:30 pm      

Is it .NET? If so, you might consider using the ~ in the path instead. I can't remember right now but I think it is Code: <!-- #include file="~/X/Y/Z.html" --> or Code: <!-- #include virtual="~/X/Y/Z.html" -->
_________________
Corey
Residential Office Solutions | Mile High Merchant Accounts | Expression Web Blog
murphys811



Joined: 25 Jan 2008
Posts: 4

Posted: Tue Jan 29, 2008 5:30 am      

It is .NET 2.0 and the tilda did not help. I am starting to look if there are MSBuild options to ignore server side include errors. So far, nothing.
murphys811



Joined: 25 Jan 2008
Posts: 4

Posted: Tue Jan 29, 2008 5:35 am      

Here is another bit of information that might change the situation:

The include file is not within the website's virtual folder, only the server's.


\\SERVER\BASE_FOLDER\INCLUDE_FOLDER\INCLUDE_FILE.html
\\SERVER\BASE_FOLDER\WEBSITE_FOLDER\...
Corey Bryant



Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

Posted: Tue Feb 05, 2008 2:48 pm      

You might try giving the proper Internet permissions to the folder.

_________________
Corey
Residential Office Solutions | Mile High Merchant Accounts | Expression Web Blog
murphys811



Joined: 25 Jan 2008
Posts: 4

Posted: Sat Feb 09, 2008 4:15 am      

What kind of internet permissions are you talking about. This doesn't even build locally.
Corey Bryant



Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

Posted: Sat Feb 09, 2008 8:58 am      

I have not messed with MS Publisher ever to do a website. Have you checked out the Microsoft Discussion Groups? There you will find some people who are experienced in MS Publisher and might understand it more.

_________________
Corey
Toll Free Fax Solutions | Mile High Merchant Accounts | Expression Web Blog
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum -> SSI
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group