|
Hi Jeff. Nice summary. We had a pretty low cost entry into .NET -- most of my first year's development with .NET came from the free .NET SDK download and a $30 text editor. It's not the funnest way to develop WinForm applications, but it was great for components and ASP.NET apps.
|
|
|
|
|
You've probably seen this but #develop. And it's a free IDE
Ian Mariano - Bliki | Blog
"We are all wave equations in the information matrix of the universe" - me
|
|
|
|
|
Yes, it's really decent in my opinion. I also know people who've used WebMatrix and say it's pretty nice, although it doesn't have support for everything.
-Jeff
here, bloggy bloggy
|
|
|
|
|
Thanks! I got started with my favorite editor and the command line, then started using SharpDevelop, then got VS .NET as part of our MSDN subscription at work, so I identify with you. I was perfectly happy working on the command line for a while; it meant that I didn't get bogged down learning how to use an unfamiliar IDE. I'm sort of a Luddite when it comes to this stuff-- I don't even use the .NET debugger, ever. I just use Console.WriteLine() , and haven't found a problem yet that I couldn't tackle with that! (I'm not knocking IDEs-- they get to be necessary just to manage files and class hierarchies as things get more complicated, of course.)
-Jeff
here, bloggy bloggy
|
|
|
|
|
How can I use a licensed windows forms control on a web page? How is declared the license? Have I just to place the license file in the same virtual directory as the dll? It seems it is not the case.
|
|
|
|
|
See this article on MSDN as well as the QuickStart sample.
You can validate a license for design time and only provide designer support, etc. if your license exists. Otherwise you just perform only the run time services of the control.
Also take a look at the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemcomponentmodellicfilelicenseproviderclasstopic.asp?frame=true" target="_blank">LicFileLicenseProvider</a> class.
Ian Mariano - Bliki | Blog
"We are all wave equations in the information matrix of the universe" - me
|
|
|
|
|
We are currently investigating the use of SOAP as 'intermediate layer' between some complex modules.
.NET makes it very easy to create a 'Soap DLL' that is activated by IIS. Great.
However, we are considering to use this technology to access bigger server-style applications. These applications typically take several minutes to start up, handle a large amount of memory, and therefore cannot simply be recompiled into a kind of 'Soap DLL'.
Browsing through the Microsoft documentation I found an excellent AtlServer example that seems to do what I need. However, it would be much nicer if we could use the more modern .NET technology for this.
So here are the 'million-dollar'-questions:
- Is it possible, using .NET technology, to make a standalone .exe server-application behave like a SOAP-server via the HTTP protocol?
- Is it possible, using .NET technology, to make it accept SOAP requests via a message queue as well?
- If NO on the questions above, is using the AtlServer a step in the good direction or is ATL a dead-end?
- If YES on the questions above, where can I find good .NET examples on writing such a SOAP server?
Because I'm not sure in which forum to post it, I'll post it in 2 or 3 forums. Sorry if you get this multiple times.
Enjoy life, this is not a rehearsal !!!
|
|
|
|
|
Patje wrote:
Is it possible, using .NET technology, to make a standalone .exe server-application behave like a SOAP-server via the HTTP protocol?
Patje wrote:
Is it possible, using .NET technology, to make it accept SOAP requests via a message queue as well?
Yes and Yes. Use .NET Remoting.
Patje wrote:
If YES on the questions above, where can I find good .NET examples on writing such a SOAP server?
Check out COM+ Web Services: The Check-Box Route to XML Web Services
You'll also enjoy Soap MQ Transport, the SOAPTransport Sample.
Good luck!
Ian Mariano - Bliki | Blog
"We are all wave equations in the information matrix of the universe" - me
|
|
|
|
|
Thanks,
So far I succeeded in writing:
- a C# stand-alone SOAP server
- a C++ stand-alone SOAP server
Next steps are to write:
- a .NET C++ class (or example class) that can be embedded in our applications to make it a simple SOAP server.
- a .NET C++ class to do the same for SOAP message queue requests.
Why C++? Well, the applications are all written in C++ and for the time being we like to keep our applications as 'compact' as possible. I mean, not a bunch of DLL's or components lying around, but a rock-solid executable file that simply needs to be copied on the system.
From what I understand from C#, the C# compiler cannot simply create an object file that can be linked with the rest of the application. With C++.NET this is still possible.
Enjoy life, this is not a rehearsal !!!
|
|
|
|
|
Have a look at gSOAP[^]. Its a clean, fast way to put a SOAP interface onto C/C++ programs. The server code generated is small and fast enough to be used in embedded systems, and has no nasty dependancies.
So, for gSOAP.
- Is it possible, using .NET technology, to make a standalone .exe server-application behave like a SOAP-server via the HTTP protocol?
Yup, HTTPS too.
- Is it possible, using .NET technology, to make it accept SOAP requests via a message queue as well?
Not directly using gSOAP, but you can create asymetric methods. You would need to create a proxy to get them to/from the SOAP service.
Ryan.
|
|
|
|
|
Thanks Ryan,
I looked at gSoap but because of its GPL license we cannot use it in commercial software. Although a commercial license for gSoap exists, I further looked into the .NET classes and since they are free (but tied to the Windows platform which isn't a problem for us) .NET looks the way to go.
So far I made a successful small .NET .exe SOAP server, and I'm looking further into embedding SOAP logic in our server applications that way.
Thanks anyway for your information.
Enjoy life, this is not a rehearsal !!!
|
|
|
|
|
Mark mentioned that I should use the XPathDocument rather than the XmlDocument in my code since I was not writing out XML.
Ordinarily I would agree but in this case I am loading an XML file into an XmlDocument and then re-using that same XmlDocument for another purpose. Would creating another XPathDocument to handle the second use of XmlDocument be better? ta
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan quoted:
"...that would require my explaining Einstein's Fear of Relatives"
Crikey! ain't life grand?
XmlTransformer, my latest CP article.
|
|
|
|
|
hi
i am new to .net framework and i want to know if there is any site for .net components like the sites for delphi and bcb vcl components(like torry.net)
thanks
|
|
|
|
|
Hello!
Has anybody used any kind of rebains with .NET and C#?
I've got hundreds of dll's and all have the same base address. I tried with rebase, but I think I'm not using it in the proper way. Any help?
Thanks,
Ivan.
Iván Fernández
|
|
|
|
|
See the NGen Overview. You can also "rebase" during compilation by using the /baseaddress compiler option or set it in the VS.NET project settings, or use the rebase tool.
The dox for rebase are here.
Ian Mariano - Bliki | Blog
"We are all wave equations in the information matrix of the universe" - me
|
|
|
|
|
Hello
I'm porting a Service administrator application written in C++ 6 to .Net C#.
This application install, uninstall, start, stop ... services written in .NET C#.
Everything is ok when installing a service.
My problem is on trying to start a service from my application or from the OS service agent, I get a error saying "Acces is denied".
When I use my old C++ 6 application I can install and start the same service without any problem.
Am I missing any security settings or have you any idea ?
Following a piece of the code I'm using:
[Flags]
public enum ServiceControlAccessRights : int
{
StandardRightsRequired = 0xf0000,
Connect = 0x00001,
CreateService = 0x00002,
EnumerateService = 0x00004,
Lock = 0x00008,
QueryLockStatus = 0x00010,
ModifyBootConfig = 0x00020,
AllAccess = 0xf003F
}
[Flags]
public enum ServiceControlType
{
OwnProcess = 0x010,
ShareProcess = 0x020,
KernelDriver = 0x001,
FileSystemDriver = 0x002,
InteractiveProcess = 0x100
}
[Flags]
public enum ServiceStartType
{
BootStart = 0x00,
SystemStart = 0x01,
AutoStart = 0x02,
DemandStart = 0x03,
Disabled = 0x04
}
[Flags]
public enum ServiceErrorType
{
ErrorIgnore = 0x00,
ErrorNormal = 0x01,
ErrorSevere = 0x02,
ErrorCritical = 0x03
}
[Flags]
public enum ServiceSpecificAccessType
{
QueryConfig = 0x0001,
ChangeConfig = 0x0002,
QueryStatus = 0x0004,
EnumerateDependents = 0x0008,
Start = 0x0010,
Stop = 0x0020,
PausContinue = 0x0040,
Interrogate = 0x0080,
UserDefinedControl = 0x0100,
AllAccess = 0xf01FF
}
#region DLLImport
[DllImport( "kernel32.dll", EntryPoint = "GetLastError" )]
public static extern int GetLastError();
[DllImport( "advapi32.dll", EntryPoint = "OpenSCManager" )]
public static extern int OpenSCManager( string machineName, string databaseName, ServiceControlAccessRights desiredAccess );
[DllImport( "advapi32.dll", EntryPoint = "CloseServiceHandle" )]
public static extern bool CloseServiceHandle( int hSCObject );
[DllImport( "advapi32.dll", EntryPoint = "CreateService" )]
public static extern int CreateService( int hSCManager, string serviceName, string displayName,
ServiceControlAccessRights desiredAccess, ServiceControlType serviceType, ServiceStartType startType, ServiceErrorType errorControl, string pathName,
string loadOrderGroup, string tagId, string dependencies, string serviceStartName, string password );
[DllImport( "advapi32.dll", EntryPoint = "OpenService" )]
public static extern int OpenService( int hSCManager, string serviceName, ServiceControlAccessRights desiredAccess );
[DllImport( "advapi32.dll", EntryPoint = "LockServiceDatabase" )]
public static extern int LockServiceDatabase( int handle );
[DllImport( "advapi32.dll", EntryPoint = "UnlockServiceDatabase" )]
public static extern bool UnlockServiceDatabase( int handle );
[DllImport( "advapi32.dll", EntryPoint = "ChangeServiceConfig" )]
public static extern bool ChangeServiceConfig( int hService,
ServiceControlType dwServiceType, int dwStartType, int dwErrorControl,
string lpBinaryPathName, string lpLoadOrderGroup, IntPtr lpdwTagId,
string lpDependencies, string lpServiceStartName, string lpPassword,
string lpDisplayName );
#endregion DLLImport
public bool InstallService( string svcPath, string svcName, string svcDispName )
{
try
{
int hScm = OpenSCManager( null, null, ServiceControlAccessRights.AllAccess );
if( hScm == 0 )
return false;
int hSvc = CreateService( hScm, svcName, svcDispName,
ServiceControlAccessRights.StandardRightsRequired |
ServiceControlAccessRights.CreateService |
ServiceControlAccessRights.ModifyBootConfig,
ServiceControlType.OwnProcess | ServiceControlType.InteractiveProcess,
ServiceStartType.DemandStart,
ServiceErrorType.ErrorNormal,
svcPath,
null, null, null, "LocalSystem", null );
if( hSvc == 0 )
{
int err = GetLastError();
CloseServiceHandle( hSvc );
CloseServiceHandle( hScm );
return false;
}
else
{
CloseServiceHandle( hSvc );
CloseServiceHandle( hScm );
return true;
}
}
catch( Exception e )
{
throw e;
}
}
Thanks
|
|
|
|
|
Hi,
Can we use .NET assemblies in ATL?
Regards
Tarun
Blue Pill or Red Pill........??
|
|
|
|
|
|
Hi,
How do I set background color for status bar?
Direct property not available.
Thankx
Priya
|
|
|
|
|
I don't believe you can. This is from docs (bolding is mine)...
The ProgressBar control displays a bar that fills in from left to right with the system highlight color as an operation progresses.
Jeff Martin
Triple20 Software
|
|
|
|
|
I know this question has been asked many times and althought I have browsed through several message boards, I can see the question but not the answers.
Because of that, I tried to figure out which method or methods the datagrid has to paint the column headers. Using reflection I found out that there are two methods: PaintColumnHeaders and PaintColumnHeaderText.
However, this methods are private and can't be overridden or hidden.
I can't understand why they made these methods private but anyway, does anyone know how to go around this?
also, there is a private method that returns the header rectangle. I was able using the MethodInfo.Invoke method to get this object but I can't do anything with it.
I am just learning to use the Reflection namespace I haven't figured out how to deal with this, any ideas?
|
|
|
|
|
Hi All,
I want to access a web service(methods) from java at runtime.
what are the ways for doing this?
Any Links to some articles on this would be appreciated
Thanks and Regards
Tushar mahajan.
|
|
|
|
|
Tushar mahajan wrote:
from java
Ummmm... You do realise that this is a .NET Framework forum, don't you? You might find your answer if you post your question to a Java related forum.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event
|
|
|
|
|
|
Can someone direct me to step by step directions on how-to setup my computer (.Net 2002. W2K)so I can begin playing with web applications. I have IIS installed & running along with all the .NET options from the setup. I create a simple asp.net application. I add just a label. When I try to run it (f5) it complains about the debugger. If I start without debugging, I just get unformatted text. I must have the setup messed up.
|
|
|
|
|