|
Hi All,
I want to transfer the data form webpage to any other own application which is running in backend.How i develop this web page. which technology is good for this or any particular protocol i have to use for this. Please suggest if any idea regarding data transfer.
Thanks
Shiva Vrata Anand
shiva vrata
|
|
|
|
|
Hi All,
I want to transfer the data form webpage to any other own application which is running in backend.How i develop this web page. which technology is good for this or any particular protocol i have to use for this. Please suggest if any idea regarding data transfer.
gfds
|
|
|
|
|
I would like to know how to create a setup project, which can be upgraded (Repair Option).
Is it one of the project properties?
Thanks.
|
|
|
|
|
Upgrade and repair are different things. Repair is intended to restore files and settings that have been modified or deleted since the program was installed. It's a fundamental capability of Windows Installer. Shortcuts created by Windows Installer will invoke a repair automatically by default, if the need for a repair is detected.
There are really three sorts of upgrades for a Windows Installer package: major upgrades, minor upgrades, and patches. Visual Studio doesn't really make it easy to do either minor upgrades or patches. It's simplest to just do a major upgrade, which is effectively installing a new version, but including logic that will remove the old version first. To do this, set the RemovePreviousVersions property to True. Every time you change the package, change the Version property. Windows Installer will then automatically remove any version that has a version number lower than the package being installed. If you leave the DetectNewerInstalledVersion property set to True (the default), Windows Installer will produce an error message if you try to install an older version on a system with a newer version.
If you want old and new versions to co-exist side-by-side and be installed in any order, change the UpgradeCode when creating a new version that will sit side-by-side.
For more information get the book "The Definitive Guide to Windows Installer" by Phil Wilson (Apress, 2004). This has helped me a lot in understanding what the package is really doing.
|
|
|
|
|
I would like to thank you for your helpful explanation.
I tried all the properties and learn a lot from your detailed answer.
If it is possible, I would like to ask you more specific question, as I see that you are very professional at this area.
What I need for my project is maybe a patch or a minor upgrade:
After installing once the program, changes are done and new build is ready, and I want to install it again on the same directory, without any questions from the user (the installer). If old files are there, they should be left and if there are new files, they should be installed. It is like the repair option but with new rebuild of the program and the setup project (all the projects of the program are at the same solution including the setup project).
Can I do it or it is not possible at the Setup project of the .NET environment?
Thanks a lot,
Reli.
|
|
|
|
|
Hi All,
How to hook file handling routines in windows using .Net..I have to hook a file
Open routine through an application in .Net...i.e i should call my dll defare the call goes to the windows procedure ..Any sample codes/ideas are appreciated.
Luck is Opportunity with hardwork
|
|
|
|
|
There's no such thing in Managed code. This requires Black Belt level knowledge of NTFS and a specially written shim that sits on top of the NT kernel to intercept the call. I don't know of any examples, short of FileMon from SysInternals. They DON'T supply the source code for the NT driver that's required to do this.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks for the reply and yes! it is a sort of FileMon from SysInternals..
Luck is Opportunity with hardwork
|
|
|
|
|
If you're trying to hook one application then you could do API hooking on the CreateFile, ReadFile, WriteFile APIs. This is a task that really needs to be done in C++. See here[^] for an example.
Otherwise you'll be writing a File System Filter Driver which runs in kernel mode, and for that you'll basically need to write in C. You'll need the Driver Development Kit[^] (I think - file system filters might be an advanced driver type only permitted in the Installable File System Kit[^]). Don't do this unless absolutely necessary - unstable applications merely crash the application, but unstable drivers crash the system. Kernel mode is very very hard, and you should at least read Windows Internals, Fourth Edition[^] by Mark Russinovich and David Solomon before starting.
|
|
|
|
|
Hi everyone,
I am developing a web service that references a dll. I've made the dll with some settings in the app.config file (the db connectionstring for example) I've also set those settings with GenerateDefaultValueInCode to false.
When I build the dll, it creates the .dll.config file correctly, but it looks like it doesn't use it. If I call the dll from the web service, the settings are all set to Nothing.
It looks like that with exe projects, you can put the settings in the .exe.config file, but in the case of a web service? I've tried to put the settings in the web.config but it looks like it doesn't work (maybe I did it bad)
Thanks in advance
|
|
|
|
|
.DLL's can't have their own config files, even though one was built. Any configuration settings must reside in the config file of the application using the .DLL.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Ok, is nice to know it So I have to put the settings in the web.config file? In which section of the file should I put the settings? I put them in the appsettings but it didn't seem to work. Thanks again
|
|
|
|
|
I don't know off the top of my head. I've never written a .DLL or data access layer that required it's own config file. I've always had the application pass the connection string to the data layer when it was required.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
You can put the settings in the exe.config file for the hosting exe. section names etc. stay the same, just the file name changes.
|
|
|
|
|
Hello,
I use System.Diagnostics.Process class to launch execuatbles. These executables are console applications and do not have user interface. I need to know if the processes I launched are busy doing some work or dead/stuck. I am not sure how to check that.
Any input on this would be appreciated.
Thanks,
Vidhya
V
|
|
|
|
|
How to test/monitor an application should be part of your design. When writing an application, consider using one of the following approaches:
1) Make your process write some status to a Console window
2) Make your process log some data to a logging DB
3) Add a little IPC interface to your program. Write a test harness to communicate with it.
4) Etc.
End-user tools like Task Manager/System Monitor are not accurate enough at this.
Best,
Jun
|
|
|
|
|
|
Hi chaps -
I have been experiencing all kinds of problems formatting a date to a string for storage or sending over a url etc. Now when using SOAP it generates this funky looking date time string:
'2006-09-01T16:15:43.359375+01:00'
What i want to know is - how do i generate this in my code, rather than relying on Date.Tostring("format") which invariably dies when it hits different cultures.
Cheers
T
|
|
|
|
|
The format you are seeing is the ISO 8601 standard format for date/time values. You should be able to generate this format by using the following format string for the DateTime.ToString() method:
DateTime.ToString("s", DateTimeFormatInfo.InvariantInfo)
This will give a string that looks like:
2000-08-17T16:32:32
It doesn't have the time zone information, but you can add that by using the System.TimeZone[^] class.
This shouldn't cause any problems when dealing with different cultures.
|
|
|
|
|
A bad habit of mine is to always re-invent the wheel, I just like figuring stuff out for myself and I'm sure that's the case with many programmers.
Right now, I don't have time to waste though....
Can anyone help me out with a quick algorithm (or article) for populating a TreeView in .Net?
you can't forget something you never knew...
"Watching Migthy Joe Young made me hate my life..................................I want a gorilla!" A. Havemann
|
|
|
|
|
Depends what info you are populating it with. It could be as simple as binding it to a XML file.
only two letters away from being an asset
|
|
|
|
|
Populating it from a database using a SQLDataReader
you can't forget something you never knew...
"Watching Migthy Joe Young made me hate my life..................................I want a gorilla!" A. Havemann
|
|
|
|
|
Hi Folks! I am using a class that puts data into excel worksheet and do formatting etc. Every thing is fine but i am not able to close the excel app when i exit the program. I'm saving the workbooks, using .quit() and ReleaseComObject(obj) functions but to no help.
Please help me.
Aman Tur
modified 9-Jul-22 21:01pm.
|
|
|
|
|
Do you have a referance to the application? The following is How I do it in C#. VB should be simular.
Excel.ApplicationClass EApp = new Excel.ApplicationClass();<br />
Excel.Workbook EWrk;<br />
EApp.Workbooks._Open(FilePath, Type.Missing, Type.Missing, Type.Missing,Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);<br />
...<br />
EApp.Quit();<br />
EApp = null;<br />
EWrk = null;
Hope this helps.
ARon
|
|
|
|
|
Thanks ARon i am putting EApp = null already let me try EWrk also.
modified 9-Jul-22 21:01pm.
|
|
|
|