These forums are read-only and considered to be an archive. Please use the new Community for future interaction and posts.

The relative virtual path '.' is not allowed here

Hello

I am just testing this control and having followed the instructions i get the error:

The relative virtual path '.' is not allowed here

Anyone know what is causing this?

Cheers.
Matt
Matt 5/28/2008 3:48 AM
Please make sure that you put the whole FileVistaControl subfolder under your project's root folder and that you refer to the control with path "~/FileVistaControl/filevista.ascx" in web.config like this line:

    <add tagPrefix="GleamTech" tagName="FileVistaControl" src="~/FileVistaControl/filevista.ascx"/>
Cem Alacayir 6/6/2008 10:15 AM
Still getting this error, have checked the web.config and all okay
Matt 11/13/2008 8:19 AM
Can you reproduce the error with the example project?
Cem Alacayir 11/18/2008 2:45 PM
Hi,

I'm getting the same error. I'm developing in VB so I had to transalte the C# code, maybe I made a mistake there. Hopefully you can help me:

I copied the folder (in Windows) to my root folder and made edits in web.config. When I use example1 style it works, but example2 style doesn't:


         Dim MyFileVistaControl As FileVistaControl
        Dim MyRootFolder As FileVistaRootFolder



        MyFileVistaControl = New FileVistaControl
        MyFileVistaControl.LoadControl("~/FileVistaControl/filevista.ascx")
        MyFileVistaControl.LicenseKey = "temp"
        MyFileVistaControl.Style = "width: 600px;"

        MyRootFolder = New FileVistaRootFolder("31254", "/")
        MyRootFolder.Permissions = FileVistaPermissions.Traverse
        MyFileVistaControl.RootFolders.Add(MyRootFolder)
        FileVistaHolder.Controls.Add(MyFileVistaControl)
Bastiaan Hungerink 12/18/2008 1:44 AM
Any word yet on this?  I'm running into exactly the same thing using VB.Net with Example 2.
David Leland 12/19/2008 6:55 AM
Hi,

I've solved it! I had to change one line:

MyFileVistaControl = MyFileVistaControl.LoadControl("~/FileVistaControl/filevista.ascx")

Only this way I load the control into my own defined control named MyFileVistaControl.

Hopefully it helps others

Greetings,
Bastiaan Hungerink 12/19/2008 7:06 AM
Thanks Bastiaan, that fixed my problem also.
David Leland 12/19/2008 8:11 AM