- Home
- Forum
- JavaScript - EJ 2
- I had a problem with host url when use api of document editor.
I had a problem with host url when use api of document editor.
I had a problem with host url when use api of document editor.



when i use online url : var hostUrl = 'https://ej2services.syncfusion.com/production/web-services/';
It work .
but I replace by my local url var hostUrl = 'http://localhost:17799/'; but didn't work.
Please help me thanks
SIGN IN To post a reply.
9 Replies
TN
Tong Nguyen
September 12, 2020 06:03 AM UTC
I use Javascript and backend PHP
AE
Ajithamarlin Edward
Syncfusion Team
September 14, 2020 09:30 AM UTC
Hi Tong,
Reg- Php backend
DocumentEditor doesn’t have any library for server side interaction in PHP.
For services, we need to write it either in ASP.NET Core or ASP.NET Mvc or JAVA.
DocumentEditor component depends on server-side interaction for the following services to work. other functionalities will work independently.
1. Importing word documents.
2. Paste with formatting.
3. Spell checking the document contents.
4. Restrict editing.
Please refer the below documentation to know more details on server-side services.
Kindly check it and let us know if you need any further assistance.
Regards,
Ajithamarlin E.
TN
Tong Nguyen
September 18, 2020 03:00 AM UTC
I used ASP.NET MVC but it had the problem.
Parser Error Message: The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.


Parser Error Message: The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.
HC
Harini Chellappa
Syncfusion Team
September 18, 2020 01:32 PM UTC
Hi Tong,
Syncfusion Greetings!
Please ensure whether path to the Microsoft.CodeDom.Providers.DotNetCompilerPlatform assembly is proper. If not, kindly refer proper path to this assembly.
For your reference, please check with below MVC services sample.
https://www.syncfusion.com/downloads/support/directtrac/general/ze/DocumentEditorServiceMVC634411734
Regards,
Harini C
TN
Tong Nguyen
September 18, 2020 03:37 PM UTC
It's run. but when copy document from Word cannot keep format of document.
TN
Tong Nguyen
September 18, 2020 05:31 PM UTC
after use I used ASP.NET MVC it cannot keep format . build services by ASP.NET CORE but had a problem .

Uncaught TypeError: Cannot read property 'length' of undefined
I used code sample of yours in github.
HC
Harini Chellappa
Syncfusion Team
September 21, 2020 12:19 PM UTC
Hi Tong,
Can you please confirm, whether you have run the services in ASP.NET Core or MVC platform? Can you please share which platform of document editor you are using?
Also please share the word document, in which you are facing the reported console error on copy/paste along with screenshots/video illustration of the issue. It will be helpful for us to provide solution at the earliest.
Regards,
Harini C
TN
Tong Nguyen
September 22, 2020 04:06 AM UTC
I used ASP.NET core.
and when i copy text from document editor to Word.

It's has background. then table is wrong

and when i copy text from document editor to Word.
It's has background. then table is wrong
But when i use demo servies it work well.
please help me. Thanks
please help me. Thanks
SM
Suriya Murugan
Syncfusion Team
September 24, 2020 12:29 AM UTC
Hi Tong,
We couldn’t reproduce the reported issue. Can you please share the document or video illustration to reproduce the issue? that will helpful for us to proceed further on reported issue.
Regards,
Suriya M.
SIGN IN To post a reply.
- 9 Replies
- 4 Participants
-
TN Tong Nguyen
- Sep 12, 2020 05:56 AM UTC
- Sep 24, 2020 12:29 AM UTC