Answer Questions
Ricardo UY Remotting
Hi I am converting an application to work as remote. I have many static methods on my bussiness classes. If I call them on client application they will be run in client domain. Is there any way to make them to run in server domain. Thanks Hi As you are going to deploy the business class as remote componenet you have to access as instance methods in the client so better to change the static m ...Show All
johnsonjj22 How to pass custom object to WebMethod?
Want to pass my Currency entity object to a webmethod. I have marked the object as Serializable. However, another object with the same class name Currency(generated by VS.NET 2005) is required when I try to use the webmethod. Why How can I pass my entity object Thanks Remember that using Web Services does not guaranty type identoty, in fact any type that can serialize to the same XML can be used in the ...Show All
GROTH Accessing folders in windows 2003 server.
I’m trying to download file from a server –Which is running windows server 2003- using the following code: System.Net.WebClient WebClient = new System.Net.WebClient(); WebClient.Credentials = System.Net.CredentialCache.DefaultCredentials; downloadedfile = “ http://pr2/Signs/123.tmp ” ; savedlocallyfile = System.Configuration.ConfigurationSettings.AppSetti ...Show All
AlexLeonG uploading images onto an SQL database through ASP page
Laptop Spec: XP Pro Programming languages: ASP.NET, C#, SQL Server sorry again for consecutive posts, I'm new to all of this. I am trying to create an aspx page with a user interface that will allow me to insert an mp3 file onto my database. The code I have currently is: ------------------------------------------------------------------------------------------------------------------------------------------------- ...Show All
Michael Xing - MSFT Newbie Problem
I get permission denied 0x800A0046 when trying to install a ASP hit counter that reads and writes from a text file on the server. Here is the entire default.asp to see: <%@ Language = "VBScript" %> <% Response.Buffer = true %> <head> <meta HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252"> <title>Green Relations Group</title> </head> <b ...Show All
Kumar_77 Determining hidden members via reflection.
What's the sane way to determine, via reflection, whether a type member has hidden a method or not ***CODE*** namespace Goomba { public class Base { public virtual void Action() { System.Console.WriteLine("Happyness is for fools!"); } } public class Subclass : Base { public override void Action() { System.Console.WriteLine("Get happy!"); ...Show All
tarmac321 RSA parameters p/q values
Hi there I'm working on a project which involves digital signatures. I take custom made key files and import modulus public and private exponent on RSAParameters.With this info I can encrypt data without any problem Unforunately when I call the sign method I get an exception about including the private part of the key that means the P/Q/DP/DQ values of the keys have to be entered too. Anyway how can I calculate the P and Q values given tha ...Show All
jnickfl1 Newb Remoting question.
I need to write an application where the client needs to be able to add a document name/location to MSMQ on a remote server. The remote server then needs to read MSMQ to find its location and retrieve the document from the client machine. Port 80 must be used as everything else is blocked. I was wondering if this was possible/suitable for remoting. I am completly new to this subject and am a bit confused as to what application types ...Show All
pawan_atl CommandBuilder error
I am trying to update a particular row in the backend table(my backend table allready consists of a primary key) using the following piece of code public void Conenct_to( int Department_Number) { try { string query_text="select * from dept where deptno= '" + Department_Number + "'"; OleDbCommand o_com= new OleDbCommand(query_text,o_conn); if (o_conn.State==ConnectionState.Closed) o_conn.ConnectionString=connection_string; o_c ...Show All
Pinky Lano Convert C# to VB
Hi Could someone convert if (iMessage.Substring(i,1).Equals( "a" )) { tmpString+=(( char )29).ToString(); } to VB.NET /nOrphf thanks but it does not do as supposed. I am making a application that sends an sms via a GSM modem. I have the C# code for another program that sends sms'er via the same kind of GSM modem. The reason why I have to do this is that the modem does not understand "a". But why does it ...Show All
hoos30 Proxy Server
Does anyone know where I can find information on writing a Web Proxy Server. I need to write a transparent proxy server which will redirect the client only under certain circumstances (eg loss of connection) I need this to be completely transparent to the client and wish to configure the ProxyServer settings of Window to use my site. All I've been able to find so far are various tcp listeners etc but these only come part of the way to my solutio ...Show All
Benny Tordrup File.CopyTo throws Operation Successful error
Hi all, I'm currently developing an application that transfers a file from a local machine to a remote server via UNC using the System.IO.File.CopyTo command. What seems to be happening is that with larger files (test file is 80+ megs) the command throws an error during transfer with the message "The operation completed successfully" and is coming from mscorlib StackTrace = " at System.IO.__Error.WinIOError(Int32 ...Show All
FL_David Import a text file in web page using stream
Hello,all. I am working on a project in which I have to import file(s) containing email addresses and put these email addresses in a text files using streams. My situation is that when a button is clicked the code should run and pick the data(email addresses) from some other file(s) and put them (email addresses) in text file(s) using streams. can anyone help please. I need it urgently. Thanks in advance. hello all, Please any one can give ...Show All
Andy En Using FtpWebRequest to check if a directory exists.
I'd like to know if there is anyway i can use the FtpWebRequest class to check if a directory exists before creating it on the server. The reason i ask is because if you try to create a directory that already exists it throws a WebException and disconnects from the server. This gives a performance hit if we are trying to create alot of directories on the server that already exists due to the disconnects/reconnects. TIA, lushd ...Show All
DeepeshMS Web service connection problem
I have a web serice built which works fine when I did testing on my local machine. It also works fine when accessed from different machine within my private network. I asked a friend of mine to access it from his machine. He can access it and works for few seconds then a following problem occurs The underlying connection is closed. Then he has to exit the application and reconnect. Sometimes I have to reset the server. Looks like this ...Show All
