Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm in a pickle, have you ever worked on something so long that your eyes start burning and feel like they're popping out your head? Well this is where I am at.

I never post until I got a good 24 - 72 hours under my belt doing my own investigating, I've Googled, I tried another form, and they I tried every option in the resources folder.

This is my environment
1. Windows 10 Processional
2. Visual Studio Enterprise Edition 2015
3. One Web Solution with about 38 class libraries as dependencies.

Background
1. Refactoring all Class libraries from 2.0 to 4.5.2 before release

2. So, I have a lot of Class Libraries, this solution is very decoupled and it is a CAD solution so there is a lot of code

3. Before my Web Designers dig in and start to work and integrate I have refactored 38 programs and I am on my last application web solution.

4. I am on the very last, the Web Solution and the reason I did not get errors while refactoring the libraries because I was building the libraries’ and they build fine.

5. When I started testing the rending of the drawing “that is what the class libraries do” a few of they started throwing errors.

6. What is happening is that during design time the resources, strings, files, and images build and no sign of any issue what so ever.

7. Just to keep it simple I have a class library it creates a bitmap during the process from the resources; however, if I hover over the resource before the cursor passes over the resource I get a resource cannot find manifest error.

8. I have been doing this for so many years, all I do is add the string, image, or file, and grab it by the key, no problem, ok so we know I am aware of how to do this.

9. I looked at the previous settings and from the past the resources properties say content, do not copy, and that works great.

10. All the libraries are new Class libraries and the code was moved over, rather than trying to upgrade and older version.

MY Problem is that I have tried everything under the user, embed, resource, content, splash, when I say everything I mean it. I so hope that someone out there can help me because two days on this is starting to get to me upstairs.
I have always added the strings, with the key, added the image and it is being recognized but when it gets into the body of the function the error you'll see in the photo shows up, it cannot find the resource. it is looking in the manifest. NOW REMEMBER, I'VE EMBEDDED THESE FILES

I've moved from 2.0 to 4.5.2

PLEASE HELP!
I may have to end up doing a File.Path or something i do not know, but i am totally messing up so bad somewhere

Any tidbit would be awesome!

C#
public Task<bitmap> GetDrawingAsync(string projectName, string elevationName, DetailsType detailsType)
  {
      return Task.Run(() =>
      {

          Bitmap bm_DetailsType = null;

          switch (detailsType)
          {
              case DetailsType.InsideGlaze_451_ScrewSpline:

                  bm_DetailsType = Resources.InsideGlaze_451_ScrewSpline_sample;<<--Bitmap NO GO
                  break;
              case DetailsType.OutsideGlaze_451_ScrewSpline:

                  bm_DetailsType = Resources.OutsideGlaze_451_ScrewSpline_sample;<--- Bitmap NO GO

                  break;
          }

          bm_DetailsType = this.DrawPlaceholder(
                            1650,
                            Resources.Header,<<<-------string no go
                            projectName,
                            elevationName,
                            Resources.Footer,<<<------string no go
                            bm_DetailsType
                            );

          return bm_DetailsType;
      });
  }




<a href="http://f.alumcloud.com/Resource-Help.JPG">Here is a snapshot of design time and run time</a>





Thank you!


------

What I have tried:

StackOverflow
Google
Every option that is aviation for resources, as in, content, embed, splash, page, EVERYTHING

Tying every option under the sun for two days in the IDE.</bitmap>
Posted
Updated 9-Sep-16 22:05pm
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900