المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Wrong path.



C# Programming
09-01-2009, 04:53 PM
Hi everyone.

I'm having an error in my application that is confusing me.
The error is this one:

Could not find a part of the path "C:\CrkBusinessplatform\Aplicacao\Publico\sistemas\ccs\CRK.Monitores\sistemas\ccs\CRK.Monitores\monit or_arquivos\xslt\ACCS001.xslt"

Here are the facts: The correct path would be C:\CrkBusinessplatform\Aplicacao\Publico\sistemas\ccs\CRK.Monitores\xslt\ACCS001.xslt -> A part of the path is coming twice.
The archive ACCS001 is in this correct path.

The code line of the error is like this:
xslt.Load(Page.Request.PhysicalApplicationPath+"/monitor_arquivos/xslt/ACCS001.xslt");

I'm using .NET 1.1 on IIS 6.
The folder CRK.Monitores is a virtual directory in IIS. So the code should return the right path, right?

Oh, one more thing. The DLL of this page is the same here and there(I have checked it). And the error does not occur here.

Thanks in advance. http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif