|
Hi,
I have a solution with a web site and a DLL project.
Under my web site I add a reference to an external web service and I get my web reference displayed under App_WebReferences with a .discomap file and a .wsdl file.
I do the same under my DLL project and I get a web reference but there are no files listed, just an icon rather than the files!
If I then go into my web site's code, I can reference the web service just fine. If I go into my DLL project's code, I cannot reference the web service.
What's going on?
|
|
|
|
|
How about generating proxy class from webservice and add it to DLL Project?
- Go To "Visual Studio .NET 2003 Command Prompt"
- Type wsdl "http://a.b.c/webservice.asmx" (note: Type the exact URL of webservice. And C# is default. If you wanna generate VB.NET Proxy then please specify " /language:vb" )
- Hit "Enter"
[The proxy will be generated for your webservice. So, Add this file to your DLL project. Then, use it. ]
Hope it would help..
Let me know the result..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
Thanks, worked great!
Wonder why it didn't work so well by adding it from solution explorer?
Visual Studio 2005 by the way.
|
|
|
|
|
>>Wonder why it didn't work so well by adding it from solution explorer?
I'm not very sure about it. maybe, your Visual Studio has some problems.
AFAIK, Adding web ref from solution explorer and generating proxy manually are the same.. When we are adding webref from solution explorer, VS IDE automatically generate the proxy class.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Thank you.
|
|
|
|
|
I want to create an email and send it from a C# desktop app. I am using VS2003 and have .net 1.1.4322.
What namespace would I be using? I have tried System.Web, but Mail is not there.
Is this even possible?
Thanx in advance!
Jude
|
|
|
|
|
|
Hmmm....I looked at all of the classes...I don't see anything that does the job there.
Jude
|
|
|
|
|
For .NET 1.1 it's in the System.Web.Mail namespace but you have to have a reference to System.Web.dll.
|
|
|
|
|
|
How do I import or reference that into an .exe? When I use using System.Web.Mail, I get a compiler error "Mail does not exists..."
Thanx for the replies!
[ EDIT ]
Played around and found it!
Thanx for all the help!
-- modified at 15:32 Thursday 22nd February, 2007
Jude
|
|
|
|
|
I am writing a small utility to retrieve all classes and methods from .NET assemblies, using reflection.
Is there a way I can retrieve the XML comments associated with the classes as well as methods? I have seen few websites displaying the .NET classes, methods and a short desription. I am pretty sure they did not hand type those descriptions for those thousands of methods!
Any help would be appreciated.
|
|
|
|
|
I was under the impression that the comments would be stripped out by the compiler. If you inspect the assembly in ILDASM, you would not see the xml comments.
- Malhar
|
|
|
|
|
T John wrote: I am writing a small utility to retrieve all classes and methods from .NET assemblies, using reflection.
Is there a way I can retrieve the XML comments associated with the classes as well as methods?
No. Comments are not saved in the compiled assembly. Any documentation found in the source code would normally be saved to a seperate XML file to be used with Intellisense or some other documentation tool. If all you have is the assembly .EXE or .DLL file, there are no comments to get.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
As mentioned, it's not possible.
But if you for some reason need a sort of runtime documentation reading you can create your own attribute classes and apply them to methods and read them using reflection.
|
|
|
|
|
HI,
I have two instance of oracle 9i running in the database server.How do i connect to different instance from c#?
people laugh at me because they say im different and I laugh at them because they are all the same.
|
|
|
|
|
|
Hello,
I work with Netica Softwar (www.Norsys.com) for Bayesien network, and i have a problem to integrate Netica in C#, i add Netica in Comtab and appear InteropNetica in ObjectBrowser, when i write:
Netica.IBNet r = new Netica.IBNet();
r.NewNode("dfd", 2, net.ToString());
They are error:
Cannot create an instance of the abstract class or interface 'Netica.IBNet' C:\Documents and Settings\Administrateur\Mes documents\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplication1\Form1.cs
|
|
|
|
|
abbd wrote: Cannot create an instance of the abstract class or interface 'Netica.IBNet' C:\Documents and Settings\Administrateur\Mes documents\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplication1\Form1.cs
An abstract class or interface cannot be created directly, the implementor must derive (inherit) a class from them to be able to create instances of the interface / class.
|
|
|
|
|
hello folks
i suddenly had an exception in my working code.
i clicked on a menu item to open the form and it wouldn't open. it worked fine for atleast a dozen times but now its giving the exception
An unhandled exception of type 'System.OutOfMemoryException' occurred in system.windows.forms.dll<br />
<br />
Additional information: Error creating window handle.<br />
can anyone please guide me about this peculiar exception
awaiting all responses
regards
Saira
|
|
|
|
|
Have you tried setting a breakpoint in the menu handler?
/ravi
|
|
|
|
|
plz ellaborate a breakpoint
|
|
|
|
|
|
sorry about the breakpoints just slipped my mind:->
the exception comes on the statement
AddTable adt=new AddTable();<br />
adt.MdiParent=this;<br />
adt.Show(); <-----exception<br />
|
|
|
|
|
Hi,
the most likely reason for this is that you ran out of memory.
arent you creating many and/or big objects every time you cluick that menu item
(in such a way that they dont get disposed and garbage collected when your menu item handler
is done) ??
|
|
|
|
|
how can it run out of memory even if its the very first form i'm trying to open through the menu item after i run the application???
and since its the very first task i perform after running the application there aren't any item or garbage to dispose of, besides this just happens with one particular menu item as all the rest function okay.
any other suggestions???
|
|
|
|