Software Archive
Read-only legacy content
17061 Discussions

Error uploading sources: Could not read file:

Ganesh_B_
Beginner
782 Views

I tried to push the project to the testing server and got the Alert below. It only has a button, 'Dismiss'. If I click the one and only 'Dismiss' button, it exits the process without uploading the file to the server.

error.JPG

Please advise what will be sensible approach. I've removed the files that cannot be read. It then points to another file and says the same message. It just goes on and on.

0 Kudos
6 Replies
Swati_S_Intel1
Employee
782 Views

Few things:

First make sure you are logged into XDK. Sometimes choppy internet connection can log you out of XDK and the upload will fail. So, I would first log out of XDK, close XDK and restart and log back in.

Second, there might be caching issue with the files you are trying to upload. I would load another project and then go back to the current one. 

Last, if first two don't work you may want to clear the XDK cache.

Swati

0 Kudos
Ganesh_B_
Beginner
782 Views

Hi Swati,

Thanks for your reply. 

I have 73.86mbps download speed and 94.22 mbps for upload. Hope that is good enough connection to push the files. I've tried both solutions you have mentioned but no joy at all.

By the way, the only unusual thing about my project is:

-  I built my project in MS Visual Studio 2013.

- Using Intel XDK only for compilation and testing purpose. 

The program renders absolutely perfect on 'Emulate' tab. The problem begins when i try to push the file to the test server.

Would you have any clue why it might be so? 

Thank you,

G

 

 

 

0 Kudos
Swati_S_Intel1
Employee
782 Views

It is okay to create project in Visual Studio but when you import the project in XDK, it should follow the directory structure. Your project root directory should have www folder and your index.html file in www folder.  Also, make sure .xdk and .xdke files are in the project root directory.

 

0 Kudos
Pamela_H_Intel
Moderator
782 Views

Ganesh,

If your directory structure is good, check your plugins.

When you run in XDKs emulator ALL of the core plugins are part of your app. When you build, only those that you have selected on the Project tab and by including as third-party plugins are part of your build. Are you depending on any plugins that you are not including in your build?

(https://software.intel.com/en-us/forums/topic/561120)

Pamela

0 Kudos
Swati_S_Intel1
Employee
782 Views

@Ganesh, Also check to see if you are able to upload the files to the build server by using the build tab. Do you get any error there?

 

0 Kudos
Ganesh_B_
Beginner
782 Views

Hi Swati,

Thank you for setting me into the right direction. I worked out what my problem is. 

1-  Visual studio put all the Cordova files inside my project and XDK did not like it. So, I deleted bin, bld, config, *.xdk, *.xdke and Visual Studio specific files as hilighted in my attached image

2 - Visual Studio also put .xdk and .xdke inside the www folder. Rather than in the project root folder like you mentioned. I moved the files in a way XDK would prefer to have.

3 - voilà. The file went through this time when I pushed. :) 

Pamela,

Thanks for your input. I'm sure your advice will be useful to me at some point of my app development journey. :)

Thanks a lot guys. 

G

folder_structure.jpg

0 Kudos
Reply