1

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?

enter image description here update picenter image description here

user10860402
  • 912
  • 1
  • 10
  • 34
  • 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 Answers1

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