|
I have long had this question floating around my mind since I first started web developing 6 years ago. What user permission applies to the viewer of a website and what user permission applies to the application such as .net or php running on the website? The reason I am confused is that when a user visits a website the application such as IIS or Apache serves them a page so that application would be the one the file permissions would apply to I imagine. When a user of a website submits data in a form then the data is handled by .net or PHP so logically the parser would be the one that the file permissions applied to unless every viewer of a website has the full permissions of the web server application. The reason I ask this is because when you set a file in a directory to something like chmod 644 then I want to know can a hacker exploiting a submission field get the 'group,' the 'everyone' permission or does his code apply to whatever rights the server itself has? Most importantly if I set a file to 777 on a webserver then how can any user looking at the site through a web page write to that file unless they are counting as .net when they view the web page and use form submissions. I have had a web page hacked when someone managed to re-write a configuration file even though it was set to 644 and there was very little amount of form submissions on the web site.
Thanks for any input. This is not entirely a .net question, but I just think this community is very bright.
Nick
|
|
|
|
|
I have a .net class library which is having Installer.cs that I am trying to configure as a custom action in my build script.
<binaries>
<binary name="EXTDLL" value="${output.dir}LVLTExtensions.dll" />
</binaries>
<customactions>
<customaction action="CA_EXT" type="1" source="EXTDLL" target="Install" />
</customactions>
<sequences>
<sequence type="installexecute" action="CA_EXT" value="-1" condition="Not Installed"/>
</sequences>
I want to call Installer.cs methods on customaction, but when I give target as method name on Installer.cs...I am getting error message on MSI execution{ERROR: DLL required for this install to complete could not be run. Contact your support personnel or package vendor. }
Please help me on this
|
|
|
|
|
May Preview of the Visual Studio 2010 and .NET Framework 4 Training Kit has been released. The kit includes source code, demos, and presentations. The kit includes walkthrough of important .NET Framework 4.0 technologies.
You can get the Training Kit for Beta 1 here[^].
You can get beta 1 of Visual Studio 2010 and .NET Framework here[^].
|
|
|
|
|
hello friends,
i am creating an application for an online local clinic management software where i want their registered patients to upload their ct or other medical images so that the doctor may visit their profiles online and see their reports.
since the medical images have a dcm format that stands for dicom(digital imaging and communication in medicine). since the software that i have to view these files is a desktop application, i want to create an api for the same that can be called on my application and the images be viewed online.
please suggest how do i create this api for the software, those of you who want to see what the software looks like may search for "DicomWorks" on Google.
thanks in advance.
|
|
|
|
|
You'll need a library to do the conversion to a non-lossy format, not an external app. If you use send a lossy-compressed (aka JPG) image, it'll introduce artifacts into the image that can be misinterpreted by the doctors.
|
|
|
|
|
How can I make a treeview with some nodes have checkbox and some not? please help
|
|
|
|
|
you can start by not posting the same question you did yesterday. There is no built in functionality for that. In my opinion you have two options...
1. tag each node with a value to state if it should have check box. Then handle the drawing for the treeview nodes and draw you own check box based on your tag value and the checked value of the node. This will however only show a check box, you will then need to handle the mouse click for a treenode and do something to change the value.
2. Create you own controls, either form scratch or inherit from existing ones. Then you can add any extra functionality you want.
Both options are not straight forward and I suspect you will be reluctant to attempt either but they are my suggestions, you can make the choice.
END OF CONVERSATION
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hi,
I have been using c# in vs 2008 (3.5) with sp1.
Restarted the machine and now I see I have lost the intellisense in the projects i.e. forms, classes..
If I try to create new projects, I get this error:
Project 'projectName' could not be opened because the Microsoft visual c# 2008 compiler could not be created. QueryService for '{74946829-37AO-11D2-A273-OOCO4F8EF4FF}' failed.
What do I do to get the intellisense back and also fix the above error please??
Thanks
|
|
|
|
|
Sounds like you need to do an uninstall then - and this still isn't the right forum. There is a Visual Studio forum you know.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Please point me to the visual studio forum as I do not find it.
|
|
|
|
|
|
arkiboys wrote: Please point me to the visual studio forum as I do not find it
That is poor
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
to his defense, in the forums list Visual Studio is in the "General Discussions" group and not in the "General Programming" group.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
ahhh... the trickery of the scroll bar has claimed yet another victim
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
|
Hi,
I wrote a C# program which takes photos from "Nikon digital camera" using WIA. Now I want to write a generalised program which can work on different PTP compatible cameras.I notoced that Nikon creates a folder like "0000\\Root\\DSCN",
Fuji creates a folder like "0000\\Root\\DSCF", Sony creates a folder like "0000\\Root\\DSCS".
I want to know is there any way in C#, I can find out what kind of folder will be created when the camera is connected.
public Device wiaDevice;
I have proper events registered.
foreach (IDeviceInfo deviceInfo in wiaDeviceManager.DeviceInfos)
{wiaDevice = deviceInfo.Connect();}
private Item pictureTaken;
pictureTaken = wiaDevice.ExecuteCommand(CommandID.wiaCommandTakePicture);
string name = pictureTaken.ItemID;
The string "name" is the pictureFile created by Camera.
I know wiaDevice object has some properties. I don't know how to iterate thro' those properties. Is there any wiaDevice property which decides the name of pictureFile created.
Any help will be greatly appreciated.
Thanks,
veena
|
|
|
|
|
I am working on a program that will be distributed on a USB stick (thumbdrive, flashdrive, whatever they're called these days). It's a critical application and must be up and running within 2 minutes of putting the drive in the machine. Unfortunately, the 2 minute requirement didn't get to me until late (yeah, I know.... but let's talk about the programming, not the project management ).
I timed the installation of .NET 2.0 in a virtual machine today and it took about 8-10 minutes for it to install. My client's not gonna go for that. So I'm wondering if I can just copy all the DLLs that are referenced in my program to the ouput location and distribute those with the application?
If not, is there some way I can build a .NET installer that installs only the stuff I've actually used? I was watching the .NET installation and there's a lot of stuff in there that I just don't use in my program.
Any hints you can give would be greatly appreciated.
Denise "Hypermommy" Duggan
|
|
|
|
|
Can't be done at an affordable price.
Tell your customer for fast launch Vista/Win7 is required, it comes with .NET preinstalled.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I don't think it can be done. Even if you copy all the registry settings and files and manage to register it all in a new machine in a small time, you still risk having something which won't work properly, and the cost of keeping this "custom installer" updated would be big.
The best way to get that result is not using .NET (or any similar framework), so you can build a standalone executable and have it up and running in seconds.
However, since I guess your app is already developed and it would be too expensive to re-build it from scratch, the other options might be using a virtual machine. You can set up a virtual machine with the operating system, .NET and your app installed and configured. But still you would have to install vmware - unless you demand it to be installed on all machines before you setup your app.
But in this case, you can simply demand that .NET is installed prior to using your app, it shouldn't be too much of a problem. I think this is the best way to solve your problem without dropping .NET.
Good luck.
2+2=5 for very large amounts of 2
(always loved that one hehe!)
|
|
|
|
|
Thanks both of you... unfortunately the problem isn't American computers. I'm guessing most of them will probably already have the framework installed. But if someone's in another country and needs to use this I don't know how prevalent .net is elsewhere.
Yeah, now that I'm thinking about it I probably shoudl have used something else. But I'm not even sure I'd know where to begin. This is the only hammer I have right now so everything does look like a nail. For my future learning, what other language would you use for this type of thing?
Denise "Hypermommy" Duggan
|
|
|
|
|
C++ sure does the trick.
Delphi is probably the best choice for stepping down from .NET since it offers a great visual designer and a fat library of objects and functions, but now its future is not that sure anymore, so I don't know if I would bet on it for a project you'll have to maintain in the next few years.
As for how prevalent .NET is in other countries, I can only speak for Italy, and it's definitely prevalent here.
2+2=5 for very large amounts of 2
(always loved that one hehe!)
|
|
|
|
|
IMO if one can get hold of a recent Windows PC, one can install .NET, no matter where.
And I would not consider for a moment developing for Windows without .NET; Microsoft has taken a long time to come up with a decent framework, I am not going to ignore it for the cause of some fraction of the market not having it installed yet.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I understand what you're saying and for the most part I'd agree with you. I can't really imagine how difficult it must have been to come up with some of these things pre-.NET. The problem here is that the 10-15 minutes it takes to install .NET 2.0 is just too long. I can't really say why because of an NDA but it really does have to be as fast as it possibly can.
Denise "Hypermommy" Duggan
|
|
|
|
|
The NDA raises the threshold for affordability which I mentioned in my first reply.
Now have a look at Xenocode as Pete suggested, it has been mentioned often in these forums, although I don't recall anyone actually using it.
Don't forget to buy a huge USB stick.
FWIW: the specs being late, was the NDA in time?
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Sorry I missed this the first time. LOL re the specs and the NDA and the timing.
Yeah, I sure wish I'd known this to start with. But I guess you learn what questions to ask as you go.
I'll give xenocode a look-see. Thanks!
Denise "Hypermommy" Duggan
|
|
|
|