My.Application gone


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I am in the process of reorganizing the application I've been working on, breaking it into multiple assemblies, changing the namespaces, etc. (The app was getting unwieldy, as I didn't know enough initially to organize it). This is a SF app w/security.



In any case, my main app (the win app with sub main), which is a windows application, calls to My.Application are all failing. The error is that "Application is not a member of My". When I type "My.", intellisense only shows Resources. Pinch



Any ideas of what might be causing this or how to fix it?



Thanks!
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Greg,

You are smart to start separating your code into multiple projects.  This makes that development, deployment, and managability of your application much easier.  I have seen the My.APplication disappear before but the cause is generally from moving code from an application to a class library....but not always. 

I would have to actually get my hands on teh project to give you a definitive answer.  One thing is certain though...pretty much everything given through the My.Application reference can be retrieved a different way. 

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Thanks for the reply Trent. It's probably out of the question to send you the app (NDA would be required, yada yada Sad )



Could you let me know some things to try/look for?



Thanks!
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
This is kind of liking asking "how long is a string" Smile  Which project are you trying to access teh My.Application from?  Is it the Application or Class Library?
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
That many ways to fubar a project, huh? Whistling



This is the startup project for the solution, it is a win form project. My.Application is being accessed from within the app it refers to (i.e. My.Application calls are in RAMS project and referencing the RAMS project).



The structure is:



- Solution is RAMS

- startup project is RAMS (win forms app) (referencing My.Application here)

- BO library

- security library

- base library (common code, like headers, custom controls, shared classes, etc)

- couple of "module" (i.e. a module of my specific application, in a business sense, not a VB module) libraries
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
That many ways to fubar a project, huh?

Pretty much BigGrin

In regards to your project, do you have any of the other "My" references such as My.Computer?  Without getting hands on I am not sure I can give you a very good answer here....sorry Ermm

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I have My.Resources only.



Would you need the entire solution or just the one project? I might be able to send the single project, as it has very little code in it (relative to the entire solution).
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Hmmm....well, this indicates that there is a fundamental project setup issue here.  Have you tried to create a new project and see if that project contains the My.* references.  This might be your safest (and quickest) road back to a working My.* reference.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
so...



rename the current project

add a new one with correct name

see if my.application (etc) exist

if yes...move files and delete old project

if no...Crying



I'll try that.
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Hehe LOL...yup, pretty much. Sorry I laughed at your pain BigGrin  It is just that I have been there before.
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