Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 14th, 2008, 01:52 PM
Registered User
 
Join Date: Nov 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page 239 Virtual Path Property

When I change the root of the web project in the Solution Explorer
from /Website1 to /, I get the following build error:
Warning 1 C:\BegASPNET\WebSite1\Default.aspx: ASP.NET runtime error: Failed to map the path '/ /App_GlobalResources/'. C:\BegASPNET\WebSite1\Default.aspx 1 1 C:\BegASPNET\WebSite1I have no idea why it is trying to reference App_GlobalResources.
I think I have followed the Try It Out instructions exactly.
Thanks.

 
Old November 14th, 2008, 04:21 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Is there a folder called App_GlobalResources? If so, it's not used in Planet Wrox so you can safely delete it. ALso, did you restart VWD and the built-in web server (in the Windows tray) and see if that helps?

Otherwise, can you explain a bit more about your set up (folder structure, pages and so on).

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old November 15th, 2008, 06:28 PM
Registered User
 
Join Date: Nov 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Do not have a App_GlobalResources folder.
Start/stop of VWD and built in server didn't make any difference
Solution explorer shows:
C:\BegASPNET\Website1
app_data
default.aspx
  default.aspx.cs
header.jpg
web.config

Properties shows: virtual path /
works okay when virtual path /website1

output window shows:
Warning 1 C:\BegASPNET\WebSite1\Default.aspx: ASP.NET runtime error: Failed to map the path '/ /App_GlobalResources/'. C:\BegASPNET\WebSite1\Default.aspx 1 1 C:\BegASPNET\WebSite1Error 2 Failed to map the path '/ /App_GlobalResources/'.

Source shows:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

Note: The page line above has a wavy blue line all the way across.

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Image ID="Image1" runat="server" ImageUrl="Header.jpg"/><br />
        <asp:Image ID="Image2" runat="server" ImageUrl="/Header.jpg"/><br />
        <asp:Image ID="Image3" runat="server" ImageUrl="~/Header.jpg"/><br />
    </div>
    </form>
</body>
</html>

P.S. I get this same problem when I run it on my trial
copy of Visual Studio on my other computer.
I was going to attach a screen snapshot but didn't know
how to attach it.
Thanks,
Norm


 
Old November 15th, 2008, 07:16 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Did you Google for:

Failed to map the path '/ /App_GlobalResources/'.

I just did, and I get a number of similar problems and possible solutions. Since many of them are unrelated to each other, you'll need to see what works for you.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Path property ksmanand ASP.NET 3.5 Basics 2 October 5th, 2008 10:49 AM
The virtual path maps to another application deeptisingh20 ASP.NET 1.0 and 1.1 Basics 2 August 8th, 2006 07:05 AM
windows server VIRTUAL - Disallowed Parent Path crmpicco Classic ASP Professional 2 June 29th, 2006 10:54 AM
coding for how to know the virtual path of drive satya_tripathy C# 0 November 15th, 2005 01:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.