Answer Questions
Whoisit HttpListener and a client error (403)
I am attempting to create a al client/server app using the HttpListener class. I want to bypass IIS altogether. I was told that a system with SP2 has the necessary HTTP stack implemented in HTTP.SYS....so here is my simple, sample that I can't seem to get working. Initially I was going to create my server using sockets (SSL etc), but had read that it would be easier to user a higher level protocol like HTTP. So here are my first tentantive steps (cobbled together from googling). Any guidance would be appreciated, even a book reference would be welcome.... namespace MDA.HTTPServer { public class httpServer { public static void SimpleListenerExample(string[] prefixes) { if (!HttpListener. ...Show All
masom1773 TraceListener.TraceEvent: Why do I need a numeric identifier for the event?
Why do I need the id parameter of the method TraceListener.TraceEvent I think this parameter is very irritating because I define the event already with the TraceEventType . I thought the time that I have to manually define an id value is over. But I am wrong. That's what the Windows event log user, an id... juergen.b wrote: For what is the id used If I work with the Windows event log (EventLog class) I don't need any id . But to call the TraceEvent method I have to use some id value. In the event log viewer you will see a column with the title "Event", this correlates to the "Event Id" field in the event detail form. This is what the .NET ID correlates to ...Show All
progame How to setup a Kerberos delegation? (.Net 2.0)
Hello, I am trying to configure the kerberos delegation. On the client side the AuthenticationType is set to Kerberos but on the server side it is changed to NTLM. Client registeration: IDictionary channelProps = new Hashtable (); channelProps.Add( "secure" , true ); channelProps.Add( "tokenImpersonationLevel" , System.Security.Principal. TokenImpersonationLevel .Delegation); BinaryServerFormatterSinkProvider serverProv = new BinaryServerFormatterSinkProvider (); serverProv.TypeFilterLevel = System.Runtime.Serialization.Formatters. TypeFilterLevel .Full; BinaryClientFormatterSinkProvider clientProv = new BinaryClientFormatterSinkProvider (); TcpChannel channel = new TcpChannel (channelProps ...Show All
MSP.Saami Asynch Web services???? WTF!!!
Sorry bout the title but I am getting pretty flustered. Essentially I am trying to find a simple answer. I am currently trying to develop a WS interface using... VS2005 WSE 1.0 I know weird combo but that is because IBM refuses to support anything else (DIME). Anyway I am trying to figure out how to do a web service Asych and everything I have read says I need a line similar to service.HelloWorldCompleted += new HelloWorldCompletedEventHandler(this.HelloWorldCompleted); However, this won't compile cause the WSDL doesn't make a function called HelloWorldCompleted. Does anyone PLEASE have any ideas thx P.S. The full code Imports testAsych.localhost Public Class Form1 Private Sub Form1_Load( ...Show All
Nikolay Georgiev Cannot get an instance of remoting object
Hi everyone I have a problem getting an object instance from the remoting server (which in this case is the same machine as the client, so I can lookup the object using localhost) Basically I created a Windows Service and at the OnStart() method there I use .NET remoting to expose the EmailManager class on port 2808 protected override void OnStart( string [] args) { TcpServerChannel channel = new TcpServerChannel(2808); ChannelServices.RegisterChannel(channel); RemotingConfiguration.RegisterWellKnownServiceType( typeof (Microsoft.Crm.Application.Pages.Grids.Cmds.EmailManager), "BulkEmailAttachmentServiceSocket", WellKnownObjectMode.SingleCall); } And on the other side (in this case a w ...Show All
Jeanvo Authorization Problem
Hey, I'm writing a little program which sends E-mail, I built a class: public class Send_Mail { public void send( string use, string pass) { string to = "snaidis@gmail.com" ; string from = " semionn.89@mail.ru "; MailMessage message = new MailMessage (from,to); message.Subject = "Using the new SMTP client." ; message.Body = @"Using this new feature, you can send an e-mail message from an application very easily." ; SmtpClient client = new SmtpClient ( "smtp.mail.ru" ); client.Send(message); } } I'm getting the following problem: ------------------------------------------------------------- An unhandled exception of type 'System.Net.Ma ...Show All
ephisians how to send X,Y mouse postion..
there is a server and a client.. i connected them using sockets.. i want the Remote "client" app. to draw when i move the mouse on the host"server" app.. i got the mouse position from the onMouseMove () but i dont know how to keep sending the coordinates to the client so it can paint.. thnx. You are correct in that your instance of the Socket class only directly allows writing of bytes... so to be able to send your mouse coordinates you are either going to have to manually break up the values to send them along or have the system do it for you, like creating a NetworkStream from your Socket and using a StreamWriter to write to it ala: System.Net.Sockets. NetworkStream ns = new System.Net.Sockets. NetworkStre ...Show All
Thomas N. Sørensen MDM.EXE (Machine Debug Manager) Fails to start
Hi, No matter what I do I can't seem to get the Machine Debug Manager service started. I am running XP Service pack 2, .Net 2003, Framework 1.1. When I attempt to start the service manually I get the message "The Machine Debug Manager service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service". I've tried deleting the registry entry, unregistering and re-registering MDM.EXE and I've even done a complete reinstall of .Net. It still won't start. There's nothing in the event logs. It's a standard build PC in a large commercial environment. Ane other ideas would be appreciated. Thanks, Andy Check this ...Show All
hfann problem in client/server application
Hi every one, I developed a client/server application . client connect to server correctly if both are under the same router (in the same Lan) , but the problem arised when the client and the server arenot in the same Lan they cant connect together. I checked the router configration ,it was correctly setup. please if you have expirense in this problem help me. Thanks for reading my message------------ I think , you dont read my message carefully I said : I configured my router and the problem still exist. any way thanks RizwanSharp. if you have any other help please tell me thanks again Hi, Here is your problem, bola shokry wrote: ...Show All
Alle How to store PDFs in SQL SERVER 2000
Hi All I have a windows app which require to upload pdf file in sql server 2000. Does any one know how to save PDF file in SQL Server 2000 (as BLOB). I tried using FileStream object but no luck. Thanks Yeah..You are right. Even I am using WebBrowser control in widows form to display PDF. But to display PDF in Crystal Reports is tough. Thanks I have tried using OLE Object (Adobe Acrobat 7.0 Document) but with this I am not able to change the PDFs dynamically. All I get is the same PDF file which I browse while creating OLE Object. We are storing PDF files in folders and the location is in DB. Is there any other way to display PDFs in crystal reports using vb.net Thanks Thanks. Yes, I have trie ...Show All
PhilipDaniels Static methods behind the scene
How static methods work inside CLR Is it similar to the old C++ architecture with a single copy of the method for all instances How member functions work/represented inside CLR That's not correct either. Only virtual methods have a pointer in the V-table. The addresses of static and non-virtual methods are known at compile time. That doesn't sound quite accurate. Non-static methods also have a single copy of the methods for all instances. Even for derived classes, unless the method was overridden. There is no fundamental difference between static and non-virtual methods, they are both called by a direct call, the JIT compiler always knows the method address. The one and only difference: when it ...Show All
AbhijeetG Convert to TIFF image.
How to convert a PDF file content to tiff image using C# code Thank you Joris Arits . is it possible to convert 1) PDF file byte arry 2) byte array to image 3) image to PDF file i am using PDF4NET. if you give any sample code snippet means very much helpful to me. Thanks & Regards Seetaram.C Hi, Using . Net you cann't convert you can do using KadCas and PDF4NET. In PDF4NET there is lot of examples also there. Thanks KV Bhaskar. I don't think there is a class to handle PDF's in the .NET Framework. So you'll need an external library. However, I'm not a 100% sure about it. A library I used is PDF4NET , a great library which can h ...Show All
JoshKorn stream reader and writer problem
hi I have a strange error. I have an .ini file to set the default values and it will change in a button click event. very simple. but when I want to delete the existing file, I get the "file in used" error. I just use stream reader once and stream reader once and I am sure that they are close but I can not undrestand why I get this error. the worst thing is that the error will raise just sometimes not always. the codes are like this: private void Definitions_Load( object sender, EventArgs e) { string file_path = System.IO. Path .GetDirectoryName(System.Reflection. Assembly .GetExecutingAssembly().GetName().CodeBase).Replace( "file:\\" , "" ) + "\\defini ...Show All
flarebol Error installing dotnetfx3.0
[10/02/06,09:38:05] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation. " [10/02/06,09:38:05] WIC Installer: [2] Setup Failed on component WIC Installer [10/02/06,09:38:14] WapUI: [2] DepCheck indicates WIC Installer is not installed. [10/02/06,09:38:14] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed. [10/02/06,09:57:29] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation. " [10/02/06,09:57:29] WIC Installer: [2] Setup Failed on component WIC Installer [10/02/06,09:57:35] WapUI: [2] DepCheck indicates WIC Installer is not installed. [10/02/06,09:57:35] WapUI: [2] DepCheck indicates Microsoft . ...Show All
robinjam Application using .NET framework NOT starting?
Hello, I downloaded a software programme (exertrack) from www.exertrack.com ; it worked properly before. I updated windows XP, scanned for malitious software. Now the application does not want to start. I recieve the message box with heading "BaseControllerUI" and message "Microsoft.ApplicationBlocks.Cache.CacheManager has encountered an exception, software will not start". I am no PC expert, but would appreciate help form someone that knows what to do, or what is wrong. Regards, Len Hrmm... that doesn't sound like a good error message. I'd contact the vendor of the software. Unfortunately you probably won't have much luck finding an answer here, as these boards are intended for ...Show All
