Re: Can't load a file from a dll under ASPX pages

From: Girish bharadwaj (girishb_at_mvps.org)
Date: 09/22/04


Date: Tue, 21 Sep 2004 23:37:12 -0400

I think This would be wrong because the location is already the physical
path but to the cache folder maintained by ASP.NET.

-- 
Girish Bharadwaj
http://msmvps.com/gbvb
"C.G. Oh" <coh@alphapointe.org> wrote in message
news:eR3XLeBoEHA.2300@TK2MSFTNGP10.phx.gbl...
> string TheRightPath = Server.Mappath(ca.Location);
>
> "Plon Plon" <plonplon@netcourrier.com> wrote in message
> news:uc0goy$nEHA.2764@TK2MSFTNGP11.phx.gbl...
> > Hi all,
> >
> > I currently have a problem that looks too strange for me, can someone
> > help me?
> >
> > I'm running an ASPX page that calls a C# component (DLL), and this DLL
> > works with an XML file.
> > I've placed the XML file and the C# component in a directory (i can't do
> > it different, and the installation path can be changed at each
> > installation)), and the component loads the XML by getting the
> > "location" property on the assembly object:
> >
> > Assembly ca = typeof(myObjType).Assembly;
> > string TheRightPath=ca.Location;
> >
> > Then my ASPX page uses the component to call some of its methods, and i
> > get the following error in my browser (i traduced the messages, i get
> > them in french):
> >
> > Server in error in application '/MyWebApplication'. --------------------
> > Impossible to find file
> > "c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net
> > files\MyWebApplication\c4e535bc\84b07167\assembly\dl2\5801a542\022a2a6f_
> > f79fc401\MyXmlFile.xml".
> >
> > I think IIS creates an "execution folder", where the loading of the XML
> > doesn't work anymore, because the executed DLL is not in the same folder
> > as the xml...
> >
> > Thanks for your help...
> >
> >
> >
> >
> > *** Sent via Developersdex http://www.developersdex.com ***
> > Don't just participate in USENET...get rewarded for it!
>
>


Relevant Pages

  • Re: [PHP] About XML XSLT
    ... for start you can play with .htaccess and ModRewrite module. ... I had to Parse XML with PHP with database from mysql. ... htdocs folder in FTP. ... Would it be the best way to just place the parsed/saved XML file ...
    (php.general)
  • Re: Console Window and XmlSchema
    ... The XSD is based off an existing XML file. ... Would a dll run as a scheduled task? ...
    (microsoft.public.dotnet.general)
  • Cant load a file from a dll under ASPX pages
    ... I'm running an ASPX page that calls a C# component (DLL), ... works with an XML file. ... I've placed the XML file and the C# component in a directory (i can't do ... Then my ASPX page uses the component to call some of its methods, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Cant load a file from a dll under ASPX pages
    ... > I'm running an ASPX page that calls a C# component (DLL), ... > works with an XML file. ... > I think IIS creates an "execution folder", where the loading of the XML ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: How to display two videos at the same time
    ... I created the new folder, ... notepad then saved as an XML file. ... ''Considerate Guy' once posted an xml ... it into notepad. ...
    (microsoft.public.windowsxp.moviemaker)