error cs0013 no logical space left

Ask general questions here.
tomamiro
Posts: 14
Joined: Mon Jun 27, 2011 10:06 pm

error cs0013 no logical space left

Post by tomamiro » Wed Sep 28, 2011 4:44 pm

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)

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: error cs0013 no logical space left

Post by Ciege » Wed Sep 28, 2011 4:53 pm

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.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

tomamiro
Posts: 14
Joined: Mon Jun 27, 2011 10:06 pm

Re: error cs0013 no logical space left

Post by tomamiro » Wed Sep 28, 2011 5:49 pm

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: error cs0013 no logical space left

Post by Support Team » Thu Sep 29, 2011 10:46 am

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
.
Image

tomamiro
Posts: 14
Joined: Mon Jun 27, 2011 10:06 pm

Re: error cs0013 no logical space left

Post by tomamiro » Thu Sep 29, 2011 2:05 pm

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: error cs0013 no logical space left

Post by Support Team » Thu Sep 29, 2011 3:16 pm

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
.
Image

tomamiro
Posts: 14
Joined: Mon Jun 27, 2011 10:06 pm

Re: error cs0013 no logical space left

Post by tomamiro » Thu Sep 29, 2011 7:37 pm

I have 57GB of free disk space.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: error cs0013 no logical space left

Post by Support Team » Fri Sep 30, 2011 8:56 am

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
.
Image

tomamiro
Posts: 14
Joined: Mon Jun 27, 2011 10:06 pm

Re: error cs0013 no logical space left

Post by tomamiro » Mon Oct 03, 2011 10:16 pm

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.

tomamiro
Posts: 14
Joined: Mon Jun 27, 2011 10:06 pm

Re: error cs0013 no logical space left

Post by tomamiro » Thu Oct 06, 2011 9:24 pm

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.