My.Application gone


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K 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!
Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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 (4.8K 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 (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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 (4.8K 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 (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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 (4.8K 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 (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Hehe LOL...yup, pretty much. Sorry I laughed at your pain BigGrin  It is just that I have been there before.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Tongue



Well, since you're still alive and able to laugh, I'll take hope in that and soldier on! w00t
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Adding a new project and copying the code over worked BigGrin Thanks!
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
I figured it would....it sounded to me like your project was "jacked" BigGrin Glad you got it going!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Greg McGuffey - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Greg McGuffey - 18 Years Ago
Trent L. Taylor - 18 Years Ago
                     That many ways to fubar a project, huh? :Whistling:

This...
Greg McGuffey - 18 Years Ago
                         [quote] That many ways to fubar a project, huh? [/quote] Pretty...
Trent L. Taylor - 18 Years Ago
                             I have My.Resources only.

Would you need the entire...
Greg McGuffey - 18 Years Ago
                                 Hmmm....well, this indicates that there is a fundamental project setup...
Trent L. Taylor - 18 Years Ago
                                     so...

rename the current project
add a new one with...
Greg McGuffey - 18 Years Ago
                                         :hehe: LOL...yup, pretty much. Sorry I laughed at your pain :D It is...
Trent L. Taylor - 18 Years Ago
                                             :P

Well, since you're still alive and able to laugh, I'll...
Greg McGuffey - 18 Years Ago
                                                 Adding a new project and copying the code over worked :D Thanks!
Greg McGuffey - 18 Years Ago
                                                     I figured it would....it sounded to me like your project was "jacked"...
Trent L. Taylor - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search