This is a migrated thread and some comments may be shown as answers.

[Solved] Virtual Directories

4 Answers 157 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 05 May 2009, 12:50 PM
I have an application called www.mydomain.com/myapp

I am trying to use the image manager by setting up a virtual directory. When I'm done I hope to have over 100 virtual directories for my clients.

My hosting company allows me to set up my own virtual directories. I created one but it does not work. Can you assist in telling me what I need?

My virtual Directory setup asks the following:

Virtual Directory Name: I have entered: \myapp\imageview
It asks me to enter a physical folder or URL direct. I selected physical folder and entered: \mydata\files\pictures\1  and I selected the checkbox Allow Directory Browsing.

I have checked the forum and could not find an answer, hoping you can assist.

4 Answers, 1 is accepted

Sort by
0
Ryan
Top achievements
Rank 1
answered on 07 May 2009, 03:32 PM
I have moved the image directory back into my application and the image manager still clocks for a long time and finally displays "Internet Explorer cannot display the webpage". I have tried every example that I could find and nothing seems to work. It works fine now on my local machine but not the hosting site. I am no longer using virtual directories.

The browser (IE7) displays the message "Waiting for http://www.mydomain.com/myapp/Telerik.Web.UI.DialogHandler.aspx?DialogName-ImageManager&Skin=Telerik&Title=IM" in the status bar.


The code that I am using is listed below:

THE ONLY TELERIK FILES IN MY APPLICATION
Telerik.Web.UI.dll (Bin folder) version 2008.3.1314.35
Telerik.Web.UI.xml (Bin folder)
en-US.tdf (App_Data/RadSpell folder)


HTML SOURCE

<

 

telerik:RadEditor ID="RadEditor1" runat="server" Skin="Telerik" EnableResize="False" Width="800px">

 

 

    <Content>
    </
Content>

 

 

</telerik:RadEditor>

 



VB CODE

 

 

If

 

Not Page.IsPostBack Then

 

 

 

    RadEditor1.Width =

"700"
    RadEditor1.ToolsFile = "~/app_data/editortoolbar.xml"
    Dim viewImages As String() = New String() {"~/vimage/img1"}
    RadEditor1.ImageManager.ViewPaths = viewImages

 

    RadEditor1.ImageManager.DeletePaths = viewImages

    RadEditor1.ImageManager.UploadPaths = viewImages

 

End

 

If

 

 

 



WEB.CONFIG

 

<?

 

xml version="1.0"?>

 

 

 

<configuration>

 

<

 

configSections>

 

<

 

sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

 

<

 

sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

 

<

 

section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

 

<

 

sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

 

<

 

section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />

 

<

 

section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

 

<

 

section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

 

<

 

section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

 

</

 

sectionGroup>

 

</

 

sectionGroup>

 

</

 

sectionGroup>

 

</

 

configSections>

 

<

 

appSettings />

 

<

 

system.web>

 

<

 

trust level="Full" />

 

 

 

 

 

<

compilation debug="true" strict="false" explicit="true">

 

<

 

assemblies>

 

<

 

add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

 

<

 

add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<

 

add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

 

<

 

add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

 

<

 

add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<

 

add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

 

<

 

add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

 

<

 

add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<

 

add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<

 

add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<

 

add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<

 

add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

</

 

assemblies>

 

<

 

buildProviders>

 

</

 

buildProviders>

 

</

 

compilation>

 

<

 

pages>

 

<

 

namespaces>

 

<

 

clear />

 

<

 

add namespace="System" />

 

<

 

add namespace="System.Collections" />

 

<

 

add namespace="System.Collections.Specialized" />

 

<

 

add namespace="System.Configuration" />

 

<

 

add namespace="System.Data" />

 

<

 

add namespace="System.Text" />

 

<

 

add namespace="System.Text.RegularExpressions" />

 

<

 

add namespace="System.Web" />

 

<

 

add namespace="System.Web.Caching" />

 

<

 

add namespace="System.Web.SessionState" />

 

<

 

add namespace="System.Web.Security" />

 

<

 

add namespace="System.Web.Profile" />

 

<

 

add namespace="System.Web.UI" />

 

<

 

add namespace="System.Web.UI.WebControls" />

 

<

 

add namespace="System.Web.UI.WebControls.WebParts" />

 

<

 

add namespace="System.Web.UI.HtmlControls" />

 

</

 

namespaces>

 

<

 

controls>

 

<

 

add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

</

 

controls>

 

</

 

pages>

 

 

 

 

<

authentication mode="Windows" />

 

 

 

 

 

<

 

httpHandlers>

 

<

 

add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

 

<

 

add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

 

<

 

add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />

 

<

 

add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" validate="false" />

 

<

 

add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" verb="*" validate="false" />

 

<

 

remove path="*.asmx" verb="*" />

 

<

 

add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

 

</

 

httpHandlers>

 

<

 

httpModules>

 

<

 

add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

</

 

httpModules>

 

</

 

system.web>

 

<

 

system.webServer>

 

<

 

validation validateIntegratedModeConfiguration="false" />

 

<

 

handlers>

 

<

 

remove name="WebServiceHandlerFactory-Integrated" />

 

<

 

remove name="ScriptHandlerFactory" />

 

<

 

remove name="ScriptHandlerFactoryAppServices" />

 

<

 

remove name="ScriptResource" />

 

<

 

add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />

 

<

 

add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />

 

</

 

handlers>

 

<

 

modules>

 

<

 

remove name="ScriptModule" />

 

<

 

add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

</

 

modules>

 

</

 

system.webServer>

 

<

 

system.codedom>

 

<

 

compilers>

 

<

 

compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">

 

<

 

providerOption name="CompilerVersion" value="v3.5" />

 

<

 

providerOption name="WarnAsError" value="false" />

 

</

 

compiler>

 

<

 

compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">

 

<

 

providerOption name="CompilerVersion" value="v3.5" />

 

<

 

providerOption name="OptionInfer" value="true" />

 

<

 

providerOption name="WarnAsError" value="false" />

 

</

 

compiler>

 

</

 

compilers>

 

</

 

system.codedom>

 

<

 

runtime>

 

<

 

assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

 

<

 

dependentAssembly>

 

<

 

assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />

 

<

 

bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />

 

</

 

dependentAssembly>

 

<

 

dependentAssembly>

 

<

 

assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />

 

<

 

bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />

 

</

 

dependentAssembly>

 

</

 

assemblyBinding>

 

</

 

runtime>

 

</

 

configuration>

 

0
Rumen
Telerik team
answered on 08 May 2009, 11:10 AM
Hi Ryan,

Do you have hundreds of files in the folder that you are trying to show? Did you test with other browser such as FF which renders the files much faster.

If this is your scenario, then our suggestion is to download the latest internal build of RadControls for ASP.NET AJAX where we introduced paging in the RadEditor File Browser dialogs.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ryan
Top achievements
Rank 1
answered on 08 May 2009, 11:37 AM
Currently there is only one image in the folder. It works fine on my local machine but not when I upload to my hosting site. All other Telerik controls work fine.
0
Rumen
Telerik team
answered on 12 May 2009, 11:31 AM
Hi Ryan,

I checked your account and noticed that your license has expired and you are unable to download the latest internal build. For your convenience I have attached its trial version to my reply. Please, test it and let us know if you still experience the reported problem.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Ryan
Top achievements
Rank 1
Answers by
Ryan
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or