Page 1 of 1

error cs0013 no logical space left

Posted: Wed Sep 28, 2011 4:44 pm
by tomamiro
Has anyone ever got the CS0013 error such as this and know what to do about it. I can't build my project at all.

Unexpected error writing metadata to file 'c:\Brainshark_Subversion\QA\Ranorex\Smoketests\PlayerSmoketest\obj\x86\Debug\PlayerSmoketest.exe' -- 'No logical space left to create more user strings.' (CS0013)

Re: error cs0013 no logical space left

Posted: Wed Sep 28, 2011 4:53 pm
by Ciege
Did you Google CS0013?
What IDE are you using?
How big is your project?

Possible issues include not enough disk space, an invalid path in your solution, possible need for a hotfix for a specific case with Visual Studio, or when your project builds a module with the same name as a module that is referenced by your project.

A temporary workaround (until the issue is resolved) I read about (quickly) were to compile the project from the command line.

Re: error cs0013 no logical space left

Posted: Wed Sep 28, 2011 5:49 pm
by tomamiro
Ciege, I'm using Ranorex 3.1 Studio. The project has a code model that is 8mb. It has a lot of image data. It was building fine in Ranorex Studio all along until now. The only thing I was doing when the problem started was adding compressed image data to the code module.

Re: error cs0013 no logical space left

Posted: Thu Sep 29, 2011 10:46 am
by Support Team
Hi,

There are more possibilities why you get this error:
This error occures when your project builds a module with the same name as a module that is referenced by your project. That is, if your project creates a DLL named MyDll.DLL and your project also have a reference to a module with the same name (MyDll.DLL), then this error occures.
it could also be that your project is too large, or you have exceeded the available space for strings.
Can you compile your project if you delete the added image?
If so you can save such images to the hard disk and if you need them you can load them at runtime.
A other solution would be if you split your project in more/two smaller projects.

Regards,
Markus
Ranorex Support Team

Re: error cs0013 no logical space left

Posted: Thu Sep 29, 2011 2:05 pm
by tomamiro
If a module name were the problem, wouldn't it have happened earlier? The project has been building until now and I haven't added or changed any module names.

I have tried to remove some image data but still cannot get it to build.

The EXE is about 15MB. Is that really big, or is Ranorex capable of handling exe's as big or bigger?

Depending on your answers, the best bet may be to break up the project.

Re: error cs0013 no logical space left

Posted: Thu Sep 29, 2011 3:16 pm
by Support Team
Hi,
If a module name were the problem, wouldn't it have happened earlier?
Yes i think so, but i just wanted to write down "all" possibilities which can trigger such an error.
It is not a Ranorex limitation, I searched a bit and this error also appears with other Studios like the Visual Studio.
Please take also a look at the following links:
link1
link2
Are you sure that you have enough free space on your hard disk?

Regards,
Markus
Ranorex Support Team

Re: error cs0013 no logical space left

Posted: Thu Sep 29, 2011 7:37 pm
by tomamiro
I have 57GB of free disk space.

Re: error cs0013 no logical space left

Posted: Fri Sep 30, 2011 8:56 am
by Support Team
Hi,

Try to perform the other suggested actions like reinstalling the .Net Framework (or splitting your project) and please report us if one of these solves your problem.

Regards,
Markus
Ranorex Support Team

Re: error cs0013 no logical space left

Posted: Mon Oct 03, 2011 10:16 pm
by tomamiro
I have pared down the project and was able to get it to compile for a while, but now when I record one image validation, it breaks. If I delete the recorded step and hence the compressed image data in the .cs file it will compile. Now, I don't have any recording in the .rxrec file; it is empty. All of my code is in a code module that I created to salvage the work I had done when the .rxrec file got wiped out by an Out Of Memory error. The code module has image data for about 21 images. Looks like I have found the break point. Adding one more image causes the compilation failure.

Re: error cs0013 no logical space left

Posted: Thu Oct 06, 2011 9:24 pm
by tomamiro
I found that breaking up the big code module .cs file that had so many compressed images for compares into multiple code modules with their applicable images, resolved this problem.