V4.3 Compiled error in VS2010

Mar 9, 2011 at 1:11 PM
Edited Mar 9, 2011 at 1:12 PM

  I downloaded SourceGrid V4.3, but I got lots of errors when running SourceGrid_All.sln in VS2010.

What is wrong?

 

Error      1              'DevAge.Properties.Resources' is inaccessible due to its protection level                E:\C#\Grid\dariusdamalakas-sourcegrid\dariusdamalakas-sourcegrid\DevAge.TestApp\Samples\frmSample36.cs                36           88           DevAge.TestApp

Error      2              'DevAge.Properties.Resources' does not contain a definition for 'SampleSmall1'                E:\C#\Grid\dariusdamalakas-sourcegrid\dariusdamalakas-sourcegrid\DevAge.TestApp\Samples\frmSample36.cs                36           98           DevAge.TestApp

Error      3              'DevAge.Properties.Resources' is inaccessible due to its protection level                E:\C#\Grid\dariusdamalakas-sourcegrid\dariusdamalakas-sourcegrid\DevAge.TestApp\Samples\frmSample36.cs                45           98           DevAge.TestApp

Error      4              'DevAge.Properties.Resources' does not contain a definition for 'SampleSmall1'                E:\C#\Grid\dariusdamalakas-sourcegrid\dariusdamalakas-sourcegrid\DevAge.TestApp\Samples\frmSample36.cs                45           108         DevAge.TestApp

Error      5              The type or namespace name 'TypedDatasetSample' does not exist in the namespace 'DevAge.TestApp.Samples' (are you missing an assembly reference?)    E:\C#\Grid\dariusdamalakas-sourcegrid\dariusdamalakas-sourcegrid\DevAge.TestApp\Samples\frmSample33.cs      146         12           DevAge.TestApp

Error      6              The type or namespace name 'TypedDatasetSample' does not exist in the namespace 'DevAge.TestApp.Samples' (are you missing an assembly reference?)    E:\C#\Grid\dariusdamalakas-sourcegrid\dariusdamalakas-sourcegrid\DevAge.TestApp\Samples\frmSample33.cs      146         52           DevAge.TestApp

Error      7              'DevAge.Properties.Resources' is inaccessible due to its protection level                E:\C#\Grid\dariusdamalakas-sourcegrid\dariusdamalakas-sourcegrid\DevAge.TestApp\Samples\frmSample30.cs                1201       53           DevAge.TestApp

Error      8              'DevAge.Properties.Resources' does not contain a definition for 'Sample1'                E:\C#\Grid\dariusdamalakas-sourcegrid\dariusdamalakas-sourcegrid\DevAge.TestApp\Samples\frmSample30.cs                1201       63           DevAge.TestApp

Error      9              'DevAge.Properties.Resources' is inaccessible due to its protection level                E:\C#\Grid\dariusdamalakas-sourcegrid\dariusdamalakas-sourcegrid\DevAge.TestApp\Samples\frmSample30.cs                1201       83           DevAge.TestApp

Error      10           'DevAge.Properties.Resources' does not contain a definition for 'Sample2'                E:\C#\Grid\dariusdamalakas-sourcegrid\dariusdamalakas-sourcegrid\DevAge.TestApp\Samples\frmSample30.cs                1201       93           DevAge.TestApp

Error      11           'DevAge.Properties.Resources' is inaccessible due to its protection level                E:\C#\Grid\dariusdamalakas-sourcegrid\dariusdamalakas-sourcegrid\DevAge.TestApp\Samples\frmSample30.cs                1201       113         DevAge.TestApp

Error      12           'DevAge.Properties.Resources' does not contain a definition for 'Sample3'                E:\C#\Grid\dariusdamalakas-sourcegrid\dariusdamalakas-sourcegrid\DevAge.TestApp\Samples\frmSample30.cs                1201       123         DevAge.TestApp

Error      13           'DevAge.Properties.Resources' is inaccessible due to its protection level                E:\C#\Grid\dariusdamalakas-sourcegrid\dariusdamalakas-sourcegrid\DevAge.TestApp\Samples\frmSample30.cs                1201       143         DevAge.TestApp

Error      14           'DevAge.Properties.Resources' does not contain a definition for 'Sample4'                E:\C#\Grid\dariusdamalakas-sourcegrid\dariusdamalakas-sourcegrid\DevAge.TestApp\Samples\frmSample30.cs                1201       153         DevAge.TestApp

 

Mar 9, 2011 at 1:27 PM

Good Morning, I have compiled the same code and successfully converted it to visual studio 2010. I did have similar problems because of dll dependencies, you might want to compile some of the projects individually first to create the appropriate .dll's first.

 

If this doesn't work let me know I would be more than happy to zip up the project and get it too you.

Mar 9, 2011 at 1:29 PM

P.S. Because visual studio 2010 is so new I installed the beta sp1 and it compiled fine after that... originally it took several conversions before all the ducks were in a row... (conversion always succeeded but digging deep i noticed things missing.)

Mar 10, 2011 at 1:02 PM
Edited Mar 11, 2011 at 6:51 AM

1. Unzip SourceGrid_4_30_src.zip

2. Run SourceGrid_All.sln to convert into VS2010

3. In Solution Explorer, Right Click C# Project SourceGrid, Choose <Build>, Build OK.

4. In Solution Explorer, Right Click C# Project SourceGrid.Examples, Choose <Build>, Build Failed. 

     SourceGrid.Cells.ColumnHeader header1 = new SourceGrid.Cells.ColumnHeader("Sample N?);  //StartForm.cs NewLine in Constant error

     Changed to :

                 SourceGrid.Cells.ColumnHeader header1 = new SourceGrid.Cells.ColumnHeader("Sample N?");

The reason is due to weird character. After changing, Build OK.

5. In Solution Explorer, Right Click C# Project DevAge.TestApp, Choose <Build>, Build Failed.  I have to remove Project DevAge.TestAp.

Error 1 'DevAge.Properties.Resources' is inaccessible due to its protection level E:\C#\Grid\SourceGrid_4_30_src\DevAge.TestApp\Samples\frmSample36.cs 36 88 DevAge.TestAppError 2 'DevAge.Properties.Resources' does not contain a definition for 'SampleSmall1' E:\C#\Grid\SourceGrid_4_30_src\DevAge.TestApp\Samples\frmSample36.cs 36 98 DevAge.TestAppError 3 'DevAge.Properties.Resources' is inaccessible due to its protection level E:\C#\Grid\SourceGrid_4_30_src\DevAge.TestApp\Samples\frmSample36.cs 45 98 DevAge.TestAppError 4 'DevAge.Properties.Resources' does not contain a definition for 'SampleSmall1' E:\C#\Grid\SourceGrid_4_30_src\DevAge.TestApp\Samples\frmSample36.cs 45 108 DevAge.TestAppError 5 The type or namespace name 'TypedDatasetSample' does not exist in the namespace 'DevAge.TestApp.Samples' (are you missing an assembly reference?) E:\C#\Grid\SourceGrid_4_30_src\DevAge.TestApp\Samples\frmSample33.cs 146 12 DevAge.TestAppError 6 The type or namespace name 'TypedDatasetSample' does not exist in the namespace 'DevAge.TestApp.Samples' (are you missing an assembly reference?) E:\C#\Grid\SourceGrid_4_30_src\DevAge.TestApp\Samples\frmSample33.cs 146 52 DevAge.TestAppError 7 'DevAge.Properties.Resources' is inaccessible due to its protection level E:\C#\Grid\SourceGrid_4_30_src\DevAge.TestApp\Samples\frmSample30.cs 1201 53 DevAge.TestAppError 8 'DevAge.Properties.Resources' does not contain a definition for 'Sample1' E:\C#\Grid\SourceGrid_4_30_src\DevAge.TestApp\Samples\frmSample30.cs 1201 63 DevAge.TestAppError 9 'DevAge.Properties.Resources' is inaccessible due to its protection level E:\C#\Grid\SourceGrid_4_30_src\DevAge.TestApp\Samples\frmSample30.cs 1201 83 DevAge.TestAppError 10 'DevAge.Properties.Resources' does not contain a definition for 'Sample2' E:\C#\Grid\SourceGrid_4_30_src\DevAge.TestApp\Samples\frmSample30.cs 1201 93 DevAge.TestAppError 11 'DevAge.Properties.Resources' is inaccessible due to its protection level E:\C#\Grid\SourceGrid_4_30_src\DevAge.TestApp\Samples\frmSample30.cs 1201 113 DevAge.TestAppError 12 'DevAge.Properties.Resources' does not contain a definition for 'Sample3' E:\C#\Grid\SourceGrid_4_30_src\DevAge.TestApp\Samples\frmSample30.cs 1201 123 DevAge.TestAppError 13 'DevAge.Properties.Resources' is inaccessible due to its protection level E:\C#\Grid\SourceGrid_4_30_src\DevAge.TestApp\Samples\frmSample30.cs 1201 143 DevAge.TestAppError 14 'DevAge.Properties.Resources' does not contain a definition for 'Sample4' E:\C#\Grid\SourceGrid_4_30_src\DevAge.TestApp\Samples\frmSample30.cs 1201 153 DevAge.TestAppWarning 15 Unable to delete file "E:\C#\Grid\SourceGrid_4_30_src\SourceGrid\bin\Debug\SourceGrid.dll". Access to the path 'E:\C#\Grid\SourceGrid_4_30_src\SourceGrid\bin\Debug\SourceGrid.dll' is denied. SourceGridError 16 Unable to copy file "obj\Debug\SourceGrid.dll" to "bin\Debug\SourceGrid.dll". The process cannot access the file 'bin\Debug\SourceGrid.dll' because it is being used by another process. SourceGrid

Apr 24, 2011 at 3:02 PM

Hello,

I see this is not resolved yet.

I have the exact same problem.

I moved to VS 2010, tried to compile version 4.21 and got the same errors in the same locations.

I tried to compile version 4.30 with same results.

removing the TestApp project resources completely and regenerating (even tried with with access modifier=Public), did not help.

Please help.

TIA

gold

Apr 27, 2011 at 8:17 AM
Edited May 11, 2011 at 12:53 AM

Hello.

Modify Two File.

・SourceGrid_4_30_src\DevAge.TestApp\Samples\TypedDatasetSample.Designer.cs
namespace TestApp.Samples

namespace DevAge.TestApp.Samples

 

・SourceGrid_4_30_src\DevAge.TestApp\Properties\Resources.Designer.cs

namespace TestApp.Properties

namespace DevAge.TestApp.Properties

 


Mar 30, 2012 at 11:38 PM
BlackDogK8 wrote:

Hello.

Modify Two File.

・SourceGrid_4_30_src\DevAge.TestApp\Samples\TypedDatasetSample.Designer.cs
namespace TestApp.Samples

namespace DevAge.TestApp.Samples

 

・SourceGrid_4_30_src\DevAge.TestApp\Properties\Resources.Designer.cs

namespace TestApp.Properties

namespace DevAge.TestApp.Properties

 




For me, I downloaded the source and clicked on the solution file and let VS2010 do it's conversion thing.
I then exited Visual Studio and did the made the above corrections through notepad.
I reopened the solution and was able to build without error.

When I attemped to run for the first time I got this error


"A Project with an Ouput Type of Class Library cannot be started directly.

In order to debug this project,add an executable project to this solution which references the library project. Set the executable project as the startup project."

To Solve this, select solution explorer and at the top, Right Click "Solution 'SourceGrid_all;(7 Projects) and select properties.

On my machine, the radio button Single startup project was selected and SourceGrid was selected which caused the error message. Changing "SourceGrid" to "DevAge.TestApp" or SourceGridExamples will get stop that error message.

Jun 10, 2012 at 5:37 PM
Edited Jun 11, 2012 at 1:19 AM

I got 4.30 version. Open in VS 2010. Made the conversion. It`s done and fine. (after that modifications)