Ask a Question related to ASP Database, Design and Development.
-
Tim Emmerson #1
FSO Object
I have created an FSO object on my server to allow me to access data on a
harddrive from a remote location. This works fine, except that the data is
pulled from another server on the network and not the webserver. So when I
use the command
objFSO.GetAbsolutePathName("\\ehc-sr-001\rmweb")
it returns the UNC in full an then gives that to the link. Ergo when I click
the link from inside the network it works no problem, but as you can imagine
when I click the link OUTSIDE the network, i.e. a remote location, it tries
to find the UNC in the URL, and doesnt work.
I have tried mapping a directory to the server as "S:\" drive, but I get a
problem in the browser displaying "Unknown Path" when I use this with the
command
Set objFolder = objFSO.GetFolder("S:\")
But if I was to use the command with "C:\" drive it works, so I know my code
is right!!!!
Could you help me please? Does anyone have any ideas on this? Please email
me at
[email]temmerson.elthamhill.greenwich@lgfl.net[/email]
Thanks!
Tim Emmerson Guest
-
Dynamically loading user control into Placeholder gives Object reference not set to an instance of an object
I've created user controls that contain listboxes that are dynamically populated from the database. In the html view of the user control... -
webservice.htc and custom object array. only first object is deserialized in the result.value
Hello I've been using webservice.htc for 6 months or so with great results. recently i came into the following problem that I am not sure how to... -
Strange error from: Dim myState As Object() = CType(savedState, Object())
Every book and every website I've seen that talks about how to save state for child controls in a composite webcontrol says to do something like... -
[WebMethod] System.NullReferenceException: Object reference not set to an instance of an object.
Um, this isn't going to work, generally. Web services, as any web app (especially on Windows server 2003) are heavily sandboxed. The method you... -
Cannot serialize object of type System.Object[,]. Multidimensional arrays are not supported
Hi, I get this on server when trying to retun a 2 dim array. I apprecaite that they are not supported as per... -
John Beschler #2
FSO Object
I'm not sure I understand exactly what you are trying to
do. Can you give exact path names, etc.?
Remember that anything that runs in an ASP script runs in
the context of the user on the server. If you have
anonymous access enabled, then that user is the IUSR
account. Any mappings you attempt to access, etc. will
only be valid from the perspective of that user.
Think of it this way. It's as if you sat at the keyboard
and monitor of your server and logged into the server as
the IUSR account. Whatever permissions, mappings etc.
would be available to you, would be available to the ASP
scripts.
HTH,
John
access data on a>-----Original Message-----
>I have created an FSO object on my server to allow me tothat the data is>harddrive from a remote location. This works fine, exceptwebserver. So when I>pulled from another server on the network and not thelink. Ergo when I click>use the command
>
>objFSO.GetAbsolutePathName("\\ehc-sr-001\rmweb")
>
>it returns the UNC in full an then gives that to theas you can imagine>the link from inside the network it works no problem, butlocation, it tries>when I click the link OUTSIDE the network, i.e. a remotedrive, but I get a>to find the UNC in the URL, and doesnt work.
>
>I have tried mapping a directory to the server as "S:\"use this with the>problem in the browser displaying "Unknown Path" when Iworks, so I know my code>command
>
>Set objFolder = objFSO.GetFolder("S:\")
>
>But if I was to use the command with "C:\" drive itthis? Please email>is right!!!!
>
>Could you help me please? Does anyone have any ideas on>me at
>
>temmerson.elthamhill.greenwich@lgfl.net
>
>Thanks!
>
>
>.
>John Beschler Guest
-
Mark Schupp #3
Re: FSO Object
it sounds like you are trying to pass a file:// link to the user through the
asp page. this naturally will not work if the client system does not have
file access to the server where the file exists. what you will have to do is
use FSO to read the file and stream its contents to the client (or you could
copy the file into your web directory and provide and http:// link instead).
--
Mark Schupp
Head of Development
Integrity eLearning
[url]www.ielearning.com[/url]
"Tim Emmerson" <temmerson.elthamhill.greenwich@lgfl.net> wrote in message
news:uWshcLXvDHA.2308@TK2MSFTNGP11.phx.gbl...click> I have created an FSO object on my server to allow me to access data on a
> harddrive from a remote location. This works fine, except that the data is
> pulled from another server on the network and not the webserver. So when I
> use the command
>
> objFSO.GetAbsolutePathName("\\ehc-sr-001\rmweb")
>
> it returns the UNC in full an then gives that to the link. Ergo when Iimagine> the link from inside the network it works no problem, but as you cantries> when I click the link OUTSIDE the network, i.e. a remote location, itcode> to find the UNC in the URL, and doesnt work.
>
> I have tried mapping a directory to the server as "S:\" drive, but I get a
> problem in the browser displaying "Unknown Path" when I use this with the
> command
>
> Set objFolder = objFSO.GetFolder("S:\")
>
> But if I was to use the command with "C:\" drive it works, so I know my> is right!!!!
>
> Could you help me please? Does anyone have any ideas on this? Please email
> me at
>
> [email]temmerson.elthamhill.greenwich@lgfl.net[/email]
>
> Thanks!
>
>
Mark Schupp Guest



Reply With Quote

