<p>I wrote a simple web service in C# using SharpDevelop (which I just got and I love).</p>

<p>The client wanted it in VB, and fortunately there's a Convert To VB.NET feature.  It's great.  Translated all the code, and it builds.  (I've been a "Notepad" guy for a long time, so I may seem a little old-fashioned.)</p>

<p>But I get this error when I try to load the service now.</p>

<pre>
Parser Error Message: Could not load type 'flightinfo.Soap' from assembly 'flightinfo'.

Source Error:

Line 1:  &lt;%@ WebService Class="flightinfo.Soap,flightinfo" %&gt;
</pre>

<p>I have deleted the bins and rebuilt, and I have searched google (and stackoverflow).  I have scoured the project files for any remnants of C#.</p>

<p>Any ideas?</p>

[{'answer_id': 60108, 'author': 'FlySwat', 'author_id': 1965, 'author_profile': 'https://Stackoverflow.com/users/1965', 'pm_score': 0, 'selected': False, 'text': '<pre><code>&lt;%@ WebService Class="flightinfo.Soap,flightinfo" %&gt;\n</code></pre>\n\n<p>What is the name of your class?</p>\n'}, {'answer_id': 72087, 'author': 'Sixto Saez', 'author_id': 9711, 'author_profile': 'https://Stackoverflow.com/users/9711', 'pm_score': 0, 'selected': False, 'text': "<p>The problem may be cause by VB.NET &amp; C# projects using different naming conventions for project assemblies and how the project namespace is used. At least that's were I would start looking.</p>\n"}, {'answer_id': 201092, 'author': 'csgero', 'author_id': 21764, 'author_profile': 'https://Stackoverflow.com/users/21764', 'pm_score': 2, 'selected': True, 'text': '<p>In VB.NET, namespace declarations are relative to the default namespace of the project. So if the default namespace for the project is set to X.Y, everithyng between <code>Namespace Z</code> and <code>End Namespace</code> will be in the X.Y.Z namespace.\nIn C# you have to provide the full namespace name, regardless of the default namespace of the project. \nSo if the C# project had the default namespace X.Y, the CS files would still include the <code>namespace X.Y</code> declaration. After converting to VB, if both the default namespace  and the namespace declarations in the files stay the same you end up with classes in the X.Y.X.Y namespace.\nSo in your case, the Soap class is now in the flightinfo.flightinfo namespace. Thus there are three possible solutions:</p>\n\n<ul>\n<li><p>change the asmx file to</p>\n\n</li>\n<li><p>remove the default namespace from the project</p></li>\n<li>remove the namespace declarations from the vb files</li>\n</ul>\n'}]
['https://Stackoverflow.com/questions/60098', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4525/']