i had done a system and set it in a .msi install package. to run setup in silent install mode, i have type command in command prompt like below:
msiexec /i myinstallationname.msi /qn
how to when we start install and then the above command will automatic call without manually key in in command prompt??????
can this done by creating a .bat file or .inf file?? if can, please let me know how to create and write.
I have some proplem about Program Pinging. I develope program windows form pinging using microsoft.net framework It can to run under user administrator. But if I login to be user domain it can't using function pinging and appear error below
System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions at System.Net.Sockets.Socket.SendTo
IIRC, a the packets that a ping application needs to send out are not directly supported by the .NET Framework and so you have to use raw sockets for this. .NET regards raw sockets with suspition (as they can be used for malicious purposes much more easily) and so they required a higher set of security privileges than a normal socket.
When I try the webservice sample code "hello world" in the Visual studio .net 2003, I seem always have problem on authetication or authoraztion. I just remove the "'" according to the explanation in the comment to change serveral line of comment into code. and Press F5 to debug it . or try http://localhost/webservice1/webservice1.asmx in the brower.
At first, I got an error "Access denied". I thought it may be ananymous access from ASPNET account or IUSR-XXX need administrator authorization. I put them into administrator group. But it does not work. I also put debugger users group and VS developer groups have administrator authorization. It does not work. I got some other server-side error as "The Web server reported the following error when attempting to create or open the Web project located at the following URL". I also change some setting on dedault web site of IIS as application protection to Low and put ASPNET account or IUSR-XXX, debugger users group and VS developer groups all have administrator authorization . But I do not know why. As the explanation in the help or book, it should not be so difficult.
My environment: window 2000 server, IIS 5.0 Visual studio .Net 2003.
My question is for the simpliest webservice. If i only try in the IDE, what
do I have to set?
My email address:Bretthlin@hotmail.com or firstname.lastname@example.org
I would like to call methods that are written in visual c++ 6.0 from the .NET environment.
If you know how to do this, please explain in the most simple way.
And if you can also send me a sample I will be glad and thankful!
If you have a com or com+ file, you can simply add a reference in VS.NET to that file (VS.NET will automatically create a RCW, a runtime callable wrapper for the file which is like a sort of proxy between the unmanaged code and the managed code) and use it in your .NET code.
i'm developing a client-server application and now i need to fix my asynchronously receive of messages because sometimes the complete message is not received on a single OnDataReceived call. I've tried for example to send a 18000 bytes long message with a 40000 bytes long receive buffer but there're 2 incoming packets of 13000 and 5000 bytes. My OnDataReceive function is this
public void OnDataReceived(IAsyncResult asyn)
// SocketPacket is a class with the buffer of packet
SocketPacket socketData = (SocketPacket)asyn.AsyncState ;
int iRx = 0 ;
// Complete the BeginReceive() asynchronous call by EndReceive() method
// which will return the number of characters written to the stream
// by the client
iRx = socketData.m_currentSocket.EndReceive (asyn);
if(iRx > 0)
// this get client object/class data (nickname, receive buffer for this client, socket)
ClientSocketType client = GetClientSocket(socketData.m_currentSocket);
if(client != null)
// create a new receiving buffer for this server/client receive
if(client.PacketBuffer == null)
client.PacketBuffer = new MemoryStream();
// append received buffers to that buffer
BinaryWriter binwrite = new BinaryWriter(client.PacketBuffer);
binwrite.Write(socketData.dataBuffer, 0, iRx);
// if packets for this message are finished process message
// ?!? WORKING ?
// prepare the stream and send to a parsing function
MemoryStream stream = new MemoryStream(client.PacketBuffer.GetBuffer(), 0, client.PacketBuffer.GetBuffer().Length,true, false);
ProcessMessage(socketData.m_currentSocket, stream );
First of all, if you compile your project in VS 2003, it will use the .NET 1.1 runtime. You can also make it support the 1.0 runtime through your project properties in VS.NET.
"Modifying this property causes the project system to update the web.config file in your project by adding assembly binding ( and ) tags in a section. Web pages in Visual Studio-built ASP.NET Web applications are precompiled to a .dll file with a dependency on the runtime associated with the compiler."
I guess setting that option in the ASP.NET tab, will compile the aspx pages on runtime to one supporting the 2.0 runtime (but not the pre compiled files, since that option was set in VS.NET)
So if you would compile your project in VS.NET 2005, it will use the .NET 2.0 runtime.
Can anyone tell the diffrence btn. Multithreading and APPDOMAIN, as i know Appdomain is "Application domain is a construct in the CLR that is the unit of isolation for an application." and Mutithreading is " the ability of an operating system to concurrently run programs that have been divided into subcomponents, or threads"
So whats the diff. btn. two and which to be used when?
A thread typically runs a portion of code. If you have more than one thread running (by default they run at the same time) your application is multi-threading. For example, if you were calculating the value for pi to 100,000,000 digits it would take a very long time. You would still want a user to interact with your app while it's calculating, and not "freeze" your app. In this scenario you would use a thread to do the asynchronous work of calculating the value of pi.
An application domain is really just a box to run things in. When you create a new thread it, but default, runs in the application domain of your main program. Now, lets say you have 3 threads running and you haven't created any applicaiton domains. If one thread crashes they will all crash. An application domain gives you the security of keeping everything running inside it from influencing other processes. You can create single or nultiple threads in an application domain. So, if you have 3 threads and each one is in a different application domain, if one thread crashes the other two will continue to run.
That's the basics of it. I'd go to MSDN for the details about how app domains work in terms of security, isolation etc..
I have a DataGrid in my form that bound to a DataSet, I use background thread to update the data in the dataset, bacause there are a few threads working behind, I don;t want the updated data to be displayed in the Grid until all the threads finish. I try to use SuspendBinding, but it doesn't work.
Does anybody have idea of how to solve it?
MCAD for .NET Version
Great idea is the beginging of success!
Last Visit: 31-Dec-99 19:00 Last Update: 28-Nov-14 13:09