Unable to rebuild solution


Author
Message
Marcia G Akins
Marcia G Akins
StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
When I try to rebuild my solution I am getting this error:

Error 1 The type or namespace name 'Advisors' could not be found (are you missing a using directive or an assembly reference?) F:\Trinity_new\Trinity\Forms\MainForm.cs 63 37 Trinity

Advisors is a maintenance form in my solution and I can see it in the solution explorer.

How do I resolve this error?

Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
Did you check your project's references?  It might be missing one.

Bill

Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Another wild idea I would try is:

  1. Close solution and exit VS.
  2. Make a backup of your solution.
  3. Open solution and try to rebuild
  4. If error persist, remove the Advisors.cs form from the project.
  5. Clean Up solution
  6. Rebuild Project
  7. If no error is generated, then add the Advisors.cs form again and rebuild.

If the error persist, then look carefully at the Advisors.cs form.

Hope this help!

Edhy Rijo

Marcia G Akins
Marcia G Akins
StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Hi Bill.

>> Did you check your project's references?  It might be missing one <<

No it is not. I have several other forms that do not cause this problem.

I think it may be some sort of versioning issue. I had a similar problem with another form when I deleted it from the solution and re-created it. I finally resolved it by getting the original form from the recycle bin and re-adding that. However, in the case of the Advisors form, it did not work.

I think it has something to do with the framework - I am just too new to it it know what to look for.

Deleting the form and adding a new form named something totally different gives me the same problem.

I am at my wits end, totally hosed at this point and rapidly becoming frantic

Marcia G Akins
Marcia G Akins
StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Hi Edhy.

Well, now I am really hosed.

None of my business objects are showing up on the toolbar anymore and none of my forms can find any of their business objects.

Any ideas?

Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Marcia,

Humm, that is really extrange.

  1. Does this happen after doing what I suggested in the previous post?
  2. Have you install any new program, Windows Update or something else to your computer?

A couple of days ago, I had a situation where I could not generate any BO from the BOM and it turned out to be that the .NET 2.0 runtime framework was corrupted, I reinstall it and that fix my problem.  This could be related somehow.

Edhy Rijo

Marcia G Akins
Marcia G Akins
StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
>> A couple of days ago, I had a situation where I could not generate any BO from the BOM and it turned out to be that the .NET 2.0 runtime framework was corrupted, I reinstall it and that fix my problem.  This could be related somehow. <<

I can generate and build. They just never show up in the toolbox.


Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
>> Did you check your project's references?  It might be missing one <<

No it is not. I have several other forms that do not cause this problem.

Since your projects are all referenced properly, then maybe there is a namespace problem.  Have you looked at the namespace(s) on the form?

Dustin Taylor
Dustin Taylor
StrataFrame Team Member (652 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
Do you have your business objects in a seperate assembly and, if so, can you access anything within that assembly? If you are losing references to entire forms, then it sounds like something core to your application's architecture rather than the framework itself.

You can lose your BOs from your toolbox if you turn off the autotoolbox populate option, and you can lose references to a single form if you copy that form to the same folder then rename it (the rename will often go and replace the references in the original form's designer file as well) but if you have lost references to all business objects and forms, then I'm not sure what might have caused it, though a change to your namespacing is a likely suspect.  

Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
Make sure you close the IDE and start a new instance.  Sometimes VS can just lose its moorings...an IDE restart takes care of a lot of things.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search