|
Hey That was just what I was looking for !!!! Thanks a lot !!
Braulio
PS.: Alvaro Mendez, con este nombre me parece que hablas español no ? yo soy de Málaga (España)
|
|
|
|
|
You're welcome Braulio, I just sent it your way.
PS. Si, hablo español (mejor que lo escribo). Naci en Cuba y radico en el sur de la Florida (USA).
Saludos,
Alvaro
Hey! It compiles! Ship it.
|
|
|
|
|
Sorry, I forgot to ask you to send me the article ( you can send it to bdiez@holtegroup.com ).
Thanks for your help
Braulio
|
|
|
|
|
Hello,
I apologize if this has already been discussed, but I need to find an solution for this problem. I have several web services that I have developed, and deployed to my staging and production environments. The problem is whenever I test the web services by specifying the .asmx file, type in the parameters into the form, and click submit, the new window opens for the web service, but the port number is automatically input into the URL. This causes a time out because the service cannot be found when the port number is specified. I need to know how to set up my web services/servers to not specify the port number. If I type the URL into the address bar, without the port, the web service funtions correctly.
|
|
|
|
|
Hi all, I have been battling to send packets ( custom structures in my case ) over TCP. What is the best way to do this. Sending text is a breeze, but trying to send packaged info is proving to be a problem.
Any help welcome, thanks
|
|
|
|
|
Why dont you try Remoting (it has a TCP channel option)? And you can send entire objects across the network.
HTH
Smitha
You are never given a wish without also being given the power to make it true. You may have to work for it, however.
-- Richard Bach
|
|
|
|
|
I shall have a look at it, thanks
|
|
|
|
|
hi, id like to know how to code for a button on a splash window, the button is an ok button..when clicked opens the main menu window...at this moment i've done this :
private button OK_CLICK (and so on......)
{
Application.Run(new MainMenu());
}
but this code is giving me errors..
is there any other way...the correct way....im new to C#...
thx alot
15 Yr old
|
|
|
|
|
If your splash dialog is started by a Main routine,
and your MainMenu is just a form, then you should code your button like this:
<br />
MainMenu mm = new MainMenu(this);<br />
mm.ShowDialog();<br />
the MainMenu will then be displayed as a modal dialog (i.e. the user can't interact with
the original dialog -the splash screen- until (s)he closes the MainMenu).
I'm not sure how you can then close the splash form, but that's a start, I hope.
F.O.R.
|
|
|
|
|
Hi all,
I have two applications in seperate projects, one a client and one a server, I have created a Request object which is identical in each application and am serializing it and sending it through sockets and attempting to deserialize it at the other end, but when I try formatter.Deserialize(byteData) it errors (see exception at end of post), for some reason when the client attempts to deserialize the request object it trys to find the server application..I have no idea why this is and am completely stumped.
Can anyone help? If you need any additional information let me know and I'll post it here.
Thanks in advance.
Matt
The Exception in question
=========================
System.Runtime.Serialization.SerializationException: Cannot find the assembly AgencyManagerServer, Version=1.0.1354.16670, Culture=neutral, PublicKeyToken=null.
at System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name)
at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
at System.Runtime.Serialization.Formatters.Binary.ObjectMap.Create(String name, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
at Client_Application_Test.Form1.Deserialize(Byte[] data) in c:\documents and settings\matt\my documents\visual studio projects\client application test\form1.cs:line 214
|
|
|
|
|
>I have created a Request object which is identical in each application
so do you have two classes of this request-object?
one in the server-app and one in the client-app
or do you use a shared dll?
|
|
|
|
|
Yes I had the class on both sides, but I've done some reading on msdn and found that serializing an object records the assembly name to deserialize it again, which is why I was having the error, since it was going from Server to Client assemblies, so I've put the request/response objects in a shared .dll file to resolve the problem. seems to work fine
Thanks for replying
|
|
|
|
|
Is there any way to use a class from a dll? or do i have to use a StructLayout?
|
|
|
|
|
On C#, AFAIK, it would be too much trouble. The easiest way would be using Managed C++ and writing a simple wrapper __gc class, which would be easily callable from C# and can natively call your dll. You can find some samples for that on the Web.
You can do it on anything you choose - from .bat to .net - A customer
|
|
|
|
|
could you give me a little more direction on where exactly to find a decent example?
|
|
|
|
|
Here:
http://www.google.com/search?sourceid=mozclient&ie=utf-8&oe=utf-8&q=wrap+unmanaged++__gc+sample
You can do it on anything you choose - from .bat to .net - A customer
|
|
|
|
|
I'm looking for a simple way to lauch Windows Explorer from C# and have it open up to a given folder. What I DONT want is to have a black command prompt window to flash up on the screen briefly while it executes a command line (I really hate that, and it confuses users).
I've looked through some WMI articles, but they seem overly complex for what I'm trying to do. Any suggestions?
-- James --
|
|
|
|
|
System.Diagnostics.Process.Start(@"C:\WINDOWS\EXPLORER.EXE /n,/e,C:\");
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
hi,
anyone can give me some tutorials about the deployment tools in Visual Studio .NET?
i seems able to do more than my current understanding.
would anyone give me some help on that?
thanks,
jim
|
|
|
|
|
Don't worry, you are not alone. While there are some tutorials on MSDN, and VS.NET is a damn good environment, the VS.NET deployment tools suck (they are confuse, unstable and unreliable), that's why you are lost. I'm yet to find a good deployment solution for .NET.
You can do it on anything you choose - from .bat to .net - A customer
|
|
|
|
|
ha!
my boss requested me to make a single installer to deploy a db app. developed in both C# and C++. most difficult part is installing the mysql database. i am using some batch file to start the database service stuffs... quite trouble to deal with.
|
|
|
|
|
Hi,
I recently had to build a installation program to install my application and I tried to do it using the "Deployment" project in Visual Studio.Net. After much research and help from the folks on this message board I was able to build the installation package.
There are 2 things to be done:
1. Create a new project of type "Deployment" and add all the components of your application to this project. You can specify the folders they need to be on the target computer, the icons/shortcuts on the desktop, the item in the Start->Program Menu, etc.
On building this project it will generate a .wsi file, a setup.exe along with other files. All the files generated in the Debug directory constitute the installation package.
The above package will run perfectly on any computer as long as it has .NET framework installed on it. If not then you have do the second thing.
2. Download the BootStrapper sample from the following link:
http://www.microsoft.com/downloads/details.aspx?FamilyId=BF253CFD-1EFC-4FC5-BA7E-6A6F21403495&displaylang=en
Its in unmanaged C++. Build it and it will generate a setup.exe. It also has a settings.ini file.
Copy the setup.exe and settings.ini into a folder, say, myfolder. Then copy the .wsi generated in step 1 above into myfolder. Then copy the dotnetfx.exe (the .net framework installer) into myfolder.
The dotnetfx.exe can be downloaded from here:
http://www.microsoft.com/downloads/details.aspx?FamilyId=D7158DEE-A83F-4E21-B05A-009D06457787&displaylang=en
All files in myfolder now constitute your new installation package. This installation will first check if .NET is installed or not on the target computer, if not, then it will silently install it and then it will install your application.
I hope this helps.
Suhas
|
|
|
|
|
oh! really thanks! i have tried what you said... but, i need to do a bit more such as install mysql, startup mysql service... i am thinking to make a executable to do this and use a batch file to run it.
let me make such a "not so elegrant solution" first and see if my boss accept. otherwise, ask him to buy a deployment tools.
indeed, i don't know why detecting framework existance is so important but not included in the deployment tools.
|
|
|
|
|
Hi,
I have a problem with saving a long text with newline characters in richtextbox control to a txt file.
I'm using streamwriter to save the text. But the text in the file don't recognize the new line character.
Can anyone help solving this problem?
|
|
|
|
|
Could you give us a small piece of code of what you are trying to do?
You can do it on anything you choose - from .bat to .net - A customer
|
|
|
|