c# - "Could not load type" in web service converted to VB.NET -


i wrote simple web service in c# using sharpdevelop (which got , love).

the client wanted in vb, , fortunately there's convert vb.net feature. it's great. translated code, , builds. (i've been "notepad" guy long time, may seem little old-fashioned.)

but error when try load service now.

 parser error message: not load type 'flightinfo.soap' assembly 'flightinfo'.  source error:  line 1:  <%@ webservice class="flightinfo.soap,flightinfo" %> 

i have deleted bins , rebuilt, , have searched google (and stackoverflow). have scoured project files remnants of c#.

any ideas?

in vb.net, namespace declarations relative default namespace of project. if default namespace project set x.y, everithyng between namespace z , end namespace in x.y.z namespace. in c# have provide full namespace name, regardless of default namespace of project. if c# project had default namespace x.y, cs files still include namespace x.y declaration. after converting vb, if both default namespace , namespace declarations in files stay same end classes in x.y.x.y namespace. in case, soap class in flightinfo.flightinfo namespace. there 3 possible solutions:

  • change asmx file to

  • remove default namespace project

  • remove namespace declarations vb files

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -