I have this error. What i did is download a bot template from azure. Then copy my local bot to that bot template that i downloaded from azure. When i am publishing i am receiving this error. It seems the file in the bin is having a loop. That's why the path is too long. How to resolve this?
Asked
Active
Viewed 60 times
1
-
Which bot template did you download? How did you copy your local bot to that template? – Tony Ju Apr 11 '19 at 06:22
-
The basic template. I has a different structure so i copy my old bot to the template. i copied the startup of the old one. – user10860402 Apr 11 '19 at 07:14
-
Have you tried to put the project in the root directory(like d:\)? If you extract the downloaded project, you will get two-level directory. Just copy the send level directory(the project) to another place and try again. – Tony Ju Apr 11 '19 at 07:28
-
That worked sir the error is gone thanks! – user10860402 Apr 11 '19 at 07:48
-
Glad to hear that. I have added this to the answer. Please make it as answer. It will also be helpful to the others. – Tony Ju Apr 11 '19 at 08:31
-
The filename includes the directory path to the file. Reduce the number of directories prior to the project, or move the project to another location. – Kami Apr 11 '19 at 08:36
-
Possible duplicate of [Best way to resolve file path too long exception](https://stackoverflow.com/questions/8745215/best-way-to-resolve-file-path-too-long-exception) – Kami Apr 11 '19 at 08:37
1 Answers
0
You can try to put the project in the root directory(like d:) If you extract the downloaded project, you will get two-level directory. Just copy the send level directory(the project) to another place and try again

Tony Ju
- 14,891
- 3
- 17
- 31
-
I just copy the whole folder to a root directory? Cause the error is back. – user10860402 Apr 11 '19 at 08:58
-
-
Yes sir i attached the updated pic. looks like directory is looping in bin – user10860402 Apr 11 '19 at 09:15
-
Do you need the code in template bot? If not, you can try my answer in your another question, you just need the publishsettings from that template bot. – Tony Ju Apr 11 '19 at 09:21
-
I dont need the code in the template. Do you mind opening a chat sir? – user10860402 Apr 11 '19 at 09:24
-
-
Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/191645/discussion-between-tony-ju-and-user10860402). – Tony Ju Apr 11 '19 at 09:28
-
@user10860402 I can not send message in that chat window, anything wrong? – Tony Ju Apr 11 '19 at 10:14
-
-
@user10860402 'There seems to be a problem connecting to the server. Please check your internet connection and reload this page' I am getting this message. – Tony Ju Apr 11 '19 at 10:15
-
-