HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
MSBuild cannot map path to server side include
Post new topic   Reply to topic    HTML Help Forum Index -> SSI
View previous topic :: View next topic  
Author Message
murphys811



Joined: 25 Jan 2008
Posts: 4

PostPosted: Fri Jan 25, 2008 10:28 am     MSBuild cannot map path to server side include Reply with quote

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: 8154
Location: Castle Rock CO USA

PostPosted: Fri Jan 25, 2008 1:30 pm     Reply with quote

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

PostPosted: Tue Jan 29, 2008 5:30 am     Reply with quote

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

PostPosted: Tue Jan 29, 2008 5:35 am     Reply with quote

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: 8154
Location: Castle Rock CO USA

PostPosted: Tue Feb 05, 2008 2:48 pm     Reply with quote

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

PostPosted: Sat Feb 09, 2008 4:15 am     Reply with quote

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



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Sat Feb 09, 2008 8:58 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> SSI All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial