Results 1 to 4 of 4

Thread: Error: Windowsapp2 is not a member of Global

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2016
    Posts
    119

    Error: Windowsapp2 is not a member of Global

    I am getting the above error in a class? called KenoDataSet.Designer.vb. When I look at the solution explorer, I cannot find KenoDataSet.Designer.vb.

    This is the portion of the code that generates the error.
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
    Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")> _
    Private Sub InitConnection()
    Me._connection = New Global.System.Data.SqlClient.SqlConnection()
    Me._connection.ConnectionString = Global.WindowsApp2.My.MySettings.Default.KenoConnectionString
    End Sub

    I have searched for windowapp2 the best I could (ctrl f) and cannot find it. Where can I look to find where windowsapp2 is created?

    I swear that the last time I edited code in this project, it compiled and ran perfectly. I went to change it againg today and got this error.
    I don't program, I beat code into submission!!!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,097

    Re: Error: Windowsapp2 is not a member of Global

    To see that file in the Solution Explorer, you presumably need to click the Show All Files button.

    What happens if you delete the 'Global.'? If that doesn't work, try deleting 'Global.WindowsApp2.'. If you make a change to the DataSet in the designer then that file may be regenerated, so the issue may or may not come back.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2016
    Posts
    119

    Re: Error: Windowsapp2 is not a member of Global

    Quote Originally Posted by jmcilhinney View Post
    To see that file in the Solution Explorer, you presumably need to click the Show All Files button.

    What happens if you delete the 'Global.'? If that doesn't work, try deleting 'Global.WindowsApp2.'. If you make a change to the DataSet in the designer then that file may be regenerated, so the issue may or may not come back.
    Thank you for your respose. I learned something today. Somehow (and don't ask me how), what I was looking for was in Data Services. I deleted what I could there and now it works again. s

    So the quesion remains, why was I able to modify and run my project a few weeks ago, then yesterday, I got the error that I showed you. I promise that I didn't modify anything in Data Servies.
    Thanks again.
    I don't program, I beat code into submission!!!

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,097

    Re: Error: Windowsapp2 is not a member of Global

    If your issue is resolved, please use the Thread Tools menu to mark the thread Resolved, so we can see that you need no more help without opening the thread and reading it.

    That said, can you be a bit more specific about exactly what you did to resolve it, just in case it might help someone else with a similar problem?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width