473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Need Help ASAP!!

Hi,

I have an xslt file located in the root directory. It is used by an aspx pages in both the root
directory and a subdirectory. But for some strange reason, the aspx page in the subdirectory can
neither locate the xslt file or the css file needed to get the desired results.

What's the problem? Can anyone help me?

Thanks,
Roshawn
Nov 19 '05 #1
7 1227
Is the browser having trouble getting it, or some of your server code? How
are you trying to interact with it? Are you using relative or absolute
URLs? Is you are trying to do this on the server, are you accessing the
correct physical folder?

"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:uO**************@TK2MSFTNGP10.phx.gbl...
Hi,

I have an xslt file located in the root directory. It is used by an aspx
pages in both the root directory and a subdirectory. But for some strange
reason, the aspx page in the subdirectory can neither locate the xslt file
or the css file needed to get the desired results.

What's the problem? Can anyone help me?

Thanks,
Roshawn

Nov 19 '05 #2
Hi Peter and thanks for responding.

I'm using relative urls. The browser doesn't have any trouble getting it. To give you a better
picture of what I'm dealing with, here's what I have:

1.) the root directory contains a default.aspx page, css file, and an xslt file that thats used by
the default.aspx page and a page in the subdirectory

2.) a subdirectory named "Foo" that contains a default.aspx page.

The xslt file creates the html output I want. Inside the xslt file I make use of the css file.

When it comes to the xslt file, ASP.NET gives me a System.IO.FileNotFoundException. It states that
it cannont find the xslt file in the subdirectory. I took that to mean that the xslt file must also
exist in the subdirectory.

I've checked to make sure that I'm doing everything as I should but nothing seems to work.

Thanks anyway,
Roshawn

Peter Rilling wrote:
Is the browser having trouble getting it, or some of your server code? How
are you trying to interact with it? Are you using relative or absolute
URLs? Is you are trying to do this on the server, are you accessing the
correct physical folder?

"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:uO**************@TK2MSFTNGP10.phx.gbl...
Hi,

I have an xslt file located in the root directory. It is used by an aspx
pages in both the root directory and a subdirectory. But for some strange
reason, the aspx page in the subdirectory can neither locate the xslt file
or the css file needed to get the desired results.

What's the problem? Can anyone help me?

Thanks,
Roshawn


Nov 19 '05 #3
Can you post some small snippet what you are trying to do.
Patrick

"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl...
Hi Peter and thanks for responding.

I'm using relative urls. The browser doesn't have any trouble getting it. To give you a better picture of what I'm dealing with, here's what I have:

1.) the root directory contains a default.aspx page, css file, and an xslt file that thats used by the default.aspx page and a page in the subdirectory

2.) a subdirectory named "Foo" that contains a default.aspx page.

The xslt file creates the html output I want. Inside the xslt file I make use of the css file.
When it comes to the xslt file, ASP.NET gives me a System.IO.FileNotFoundException. It states that it cannont find the xslt file in the subdirectory. I took that to mean that the xslt file must also exist in the subdirectory.

I've checked to make sure that I'm doing everything as I should but nothing seems to work.
Thanks anyway,
Roshawn

Peter Rilling wrote:
Is the browser having trouble getting it, or some of your server code? How are you trying to interact with it? Are you using relative or absolute
URLs? Is you are trying to do this on the server, are you accessing the
correct physical folder?

"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:uO**************@TK2MSFTNGP10.phx.gbl...
Hi,

I have an xslt file located in the root directory. It is used by an aspxpages in both the root directory and a subdirectory. But for some strangereason, the aspx page in the subdirectory can neither locate the xslt fileor the css file needed to get the desired results.

What's the problem? Can anyone help me?

Thanks,
Roshawn


Nov 19 '05 #4
Hi Patrick

This is the snippet from the default.aspx page in the subdirectory:

Private Sub GetDetails(ByVal id As String)
Dim sb as New StringBuilder()
sb.Append(ConfigurationSettings.AppSettings("ItemL ookup") & "&SubscriptionId=" &
ConfigurationSettings.AppSettings("SubID") & "&Version=" &
ConfigurationSettings.AppSettings("Version") & "&Operation=ItemLookup&ItemId=" & id &
"&ResponseGroup=Large")
Dim tr As XmlTextReader = New XmlTextReader(sb.ToString)
Dim xDoc As XPathDocument = New XPathDocument(tr)
Dim htw As HtmlTextWriter = New HtmlTextWriter(Response.Output)
Dim trans as XslTranform = new XslTransform()
trans.Load(Server.MapPath(ConfigurationSettings.Ap pSettings("Myfile"))
trans.Transform(xDoc, Nothing, htw)
End Sub

This procedure is called during the Page_Load event. All I'm doing is attempting to transform the
xml that I receive from a third party (I actually get data so that is not an issue). Remember that
the xslt file is used by the default.aspx page in the root directory and the default.aspx page in
the subdirectory.

HTH,
Roshawn

Patrick.O.Ige wrote:
Can you post some small snippet what you are trying to do.
Patrick

"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl...
Hi Peter and thanks for responding.

I'm using relative urls. The browser doesn't have any trouble getting it.


To give you a better
picture of what I'm dealing with, here's what I have:

1.) the root directory contains a default.aspx page, css file, and an xslt


file that thats used by
the default.aspx page and a page in the subdirectory

2.) a subdirectory named "Foo" that contains a default.aspx page.

The xslt file creates the html output I want. Inside the xslt file I make


use of the css file.
When it comes to the xslt file, ASP.NET gives me a


System.IO.FileNotFoundException. It states that
it cannont find the xslt file in the subdirectory. I took that to mean


that the xslt file must also
exist in the subdirectory.

I've checked to make sure that I'm doing everything as I should but


nothing seems to work.
Thanks anyway,
Roshawn

Peter Rilling wrote:
Is the browser having trouble getting it, or some of your server code?
How
are you trying to interact with it? Are you using relative or absolute
URLs? Is you are trying to do this on the server, are you accessing the
correct physical folder?

"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:uO**************@TK2MSFTNGP10.phx.gbl...
Hi,

I have an xslt file located in the root directory. It is used by an
aspx
pages in both the root directory and a subdirectory. But for some
strange
reason, the aspx page in the subdirectory can neither locate the xslt
file
or the css file needed to get the desired results.

What's the problem? Can anyone help me?

Thanks,
Roshawn


Nov 19 '05 #5
What's the value of ConfigurationSettings.AppSettings("Myfile") ?

Jevon
"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:eF**************@TK2MSFTNGP10.phx.gbl...
Hi Patrick

This is the snippet from the default.aspx page in the subdirectory:

Private Sub GetDetails(ByVal id As String)
Dim sb as New StringBuilder()
sb.Append(ConfigurationSettings.AppSettings("ItemL ookup") &
"&SubscriptionId=" & ConfigurationSettings.AppSettings("SubID") &
"&Version=" & ConfigurationSettings.AppSettings("Version") &
"&Operation=ItemLookup&ItemId=" & id & "&ResponseGroup=Large")
Dim tr As XmlTextReader = New XmlTextReader(sb.ToString)
Dim xDoc As XPathDocument = New XPathDocument(tr)
Dim htw As HtmlTextWriter = New HtmlTextWriter(Response.Output)
Dim trans as XslTranform = new XslTransform()
trans.Load(Server.MapPath(ConfigurationSettings.Ap pSettings("Myfile"))
trans.Transform(xDoc, Nothing, htw)
End Sub

This procedure is called during the Page_Load event. All I'm doing is
attempting to transform the xml that I receive from a third party (I
actually get data so that is not an issue). Remember that the xslt file
is used by the default.aspx page in the root directory and the
default.aspx page in the subdirectory.

HTH,
Roshawn

Patrick.O.Ige wrote:
Can you post some small snippet what you are trying to do.
Patrick

"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl...
Hi Peter and thanks for responding.

I'm using relative urls. The browser doesn't have any trouble getting
it.


To give you a better
picture of what I'm dealing with, here's what I have:

1.) the root directory contains a default.aspx page, css file, and an
xslt


file that thats used by
the default.aspx page and a page in the subdirectory

2.) a subdirectory named "Foo" that contains a default.aspx page.

The xslt file creates the html output I want. Inside the xslt file I
make


use of the css file.
When it comes to the xslt file, ASP.NET gives me a


System.IO.FileNotFoundException. It states that
it cannont find the xslt file in the subdirectory. I took that to mean


that the xslt file must also
exist in the subdirectory.

I've checked to make sure that I'm doing everything as I should but


nothing seems to work.
Thanks anyway,
Roshawn

Peter Rilling wrote:

Is the browser having trouble getting it, or some of your server code?


How
are you trying to interact with it? Are you using relative or absolute
URLs? Is you are trying to do this on the server, are you accessing the
correct physical folder?

"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:uO**************@TK2MSFTNGP10.phx.gbl.. .
>Hi,
>
>I have an xslt file located in the root directory. It is used by an


aspx
>pages in both the root directory and a subdirectory. But for some


strange
>reason, the aspx page in the subdirectory can neither locate the xslt


file
>or the css file needed to get the desired results.
>
>What's the problem? Can anyone help me?
>
>Thanks,
>Roshawn


Nov 19 '05 #6
Hi Jevon,

It's "Myfile.xslt"

HTH,
Roshawn

Jevon wrote:
What's the value of ConfigurationSettings.AppSettings("Myfile") ?

Jevon
"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:eF**************@TK2MSFTNGP10.phx.gbl...
Hi Patrick

This is the snippet from the default.aspx page in the subdirectory:

Private Sub GetDetails(ByVal id As String)
Dim sb as New StringBuilder()
sb.Append(ConfigurationSettings.AppSettings("ItemL ookup") &
"&SubscriptionId=" & ConfigurationSettings.AppSettings("SubID") &
"&Version=" & ConfigurationSettings.AppSettings("Version") &
"&Operation=ItemLookup&ItemId=" & id & "&ResponseGroup=Large")
Dim tr As XmlTextReader = New XmlTextReader(sb.ToString)
Dim xDoc As XPathDocument = New XPathDocument(tr)
Dim htw As HtmlTextWriter = New HtmlTextWriter(Response.Output)
Dim trans as XslTranform = new XslTransform()
trans.Load(Server.MapPath(ConfigurationSettings.Ap pSettings("Myfile"))
trans.Transform(xDoc, Nothing, htw)
End Sub

This procedure is called during the Page_Load event. All I'm doing is
attempting to transform the xml that I receive from a third party (I
actually get data so that is not an issue). Remember that the xslt file
is used by the default.aspx page in the root directory and the
default.aspx page in the subdirectory.

HTH,
Roshawn

Patrick.O.Ige wrote:
Can you post some small snippet what you are trying to do.
Patrick

"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl...
Hi Peter and thanks for responding.

I'm using relative urls. The browser doesn't have any trouble getting
it.

To give you a better
picture of what I'm dealing with, here's what I have:

1.) the root directory contains a default.aspx page, css file, and an
xslt

file that thats used by
the default.aspx page and a page in the subdirectory

2.) a subdirectory named "Foo" that contains a default.aspx page.

The xslt file creates the html output I want. Inside the xslt file I
make

use of the css file.
When it comes to the xslt file, ASP.NET gives me a

System.IO.FileNotFoundException. It states that
it cannont find the xslt file in the subdirectory. I took that to mean

that the xslt file must also
exist in the subdirectory.

I've checked to make sure that I'm doing everything as I should but

nothing seems to work.
Thanks anyway,
Roshawn

Peter Rilling wrote:
>Is the browser having trouble getting it, or some of your server code?

How
>are you trying to interact with it? Are you using relative or absolute
>URLs? Is you are trying to do this on the server, are you accessing the
>correct physical folder?
>
>"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
>news:uO**************@TK2MSFTNGP10.phx.gbl. ..
>
>
>
>>Hi,
>>
>>I have an xslt file located in the root directory. It is used by an

aspx
>>pages in both the root directory and a subdirectory. But for some

strange
>>reason, the aspx page in the subdirectory can neither locate the xslt

file
>>or the css file needed to get the desired results.
>>
>>What's the problem? Can anyone help me?
>>
>>Thanks,
>>Roshawn
>
>
>

Nov 19 '05 #7
Hi Roshawn,

From that it looks like you're either misunderstanding how virtual
directories work, how Server.MapPath works, or both :)

By having "Myfile.xslt" in that variable in the sub directory, for example
/foo/, when you run Server.MapPath on it in /foo/default.aspx, you map to
/foo/Myfile.xslt, not /Myfile.xslt, as you seem to expect. Server.MapPath
works from the current path, not the root. I think, to get everything
working correctly, you just need to change the "Myfile" setting to
"../Myfile.xslt" - but only in the sub directory, not the root.

I don't know how the CSS is linked/how XLST tranformation actually works,
you might need to do something similar with the path to the CSS file as
well.

Jevon
"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:O6**************@TK2MSFTNGP15.phx.gbl...
Hi Jevon,

It's "Myfile.xslt"

HTH,
Roshawn

Jevon wrote:
What's the value of ConfigurationSettings.AppSettings("Myfile") ?

Jevon
"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:eF**************@TK2MSFTNGP10.phx.gbl...
Hi Patrick

This is the snippet from the default.aspx page in the subdirectory:

Private Sub GetDetails(ByVal id As String)
Dim sb as New StringBuilder()
sb.Append(ConfigurationSettings.AppSettings("ItemL ookup") &
"&SubscriptionId=" & ConfigurationSettings.AppSettings("SubID") &
"&Version=" & ConfigurationSettings.AppSettings("Version") &
"&Operation=ItemLookup&ItemId=" & id & "&ResponseGroup=Large")
Dim tr As XmlTextReader = New XmlTextReader(sb.ToString)
Dim xDoc As XPathDocument = New XPathDocument(tr)
Dim htw As HtmlTextWriter = New HtmlTextWriter(Response.Output)
Dim trans as XslTranform = new XslTransform()
trans.Load(Server.MapPath(ConfigurationSettings.Ap pSettings("Myfile"))
trans.Transform(xDoc, Nothing, htw)
End Sub

This procedure is called during the Page_Load event. All I'm doing is
attempting to transform the xml that I receive from a third party (I
actually get data so that is not an issue). Remember that the xslt file
is used by the default.aspx page in the root directory and the
default.aspx page in the subdirectory.

HTH,
Roshawn

Patrick.O.Ige wrote:

Can you post some small snippet what you are trying to do.
Patrick

"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl.. .
>Hi Peter and thanks for responding.
>
>I'm using relative urls. The browser doesn't have any trouble getting
>it.

To give you a better
>picture of what I'm dealing with, here's what I have:
>
>1.) the root directory contains a default.aspx page, css file, and an
>xslt

file that thats used by
>the default.aspx page and a page in the subdirectory
>
>2.) a subdirectory named "Foo" that contains a default.aspx page.
>
>The xslt file creates the html output I want. Inside the xslt file I
>make

use of the css file.
>When it comes to the xslt file, ASP.NET gives me a

System.IO.FileNotFoundException. It states that
>it cannont find the xslt file in the subdirectory. I took that to mean

that the xslt file must also
>exist in the subdirectory.
>
>I've checked to make sure that I'm doing everything as I should but

nothing seems to work.
>Thanks anyway,
>Roshawn
>
>Peter Rilling wrote:
>
>
>>Is the browser having trouble getting it, or some of your server code?

How
>>are you trying to interact with it? Are you using relative or
>>absolute
>>URLs? Is you are trying to do this on the server, are you accessing
>>the
>>correct physical folder?
>>
>>"Roshawn Dawson" <ud****@bellsouth.net> wrote in message
>>news:uO**************@TK2MSFTNGP10.phx.gbl.. .
>>
>>
>>
>>>Hi,
>>>
>>>I have an xslt file located in the root directory. It is used by an

aspx
>>>pages in both the root directory and a subdirectory. But for some

strange
>>>reason, the aspx page in the subdirectory can neither locate the xslt

file
>>>or the css file needed to get the desired results.
>>>
>>>What's the problem? Can anyone help me?
>>>
>>>Thanks,
>>>Roshawn
>>
>>
>>

Nov 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: whisper | last post by:
Medium/small site with mod_python and sqllite or mySQL running Python 2.3.3 or later on Apache 2.x. I can do the python and CGI, but might need a _little_ hand holding for the rest. Will also...
2
by: ratedr1 | last post by:
I am currently trying to label rings (jewelry). They make specialized tags (shaped like a butterfly, barbell, dumbell, etc) for this purpose, the label goes through the ring, and then the ends...
2
by: Chad A. Beckner | last post by:
Hey all, I have a ASP .NET webpage which contains several panels. When I click a button on the first "panel" page, it postsback to the same page, and I switch the visibility of the panels...
2
by: Keith Kowalski | last post by:
I anm opening up a text file reading the lines of the file that refer to a tif image in that file, If the tif image does not exist I need it to send an email stating that the file doesn't exist...
1
by: Massimo Bonanni | last post by:
Hi, I try to implement ASAP protocol in my web service, but I find a very hard problem. I define my SOAP Header: public class Request : SoapHeader {
4
by: briggsie2006 | last post by:
I need to write a program called wc.py. It promts the user to input a filename and outputs the number of lines, words, and, characters in the file. I really need help on this because I don't know...
5
by: Karthik D V | last post by:
Hello All, I have a table like this ID CHARACTER ----------- --------- 1 A 2 A 3 B 4 B
5
by: fortwaynemarketplace | last post by:
Need these two scripts; 1. (Action) script for email (outlook express or...) to come up in .swf enviroment. I have created a button (email us), need action scritps to send/recevie an email. ....
2
by: Alenik1989 | last post by:
I wrote this code, but I'm not able to test it because im getting 3 errors. So I'm not sure that this code will work properly or not!!! the code in #include <stdio.h> #include <stdlib.h> int...
2
by: Coxmg | last post by:
Here is the code, ACCESS 2007: Hello, I have a dialog box that opens on a form that lets the user browse files. I simply want to limit it to Folders, how can I do that? Need ASAP. Thanks. ACCESS...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.