|
I've never tried to use Mono, does it suport using Web Services? the primary function of this application is that it reads a file or files, and uploads their contents to our web service to update data stored on our system. I think i could probably do this with java, but for some reason we were under the impression that .NET was microsofts answer to java in that one executable would run on any machine with the framework, just like java runs on any machine with the jvm.
|
|
|
|
|
I've never used Mono myself but it seems to be getting more and more capable. My impression is that it is easier for it to handle the web side of .NET than the Windows side. It will probably be easier for them once everything goes to WPF. I'd make some inquiries or ask in forums on the Mono site. There may also be one or two articles on codeproject. From your initial description it seems that Mono should be more than capable of handling that, especially if it has no complex Windows GUI.
.NET was designed so that it could be made cross-platform (hence Mono) but MS have only provided a Windows implementation (but the new Silverlight runs on Mac OS X). Otherwise, the main difference in MS's implementation compared to Java's is that .NET is multi-language, single platform while Java is single language, multi-platform.
Kevin
|
|
|
|
|
Alright, i'm running the compatibility tester right now, thanks for all your help, i'll look into it, and see which i any solution my boss prefers.
|
|
|
|
|
I'd be interesting in knowing if this is successful.
Kevin
|
|
|
|
|
the compatibility tester said that there are no problems...I used the mono command line to start one of the applications and it seemed to work correctly even the web service calls worked. unfortunatly i dont have mac to test this on..i dont even have a pc w/out the .net framework, so i dont know if its actually using mono or if its still using .net, the site said that the monoframework could run exe's complied with visual studio with .net which seems true. Also, it said that some pieces of windows froms are not supported, but it seemslike the basic controls, buttons, textboxs, labels, etc... are in the current version 1.2.4 i think it is, there is also a c# compliier so if running the exe wont work on anoter machne i'm going to try to compile my source code with the mono compiler ad see what happens.
|
|
|
|
|
Oh yes - another thing - many of the open source utilities, such as NUnit - also work with Mono.
Kevin
|
|
|
|
|
SomeGuyThatIsMe wrote: we were under the impression that .NET was microsofts answer to java in that one executable would run on any machine with the framework,
Wrong, very wrong.
The .NET Framework is Microsoft's implementation of the ECMA standard Common Language Infrastructure, or CLI. It has nothing to do with having an application run on a variety of operating systems. It defines a managed exectution environment and a common base class library that multiple lanugages targeting the CLI can use. It has nothing to do with being O/S independant, nor is it Microsoft's answer to Java.
The only other CLI implementation I know of is the Mono Project. It's modeled after Microsoft's .NET Framework, but is not a bit-for-bit compatible implementation. For instance, the last I looked, Microsoft's System.Windows.Forms namespace doesn't exist in Mono, because all the classes in that namespace are specific to functionality found only in the windowing functionality of Windows.
|
|
|
|
|
hi,
can anyone please tell me how to convert a stream containing a ".ico" file to stream compatible with a ".cur" file in j#
|
|
|
|
|
|
Oops. You had a very similar remark here[^] but
the OP needs a solution, not a comment.
|
|
|
|
|
True. But I think even select count(*) of his duplicate posts and timestamps make the problem itself bit disgusting.
If he is clinging onto to a single discussion thread, the topic can be featured as a good KB too. But he is spoiling the main topic of the thread itself and hence trying to emphasize it.
|
|
|
|
|
Well, the only way that you can really do this is to rewrite the ico file on a byte level.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
When I deploy my web application in a Windows 2003 server(SP2) it is giving the array "index was outside the bound of the array".If you have any suggestions to resolve this issue please let me know.
Regards,
Prajin
|
|
|
|
|
Any idea on what we should base our suggestions ?
|
|
|
|
|
Prajin wrote: If you have any suggestions to resolve this issue please let me know.
Well the index your trying to access ... in the array ... is out of the bounds :P i.e. if you have 28 items your trying to access either <= -1 or >= 28.
The trick is to read the exception text, suprisingly it tells you whats wrong.
I'd hate to see what you'd do if you got a Win32 error
|
|
|
|
|
I wonder how do you know all this ?
|
|
|
|
|
It's a gift he's got.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
It's my amazing psychic powers ... didn't ya know? :P I can take mere text and extract meaning out of it!
I'm going to start a tour of lectures soon called how to read AND understand ... I'll make millions.
|
|
|
|
|
Deploy your Application or Component Using Windows Installer,i have read this article and anderstand somthing,this article is very good . but i also have one question,how to ask user for product code and how to validate.is there any way to do this....?.If product is correct then only user should be able to install the product.like what we have seen in microsoft products which will ask for product code while installlation.the same way i want to implement in my setups.the customer Information dialog's serialnumbertimplate is too simple to protect ,just base on modulo by 7 algorithm.
could anyone pls help help out if u know.ur suggestions are greatly appreciated.
from vevi
|
|
|
|
|
this is dhanaraj.. i am new to asp dotnet,,,
i want to bind the datagrid dinamically.. help me any one
|
|
|
|
|
Hello everyone,
I am working on an application that uses .NET Remoting to communicate between a Windows Service and a client program. I am trying to use Activator.GetObject from the service to access data in the remoting server. Unfortunately, the service reaches the code where I request the data from the remoting server and never gets past it. The code after that line is never executed and an exception is never caught. I can't figure out what I'm doing wrong.
The code is below. Any help or suggestions would be greatly appreciated.
Jason Lewis
<br />
Remoting Object<br />
---------------<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using System.Runtime.Remoting;<br />
using System.Runtime.Remoting.Contexts;<br />
<br />
namespace MCCSharedLib<br />
{<br />
[Serializable()]<br />
public class OutData<br />
{<br />
<br />
[Serializable()]<br />
public struct OutItems<br />
{<br />
public int iNumUnits;<br />
public int iAType;<br />
public int iBType;<br />
... <br />
public bool bAAdvanced;<br />
public bool bBAdvanced;<br />
};<br />
<br />
public OutItems m_OutItems;<br />
<br />
public OutItems OutputItems<br />
{<br />
get { return m_OutItems; }<br />
set { m_OutItems = value; }<br />
}<br />
<br />
public OutData()<br />
{<br />
m_OutItems = new OutItems();<br />
m_OutItems.iNumUnits = 1;<br />
m_OutItems.iAType = 2;<br />
m_OutItems.iBType = 2;<br />
...<br />
m_OutItems.bAAdvanced = false;<br />
m_OutItems.bBAdvanced = false;<br />
}<br />
<br />
}<br />
}<br />
<br />
ILoadMenu Interface<br />
-------------------<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
<br />
using MCCSharedLib;<br />
<br />
namespace MCCRemoteClient<br />
{<br />
public interface IGetData<br />
{<br />
<br />
InData GetData();<br />
<br />
}<br />
<br />
public interface ISetData<br />
{<br />
<br />
void SetData(MCCSharedLib.OutData.OutItems _OutData);<br />
<br />
}<br />
}<br />
<br />
Server<br />
------<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Runtime.Remoting;<br />
using System.Runtime.Remoting.Channels;<br />
using System.Runtime.Remoting.Channels.Tcp;<br />
using System.Text;<br />
<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Threading;<br />
using System.Diagnostics;<br />
using System.Runtime.InteropServices;<br />
using Microsoft.Win32;<br />
<br />
using MCCRemoteClient;<br />
using MCCSharedLib;<br />
<br />
<br />
namespace MCCRemoteServer<br />
{<br />
public class MenuManager : MarshalByRefObject, IGetData, ISetData<br />
{<br />
private System.Threading.Timer m_HIDTimer;<br />
private MCCSharedLib.OutData m_OutItems;<br />
<br />
public MenuManager()<br />
{<br />
m_OutItems = new OutData();<br />
<br />
TimerCallback timerDelegate = new TimerCallback(UpdateData);<br />
m_HIDTimer = new Timer(timerDelegate, null, 1000, 1000);<br />
}<br />
<br />
public override Object InitializeLifetimeService()<br />
{<br />
return null;<br />
}<br />
<br />
private void UpdateData(object state)<br />
{<br />
... (works fine)<br />
}<br />
<br />
<br />
public MCCSharedLib.InData GetData()<br />
{<br />
return m_DataItems;<br />
}<br />
<br />
public void SetData(MCCSharedLib.OutData.OutItems _OutData)<br />
{<br />
m_OutItems.OutputItems = _OutData;<br />
<br />
}<br />
<br />
<br />
public MCCSharedLib.OutData.OutItems GetOutData()<br />
{<br />
OutData.OutItems TempData = new OutData.OutItems();<br />
<br />
TempData = m_OutItems.m_OutItems;<br />
<br />
return TempData;<br />
}<br />
}<br />
}<br />
<br />
Windows Service<br />
---------------<br />
using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Diagnostics;<br />
using System.Runtime.Remoting;<br />
using System.Runtime.Remoting.Channels;<br />
using System.Runtime.Remoting.Channels.Tcp;<br />
using System.ServiceProcess;<br />
using System.Text;<br />
using System.Threading;<br />
using System.Runtime.InteropServices;<br />
<br />
using MCCRemoteServer;<br />
using MCCRemoteClient;<br />
using MCCSharedLib;<br />
<br />
namespace MCCRemoteService<br />
{<br />
public partial class MCCRemoteService : ServiceBase<br />
{<br />
private MCCSharedLib.OutData.OutItems m_OutItems;<br />
private System.Threading.Timer m_HIDTimer;<br />
<br />
<br />
public MCCRemoteService()<br />
{<br />
m_OutItems = new OutData.OutItems();<br />
<br />
InitializeComponent();<br />
<br />
TimerCallback timerDelegate = new TimerCallback(UpdateData);<br />
m_HIDTimer = new Timer(timerDelegate, null, 1000, 1000);<br />
}<br />
<br />
private void UpdateData(object state)<br />
{<br />
MCCSharedLib.OutData.OutItems OutItems;<br />
<br />
MenuManager RemoteObj = (MenuManager)Activator.GetObject(typeof(MenuManager), "http://localhost:9250/RemoteObject");<br />
<br />
try<br />
{<br />
OutItems = RemoteObj.GetOutData(); ******************** Line in question *******************<br />
<br />
... (more code, never reached)<br />
}<br />
catch (Exception ex)<br />
{<br />
}<br />
}<br />
<br />
protected override void OnStart(string[] args)<br />
{<br />
TcpServerChannel channel;<br />
<br />
channel = new TcpServerChannel(9250);<br />
<br />
ChannelServices.RegisterChannel(channel, true);<br />
<br />
RemotingConfiguration.RegisterWellKnownServiceType<br />
(typeof(MenuManager), "MenuManager", <br />
WellKnownObjectMode.Singleton);<br />
}<br />
}<br />
}<br />
|
|
|
|
|
The scenario:
1. Windows service, running on 2 machines; each marshals a singleton remoting object.
2. Events are passed thru an intermediary per recommendations in articles on Remoting Events.
3. Client, running on one of the 2 machines, connects to both services via remoting (TCP) and receives events from both.
4. Then... the LAN is physically disconnected from the client machine.
5. Loss of connection to the "other" machine is correctly noted and handled. Reconnection of the LAN cable results in correct recovery of that remoting connection. No problem there.
6. Problem: The next event delivery from the "local" service fails with "The connection was forcibly closed..." (Why, pray tell?) and the event delegate is appropriately removed (it's an expected result when the client "leaves"). The remoting proxy to the local service remains intact, so the client never knows that its event subscription has been lost and it never gets restored.
7. Oddity: If the LAN cable is unplugged before the client attempts the remoting connections, the resulting subscription to the local server events is unaffected by subsequent LAN connections and disconnections! Obviously, something about the remoting path is different.
Q1: Can I force the insulated connection that occurs in (7) to happen even when the LAN is present?
Q2: Failing Q1, can I detect or prevent the loss of the event connection that occurs in (6)?
(C# explanations preferred)
|
|
|
|
|
|
how can i run an application if a search file condition return true
|
|
|
|
|
Hello,
I don't know about setup projects in Visual Studio, but I did some installers with Inno Setup tool. This tool is free and powerful. You can use Object Pascal and do all what do you want using this tool.
|
|
|
|