Using Editor inside Radwindow (awesome combination), per the docs I have this in my web.config
<add verb="*" validate="false" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
and this in my codebehind
string[] viewDocuments = new string[] { "~" };
string[] uploadDocuments = new string[] { "~" };
string[] deleteDocuments = new string[] { "~" };
RadEditor1.DocumentManager.ViewPaths = viewDocuments;
RadEditor1.DocumentManager.UploadPaths = uploadDocuments;
RadEditor1.DocumentManager.DeletePaths = deleteDocuments;
but when I try to invoke the document manager I get this:
'Web.config registration missing!...."
<add verb="*" validate="false" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
and this in my codebehind
string[] viewDocuments = new string[] { "~" };
string[] uploadDocuments = new string[] { "~" };
string[] deleteDocuments = new string[] { "~" };
RadEditor1.DocumentManager.ViewPaths = viewDocuments;
RadEditor1.DocumentManager.UploadPaths = uploadDocuments;
RadEditor1.DocumentManager.DeletePaths = deleteDocuments;
but when I try to invoke the document manager I get this:
'Web.config registration missing!...."
9 Answers, 1 is accepted
0
Hello David,
Please, make sure that you have the following declaration registered in the web.config file:
<add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler"
validate="false" />
<add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler"
validate="false" />
<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource"
validate="false" />
You should also correct the paths in the DocumentManager properties from ~ to ~/, e.g.
string[] viewDocuments = new string[] { "~/" };
string[] uploadDocuments = new string[] { "~/" };
string[] deleteDocuments = new string[] { "~/" };
RadEditor1.DocumentManager.ViewPaths = viewDocuments;
RadEditor1.DocumentManager.UploadPaths = uploadDocuments;
RadEditor1.DocumentManager.DeletePaths = deleteDocuments;
This will allow access to your users to browse all folders inside your project and to upload files and insert files from them.
For your convenience I have attached my test project. I hope this helps.
Greetings,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Please, make sure that you have the following declaration registered in the web.config file:
<add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler"
validate="false" />
<add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler"
validate="false" />
<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource"
validate="false" />
You should also correct the paths in the DocumentManager properties from ~ to ~/, e.g.
string[] viewDocuments = new string[] { "~/" };
string[] uploadDocuments = new string[] { "~/" };
string[] deleteDocuments = new string[] { "~/" };
RadEditor1.DocumentManager.ViewPaths = viewDocuments;
RadEditor1.DocumentManager.UploadPaths = uploadDocuments;
RadEditor1.DocumentManager.DeletePaths = deleteDocuments;
This will allow access to your users to browse all folders inside your project and to upload files and insert files from them.
For your convenience I have attached my test project. I hope this helps.
Greetings,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
david
Top achievements
Rank 1
answered on 24 Jan 2008, 01:27 PM
thanks the project chokes on version inconsistencies in the web.config, what version of the prometheus binaries should I use for the project, I'm using the most current 3.5 bins on my site
thanks
thanks
0
Hello David,
Please, find attached an example made with VS 2008 and .NET 3.5. I hope this helps.
Greetings,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Please, find attached an example made with VS 2008 and .NET 3.5. I hope this helps.
Greetings,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
david
Top achievements
Rank 1
answered on 24 Jan 2008, 07:32 PM
Ok,
thank you for sending the VS2008/.Net 3.5 sample
I extracted (and replaced) the web.config
I extracted (and replaced ) everything in the bin folder
I extracted the sample.aspx you provided:
I get the same error message.
All other features of the editor work fine but the document manager.
thank you for sending the VS2008/.Net 3.5 sample
I extracted (and replaced) the web.config
I extracted (and replaced ) everything in the bin folder
I extracted the sample.aspx you provided:
I get the same error message.
All other features of the editor work fine but the document manager.
0
Hello David,
Did you run my test project? The document project works as expected on my side.
Please, review the following help article providing guidance how to register the editor dialogs event handler: Introduction to dialogs.
Try the instructions and if you still experience this problem please open a support ticket and send a sample working project that demonstrates the problem. Please, include all project files and two screenshots of your web application structure in IIS and Windows Explorer.
Once I am able to reproduce the problem I will do my best to provide a solution.
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Did you run my test project? The document project works as expected on my side.
Please, review the following help article providing guidance how to register the editor dialogs event handler: Introduction to dialogs.
Try the instructions and if you still experience this problem please open a support ticket and send a sample working project that demonstrates the problem. Please, include all project files and two screenshots of your web application structure in IIS and Windows Explorer.
Once I am able to reproduce the problem I will do my best to provide a solution.
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
david
Top achievements
Rank 1
answered on 25 Jan 2008, 01:41 PM
Ok,
your project runs correctly as does my project if I run it from within VS2008
but NOT : if I run it from the webserver http://localhost/default.aspx in that case it breaks on filemanager
I have set permissions to the ~/CourseContent folder (my target) for 'Network Service' as modify/read&execute/list/read
what am I missing?
thanks for all your help
your project runs correctly as does my project if I run it from within VS2008
but NOT : if I run it from the webserver http://localhost/default.aspx in that case it breaks on filemanager
I have set permissions to the ~/CourseContent folder (my target) for 'Network Service' as modify/read&execute/list/read
what am I missing?
thanks for all your help
0
Hi David,
The best and quick way to help you will be to open a support ticket and send a sample working project that demonstrates the problem. Please, include all project files and folder and two screenshots of your web application structure in IIS and Windows Explorer.
Please, also provide the text of the error message which you get when you open the editor's dialogs.
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The best and quick way to help you will be to open a support ticket and send a sample working project that demonstrates the problem. Please, include all project files and folder and two screenshots of your web application structure in IIS and Windows Explorer.
Please, also provide the text of the error message which you get when you open the editor's dialogs.
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
david
Top achievements
Rank 1
answered on 25 Jan 2008, 08:50 PM
This appears to have been the solution (IIS7) requires :
<system.webServer>
<handlers>
<add name=”Telerik.Web.UI.DialogHandler” path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" />
</handlers>
</system.webServer>
thanks to support
<handlers>
<add name=”Telerik.Web.UI.DialogHandler” path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" />
</handlers>
</system.webServer>
thanks to support
0
Hello david,
We would like to add some useful information for other developers who might read this forum thread:
The new IIS 7 offers two modes - Classic (same as IIS 6) and Integrated.
When using Integrated mode, all web handlers must be registered to a new, special section in the Web.config -
<system.webServer> instead of <system.web>
More information on this can be found here:
Registering the HttpHandlers on Windows Vista IIS 7 Integrated mode.
Kind regards,
Tervel
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
We would like to add some useful information for other developers who might read this forum thread:
The new IIS 7 offers two modes - Classic (same as IIS 6) and Integrated.
When using Integrated mode, all web handlers must be registered to a new, special section in the Web.config -
<system.webServer> instead of <system.web>
More information on this can be found here:
Registering the HttpHandlers on Windows Vista IIS 7 Integrated mode.
Kind regards,
Tervel
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
