Error CompilerServices - Inherits Error on my StatefulPhoneApplication Class

Joined
Jun 30, 2013
Messages
6
Programming Experience
Beginner
Hi Friends of vb.net!

New to this every day - and wanted to share this error I get every time I compile my app....

Seems something is wrong With my StatefulPhoneApplication Class implementation. It works ok - but maybee a Reference error somewhere. It errors in "my.g.i.vb" ?!?! What is this file? And how do i put this error into a fix. See attachment.

Thanks for any feedback on this.
 

Attachments

Joined
Jun 30, 2013
Messages
6
Programming Experience
Beginner
Hi....thanks for the time and your awsome help on this.

So cool - a bet you know everything:)
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,251
Location
Sydney, Australia
Programming Experience
10+
Hi....thanks for the time and your awsome help on this.

So cool - a bet you know everything:)
I get the feeling that you are being sarcastic because you think that I was or that I was somehow having a go at you. I was not. It was a legitimate question. The error message is saying that that particular type doesn't exist as far as that code is concerned. Obviously you believe that the type does exist. If we know where you think that type is defined then we can work from there to determine exactly what the issue is. Either the type exists or it doesn't, so that's the first thing to determine.
 
Joined
Jun 30, 2013
Messages
6
Programming Experience
Beginner
Not to worry - when i get this error under my head - i'll be sure to share it With you all:)
 
Joined
Jun 30, 2013
Messages
6
Programming Experience
Beginner
Ok. For now I changed the codebehind file to my mainpage.xaml.vb file to "Inherits Global.App.Namspace.Class" instead of "Inherits Class". It now builds the UI and deploys without error in "my.g.i.vb-file"?!?


I thought "Imports App.Namespace" was enough - but "Global" was needed?!

I will for sure add more on why as that falls into place.....the Journey continues:)
 
Joined
Jun 30, 2013
Messages
6
Programming Experience
Beginner
Allright - A solution to my issue surfaced! As my issue above shows I have a Type error.

In my case it point to a class-file that is defined and has no errors, that in relation to inheratance or other.

But one of my other classes, which is allso tied to the same xaml-page in my Project, I had a "Namspace Name" that I adjusted to "Namespace Nameapp". Case closed. My namingculture has had a though lesson!
 
Top Bottom