Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding service reference not generating correctly Reference.cs
    text
    copied!<p>I have a Java Server which is running on a virtual box Debian OS,</p> <p>Anyway a WSDL file is created on the server side and from Visual Studio I am consuming the web service. The service is discovered and I am adding this service reference, however, When I try to build I get this error:</p> <blockquote> <p><em>'WindowsFormsApplication2.Properties.Settings' does not contain a definition for 'WindowsFormsApplication2_TravelAgency_TravelBooking' and no extension method 'WindowsFormsApplication2_TravelAgency_TravelBooking' accepting a first argument of type 'WindowsFormsApplication2.Properties.Settings' could be found (are you missing a using directive or an assembly reference?) C:\Users\Me\Documents\Projects\WindowsFormsApplication2\WindowsFormsApplication2\Web References\TravelAgency\Reference.cs 42</em></p> </blockquote> <p>This relates to this in <code>Reference.cs</code>:</p> <pre><code>this.Url = global::WindowsFormsApplication2.Properties.Settings.Default.WindowsFormsApplication2_TravelAgency_TravelBooking; </code></pre> <p><code>WindowsFormsApplication2_TravelAgency_TravelBooking</code> is underlined in red.</p> <p>I do not have a clue what has happened and will add all information required not sure what else to add.</p> <p>EDIT:</p> <p>All the code I have is as follows</p> <p><code>Program.cs</code>:</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace WindowsFormsApplication2 { static class Program { /// &lt;summary&gt; /// The main entry point for the application. /// &lt;/summary&gt; [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } } } </code></pre> <p>And <code>Form1.cs</code> and <code>Form1.cs[Design]</code>:</p> <pre><code>using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using WindowsFormsApplication2.TravelAgency; namespace WindowsFormsApplication2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); TravelBooking tb = new TravelBooking(); } } } </code></pre> <p>EDIT:</p> <p>If I do this in Netbeans and create a Java Gui(just to test) it works fine and works great. So this is why I believe it is something to do with the generated code</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload