Bart De Smet's on-line blog (0x2B | ~0x2B, that's the question)
RSS is the abbreviation for many things. I personnally like Really Simple Syndication, but technically it stands close to RDF. I guess this is why you chose this description.
Bart, Managing file permissions is possible in v1.1 too without resorting to PInvoke. Whitbey will add this to the BCL, but as of today you can use the System.Management namespace classes that wraps WMI functionality to do that, on XP and higher it's also possible to use the DirectoryServices namespace classes to manage ACL's on Filesystem objects and AD objects. If you need a sample of both methods just drop me a mail.
Bart, Another point I forgot in my previous feedback is that the same namespaces can be used to create Fileshares Printershares etc. Here is a sample using the DirectoryServices with some COM interop with the activeds.dll. using System; using System.DirectoryServices; using System.Runtime.InteropServices; using activedsnet; class Tester { public static void Main() { // DirectoryEntry container = new DirectoryEntry("WinNT://yourcomputernamehere, computer", null, null, AuthenticationTypes.ServerBind); using (DirectoryEntry container = new DirectoryEntry("WinNT://scenic/LanmanServer", "administrator", "kevin", AuthenticationTypes.ServerBind)) { IADsContainer cont = container.NativeObject as IADsContainer; if (cont != null) { // Share the path as PublicDocs IADsFileShare FileShare = cont.Create("FileShare", "PublicDocs") as IADsFileShare; FileShare.Path = @"c:\pipo"; FileShare.Description = "MyPipo"; FileShare.MaxUserCount = 2; FileShare.SetInfo(); } } } } // K:\NetV1.1\Management>csc /r:activedsnet.dll fileshares.cs To run the sample you need to create a Interop Assembly by running tlbimp on the activeds.tlb (found in the system32 dir) fi . tlbimp c:\windows\system32\activeds.tlb out:activedsnet.dll will create a IA called activedsnet.dll containing a namespace activedsnet Adapt the path to your own needs, compile the program and run Success. Willy.
Héhé, nice to bring to attention. I'll take a look when I watch Koppen next week :)
Windows PE? Never heard of it. Can you give a link to some more info
Windows PE stands for Pre-installation Environment. It's a small Windows release of Windows XP which can run completely from a CD-ROM (compare it with running DOS from a diskette). I'm using this tool for my SchoolServer project at Microsoft Belux but unfortunately it's only available for volume license customers of Microsoft. However, there's a free alternative on http://www.nu2.nu/pebuilder/.
When will your article on SQL Server Notification Services be published? Will it be available in English? Sorry, I just have an email address - pjones0619@rogers.com
Nice vision, but right? Then, where would you place Windows 3.0 ^^ in your vision?
I agree there is some overlap between all those "versions". DOS still existed when Windows was built. The Windows technology will live further in the .NET timeframe. So, to answer your question: in my opinion all the pre-Windows 95 products can be placed in the DOS timeframe; it's just a graphicall shell on top of DOS, not a real OS itself (while Windows 95 was a stand-alone OS that contained a lot of DOS underneath the covers). It was (almost) all about clients or little networks. In the v2.0 timeframe the client-server model became more and more important, while today in v3.0 there's the new magic word of "services".
Hi Bart I played with generics and it's really cool, if your intresed check out my blog (http://weblogs.asp.net/jan/posts/40139.aspx, http://weblogs.asp.net/jan/posts/38949.aspx). Another great feature of .NET 2.0 is ObjectSpaces (in my opinion). I'm just getting started with it, but it looks very cool. cu Jan
One word: pathetic.
And a happy 2004 to you too Bart!
Is your application doing all of the low level calls to AD to perform your actions, or do you export those tasks to another execution engine? Perhaps you may want to think about the Microsoft Provisioning System to do the low level work for you. Take a look a the community site that I run: http://groups.msn.com/MSProvisioningSystem/ Feel free to send me an email to discuss further: conrada@microsoft.com Thanks, Conrad Agramont
Nice work Bart!
It seems to be fine... But i think there a problem. I had to work with shares in vb.net and i get an error the path in my shares is higher than 260 characters... In fact, i had to browse all the folders in my shares and for each files of my folders, i had to output to a file the ACE. Did you get such errors with the length of your path ? thx, troll
Just read your article about http handlers on ASP.NET. Great great work!
Oh, nice step you have on your new website ;-)
I've got it... Windows Preinstallation Environment (Windows PE) 1.2 Readme Document April 15, 2003
Informative. Inspiring. Thanks for all your hard work!
I am new to the internet and I am web surfing and I did a search in the search engines on "real estate company blog" and I found your web blog. I am a Halifax Real Estate Agent in Halifax, Nova Scotia, Canada and I heard blogs were specialized discussions on topics, thus my interest in searching for a real estate blog on the WWW. I just wanted to see how the rest of the world thinks and see what trends and technology are happening in the real estate market. I also am interested in a blog for myself, that is if I can understand the technology of operating a blog and from what I see I am somewhat hesitant right now even though it was interesting reading. Respectfully yours James B. , <a href="http://www.a-purfectdream-expression.com/jamesb.html">A Halifax Real Estate Agent</a>
Thank you for the RSS
XP Reloaded; I like that! btw: good to cu blogging again
Good luck with your demo Bart!
It all went perfect! Congratulations to the best team ever!
Or use the google toolbar - also *very* effective :) http://toolbar.google.com/
Hey Bart. Just wanted to say thanks for mentioning CassiniEx. I just posted a new version of CassiniEx v0.94.402. This is configured more like IIS, and you can also see a screen shot of the new Management Console I'm working on.
Check this out for a great WinPE replacement
Indeed, I know of this as well, but I'm involved in a project of Microsoft Belux where we need to deploy Windows PE itself. Thanks for the feedback!
Test
I get an error that the <cache> section is an unrecognized configuration section. Any ideas?
It should work if you're using the PDC build of ASP.NET version 2.0 (a.k.a. "Whidbey").
i also get "Unrecognized configuration section cache" when ASP.NET tries to parse web.config. we've got the Community Tech Preview installed here. Tried it on 2 machines, same error. Interestingly no error with the <connectionStrings/> node with i believe is a ASP.NET 2.0 feature.
XP SP2 RC1 issues http://dotnetjunkies.com/WebLog/stefandemetz/archive/2004/05/07/13102.aspx
@BartPE Nice Tools Bart !, I start to disassemble ERD Commander 2003 to a new OS Based on XP,2000 & 2003 called SatanOS, a Network, Cra**** & Disa******** related OS, the Idea Is to give people all over the world the might to hack what they want to...even chinese poeople a "not controlled" Net ! We are very surprised to find Barts Tools wich are very helpfull for the "little" Project. If anyone in this Blog have any Good Idea what we can embedd in Satan OS, you are welcome to post it here: -faz
Try using 'caching' instead of cache.
...Good Idea a VNC Client if course, where do I get satanOS ?
Care to share the ISO file (LH-4074)
Cheers...You're a life saver.
"Gacutil will definitely be your friend " Acutally I find the shell extension you mentioned to be much more convienent. Just open explorer to c:\windows\assembly, drag your dll into it, and you are done. Also can delete with it. Of course GACutil is scriptable...
It's secure because nothing works :D (everything is disabled by default) Well, they didn't make the same fault as with IIS5.0, and that's an improvement. Windows 2003 Web edition is the most secure web server ... of all IIS. Apache and others are more stable and secure though...
Hi Geert, Thanks for your comment and reading my blog. However, can you give us some arguments why Apache would be more secure and stable than IIS? :-) I've various reasons to say the same about IIS 6.0. Cheers, Bart
Just read this and I'm sure you'll make your own customized one. http://www.xppe.com/
IIS6 is a major step forward, but it's main problem is Windows :). My personal experience: i installed the Windows 2003 web edition, i brought a server to the data center and I connected to the Internet. After 1 minute, a famous virus (already forgot it's name, it was a virus targetting sql server servers) had infected the server (I didn't had the time to do windows update and install patches/updates - I can't do magic in 1 minute :) The virus was constantly rebooting the server, but gave me every time 30 seconds to do some stuff... So I clicked as hell to install the patch :D Talking about webservers, IIS6 could be as stable as Apache (which has proven itself over the years). Now it's up to IIS. Oh, and never let debugger users on your IIS, they can bring down your application pool...
Hi Geert, That's exactly why I have this post on my blog: http://community.bartdesmet.net/blogs/bart/archive/2004/05/07/262.aspx#FeedBack Cheers, Bart
I should have known this earlier ;) The command line is a vewwy powerful Windows tool :)
On the last security summit Jürgen van Dievel (?) talked about a SP which would be very strict about security, and he was sure it would give a lot of application problems (because the security will be véry thight). looking forward to it :-)
I think you mean Jurgen Van Duvel. Sounds that we were there both that day (but I was attending the developers track). The point is in fact that certain points will be disabled by default indeed (thing that have to do with DCOM etc). Furthermore there is of course the built-in firewall that will be enabled by default as well, therefore blocking all "crucial ports".
Yes, Jurgen Van Duvel (although I rather like Palm or Kriek). Blocking all crucial ports... sounds like helpdesk people will be going through hell shortly :-)
hmm sounds focking cool :-)
These are hard links, not symbolic links!
Wanneer komt de schoolserver uit? Ik kan echt niet meer wachten om ons netwerk eindelijk op schoolniveau te kunnen beheren... Kristof Boeckx ICT-Coördinator VTI Kontich kristof@defantasie.com English: When will the schoolserver be released? I can't wait to manage our schoolnetwork on a school-based level.
can someone post a link that works please
Solving the spam problem with Caller ID technology would be great. But according to experts, this technology has both strong points and weaknesses. It requires mail servers to download the entire content of spam messages, then it only checks for it for the sender IP address before rejecting them. The Microsoft Outlook 2003 spam filter wasn’t good enough for me too, so I installed a plug-in for Outlook - <a href="http://www.spambully.com/">Spambully</a>. It’s a Bayesian spam filter and works almost perfect for me.
Solving the spam problem with Caller ID technology would be great. But according to experts, this technology has both strong points and weaknesses. It requires mail servers to download the entire content of spam messages, then it only checks for it for the sender IP address before rejecting them. The Microsoft Outlook 2003 spam filter wasn’t good enough for me too, so I installed a plug-in for Outlook - Spambully (http://www.spambully.com). It’s a Bayesian spam filter and works almost perfect for me.
Yep, that was me speaking on that event ;) Microsoft is trying to find the right balance currently between tight security by default and not breaking (too) many end user experiences / functionality. However this does not mean that there won't be any issues. As I stressed over the last couple of months: test Windows XP SP-2 as soon as possible. That is the only way to make sure you're not in for a big surprise ;) http://www.microsoft.com/windowsxp/sp2/default.mspx
sd
Hello Bart, my comment on: "...learned to know some nice guys." It's time to look for a nice girl now you're in 'Holland'. ;-) Have fun and enjoy the 'holidays'. Koen D'Haese aka K#
THANK YOU!!!
for Italian fans i've find one, the best site with all arguments is http:www.pda-phones.net they have also some links where to buy the other Qtek, 8080 that is smaller, is not big like a pda but is like a normal phone, the same windows ce but smaller
for me it's ok here i've founded more instruction in italian
excuse me for the error i made, i repost the link here http://www.pda-phones.net
Bart, can you post detailed informations about what is said about VSMT during Wednesday? Thanks
Thx for your example, can you please provide me the different documents. Because I don't understand everything. Thank you
Take a look at http://bink.nu/DesktopModules/ArticleDetail.aspx?ArticleID=2103 for more information (a post of fellow-MVP "Bink").
I posted that informations from myself on my blog. I wanted to have some more informations not published till now about what you asked and what Microsoft answered at Q&A session time. Thanks
I installed the VBExpress but finally after the download and install/setup no icons are displayed.. it looks like it is completely vanished from my machine. Tried this on 2 different machine and both had the exact same outcome. Anything special that needs to be done after installation?
do you know how to setup a ISA server 2004 with Exchange 2003 using RPC over HTTPS? Love to hear more. THanks, Mike
I'm not really an ISA expert, that is, I know how to setup the server and how to do the basic configuration and I'm currently investigating the SDK to develop solutions based on ISA 2004. However, I don't know all kinds of scenarios. I know there is a kind of task in ISA 2004 to publish an Exchange 2003 server with OWA, POP3, IMAP4, etc and I think you can publish RPC for Exchange 2003 that way as well. For more information, you can take a look at www.isaserver.org which is a 3rd party (community) site that focuses on ISA Server 2000 and ISA Server 2004. If you don't find the answer, post your question on the forums over there. Cheers, Bart
Regarding "bugs" - no, not on your machine only - I too get the "The service principal name for the VMRC server..." issue as well, and I cannot connect to my Virtual Servers :( Did you get any joy sorting this out?
how do i get this fantastic longhorn file and program
THANK YOU!1!!!!
How do you sign up to MSDN, I can find my .NET passport ID but it's to big. GreetZ Barto!!!
Welcome back to your blog ;) I´ve missed you..
I've been off for a short holiday.
Hey Bart, "Onderkast" is a valid dutch word and means exactly the same as the word "lowercase" in English. So there's nothing wrong with that translation... See http://www.vandale.be/opzoeken/woordenboek/?zoekwoord=onderkast
mailMSG.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserver"] = txServidor.Text; mailMSG.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"] = 0; mailMSG.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"] = 2; Msg.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25; Msg.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "username"; Msg.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password";
Is there anybody do this work in C++?
Take note that in W2k AD you need to extend the AD schema first, for W2k3, the extended fields are already there. Cheers.
Nice, read the complete series and discovered some interesting things!
aaaa
good
as i remember the aspnet_setreg tool can only be used for pre-defined sections so encrypting the dsn key in the appSettings want work if i'm correct the only sections you can use it for are <identity userName= password= /> <processModel userName= password= /> <sessionState stateConnectionString= sqlConnectionString= /> so basically you can not use if for the appSettings please correct me if i'm wrong over here!!
Indeed, this is right and (since my post was done rather late that day) it might not be completely clear in my initial post. The sections you mention are the only ones which are supported (although this will change towards the Whidbey release of ASP.NET). For storing secrets in <appSettings> in an encrypted way, use DPAPI as well (as ASP.NET is doing itself using aspnet_setreg). More information can be found on http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT08.asp.
nice! I would have never thought of that!
Hi. I'm just learning but, when I run this line: tlbimp c:\windows\system32\activeds.tlb out:activedsnet.dll it gives me activeds.dll not activedsnet.dll as you have indicated here. What am I doing wrong> Thanks. HardwareGuy
Have a look at this mate: http://www.tkachenko.com/blog/archives/000024.html it's quite easy and really cool stuff!
I too get that service principal name error. What the he!! is that about?! I found this forum purely because I am trying to find someone who has fixed this issue. Help!
What if the shutdown -a will not execute on a windows 2000 machine
Nice post! Keep up the good work.
Just to illustrate how popular the question is actually. The next question I was answering was basically the same (but now for PDF file protection) :-): http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=692594#692617
According to the 2.0 guided tour, you need not do the web.config work for Yukon: http://beta.asp.net/GuidedTour/s24.aspx Yukon doesn't do table-level locking, it detects changes at the row-level. (However, I still can't get it to work!) Cheers, Dave
shouldn't the result of type text.cpy be Hello for true symbolic linking ?
oops sorry, didn't read far enough :)
but (as already stated) this is not a symbolic link at all! try to do this: echo joker>joker.txt fsutil hardlink create hoho.txt joker.txt del joker.txt type hoho.txt still works.. wheras in unix a file not found alike message would occur..
Omg.. I hope the names will be confgurable..
<a href=http://cast-video-divx.da.ru>video divx</a>
Do you know if there is a way to somehow scan a non-sparse file for zero data, set the file sparse, and then flag those ranges in the sparse file? In other words, would it be possible to "convert" a non-sparse file to a sparse one automatically?
Bart! Please say it ain't so! Power User is *not* running with least privilege! It's sometimes called admin-lite because it has most of the dangerous privileges that the Administrators group has. You're not protecting yourself from anything by running as a Power User.
Indeed Don, thanks for the correction. In fact I have two accounts, one power user (non-admin) for installation tasks etc and a normal developer user account but I was a little confused since I just finished my Active Directory setup. That time, I was still running under the context of my 'install' account (which is a Power User) since normal users don't have the right to reboot/shut down the machine by default (W2K3 in a domain setup). Now, my normal user account has the right to shut down the machine and now I'm indeed running as a normal user on the system. Thx for the remark; I've added some little remark in the initial post, pointing to this comment.
System Event Log keyed me to the answer of this one: The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID {DA3111BC-1BD7-4884-A535-8470D36028F7} to the user... This security permission can be modified using the Component Services administrative tool. Opened up the properties for the Virtual Server component and noticed the Everyone was on the Deny list for COM+ Activation in the Security properties. I added the user I'm hitting the page as with Local Activation permissions and all is well. Good luck J & C, sorry to hijack yer comments B#.
dfdfdfdfd
fghfg
I'm considering ISA 2004 as a firewall/IDS for our LAN, which includes an Exchange 2003 server. Any addtional comments on ISA 2004 would be welcome, particularly about its intrusion detection/prevention features. Thanks in advance.
Monad links http://dotnetjunkies.com/WebLog/stefandemetz/archive/2004/04/20/11794.aspx
am getting the following error in web.config where the connection string is read from the registry. Format of the initialization string does not conform to specification starting at index 0 Could you please let me know what the problem is
Would be nice if it wouldn't be restricted to MVP's only...
i wont dowanlod winpe
The Satanic Boot CD is done: Check this out and tell me what do think about it ! @ eval thx for the link, but... If anyone know how to publish without getting trouble Anybody with P2P server out there, please contact me <a href="http://s4t4n.s4.funpic.de/Shots01.htm"><font color="#75CA02">Screenshots</font></a></font></p>
sry bad link please take the new one: http://s4t4n.s4.funpic.de/
wer macht for me ne xp pe CD..bezahl auch was..! galeb@online.hr
The FileSystemWatcher also isn't that accurate: if you create a lot of files in a short time, the filesystemwatcher will skip some (I believe because of a in-memory buffer which is too small).
good thinking :-)
Hi Geert, Thanks for your feedback. The remark about the accuracy of the FileSystemWatcher is true indeed. This has to do with the underlying Win32 API (*ChangeNotification functions; ReadDirectoryChangesW) being called by the framework and the use of an internal buffer with a default size of 4K (which can hold about 70-80 changes). Each event takes a series of bytes (16 to start with and additional ones for the Unicode-formatted filename). It's possible to modify the buffer size (with caution!) using the InternalBufferSize property. Since the contents of the buffer are non-paged in memory, you should avoid doing this as much as possible (swapping to disk will be denied) since this can imply a performance drop.
Hello sir, i am really get confused that what is ASP.NET v2.0 - About Whidbey ? is it New version of ASP.Net of Microsoft or It is different from Microsoft. so why its Whidbey.. Thanks Shreekant
request to lh 4074 link Please send me link Abhijit_khatate@yahoo.co.in
generall it is used in the application of linking between one system to another but specially in the case of some web application.xml is the very good example of this thing.
When I upgraded my Dell hard drive, I didn't even look to see if it had a different connector. When I went to replace the hard drive I was a little worried, but then realized that there was a small detachable connector on the Dell hard drive that I just took off from the Dell hard drive and voila, it worked fine. Could yours have the same detachable connector?
Just use safe coding practices and do not (exclusively) rely on the returned file name. For example: for files that are created, check all file names to find the new files. Maybe less performant, but very lickely to be more accurate.
No he won't. Ever seen an ass looking at .NET sites?
They also could use the .WaitAny() or WaitAll() methods to tackle the 'non-deterministic' behaviour...
I get the same error Format of the initialization string does not conform to specification starting at index 0 Any joy?
I'm having trouble actually creating the BMP file. I'm a professional graphic designer, so it's not for lack of ability : ) It's the technical spec for the image you outlined. On another site [http://www.sysinternals.com/ntw2k/info/bootini.shtml] the image requirements are listed as: "a 16-color (any 16 colors) 640x480 bitmap". The listed image sizes are different, also 4bit = 16 colours, where as 16bit = 32 million colours. I'm not sure which are the correct specs, but I'm going to try both. Thanks, S.
Hm, I love it too!!! (especially because I wrote an IIS6 web control panel using the old .NET 1.1 techniques...) Do you know of any samples or articles about this? If not, maybe a good idea for you to write something more in-depth (with sourcecode) about it! :-)
Not being funny, but wouldn't it be easier to add a shortcut to seach.msn.com to your links toolbar, rather than disabling google access completely from your machine? Alternatively, you could install MS Powertoys and then add msn as a search keyword (as well as gg for google). That way you can type "gg my test phrase" or "msn my test phrase" in your address bar and save even more time. If you fancy hacking around in the registry to do the same thing then take a look at:- http://support.microsoft.com/kb/198279/EN-US/ Your way is hardcore, I'll give you that ;-)
hi friend, it seems that i am in different site, oh no its the same site where I wanna go but no comments are appearing here related to the topic. May be I am wrong but friend got your site while searching blog in search engine and it is nice to say that i visited ur site in my friend's house who is layout controller of website's. He told me that this particular site contain reasnable layouts and good contents which is relevant to this site. Rarely we get this type of site. Really appreciates your blog page. Thnks.
Mmmmm, Reflection; I love it! Nice example! One year ago I did a POC project that was a framework for sort of plug-ins. We used a lot of custom attributes to "glue" everything together. cu Jan
testing
Hehe, you wrote "Force yourself to go to Google instead of MSN as follows" :-D Coincidence or not? :p
Thanks for sharing this example. For an application that I'm currently writing, I was looking for a way to accomplish this "plugin" functionality without spending a lot of development time (deadlines, you know...), and this is indeed an easy but nevertheless powerfull way.
Nice! I just tried it and it works like a charm. However, I don't like the fact that you have to click in the white rectangle (the activex control) first to establish the connection (and it looks bad too). It would be much prettier if the server's screen would be right there when showing the slide. Can't you use a Slide_Load event or something like that? I guess I could google, euhm, MSN for it, but maybe you can tell me? :)
You should upload your pictures of IT Forum 2004 to your MSN space! :-)
Did you already write some code using these new classes? Do you mind sharing it? (or maybe writing a new blog entry about it ;-))
Damn, thanx dotnetjunkie for the comment; of course I applied a change :-)
Bart, If you really feel that strong about it... submit the feedback to: https://www.windowsserverfeedback.com/ But I'd say you do not need to install it by default, unless you are setting up a new server. Or you are installing the SP in 'interactive mode'. I'd even launch it straight after the install, so the admin knows about it and can test it on the 'test SP1 deployment server'. If I'm not mistaken, this tool can be run against remote servers, and I believe that is how you would eventually run this on a production server, after doing a remote SP1 install. The reason for not doing the default install, I would assume, is because production servers (hosted in some datacenter) need to be up and running as soon as possible. Minimizing down-time and minimizing the risk of the SP breaking some apps/services on a production server. So just patching what is there and not adding to much new stuff. But then again, it has been ages since I installed a server on my own ;-)
Thanks for the comment Rudi. A series of comments were already sent to the website you mentioned (which should be pretty wellknown right now since we've been distributing light-bulb stressballs at IT Forum: "Share your ideas! WindowsServerFeedback.com"). I agree that the patching procedure for a production server is indeed more crucial than patching a desktop OS so downtime should be reduced as much as possible. The tool can run against remote machines indeed. So, basically, what I'm missing is the "notification" for the people that this new tool is indeed available since the Service Pack installation itself does not point people to this brand new (very useful) feature at all. Maybe the concept of a "Security Center" in W2K3 would make sense as well, maybe in the format of an MMC instead of a Configuration Panel plug-in (these comments will be submitted soon when I have a "feedback batch" ready).
a
Hi, How did you resolve this issue, cause I'm having the same problem. Also relay was open on this server I just turned it off. thanks Nadia
Check the ACL on the registry keys. You'll get this if it can't access the encrypted values.
I believe there is a workaround for the theme issue http://msdn.microsoft.com/Longhorn/understanding/pillars/avalon/avnov04ctp/default.aspx see section "What's Missing From This Release?" Shorty
Indeed, there is a workaround (adding a few lines for the theme), but for this experimental phase "net stop themes" is sufficient for me.
Correction concerning the <location> tag: <location path="/admin"> <authorization> <allow roles="admin" /> <deny users="*" /> </authorization> </location> should be <location path="/admin"> <system.web> <authorization> <allow roles="admin" /> <deny users="*" /> </authorization> </system.web> </location>
please send me a direct download link for windows longhorn 4074 i've been trying to get it since 4 month but i couldn't. So can someone help? Plz e-mail the link to my e-mail add: hasan.fakih@gmail.com
Be careful when using roles such as BUILTIN\Administrators. In localized versions of Windows, this name can be different (e.g. BUILTIN\Administradores or BUILTIN\Administrateurs). Make this configurable! use WindowsBuiltInRole enum.... dominick
hi, also consider using PasswordDeriveBytes - this takes a salt and a number of iterations to generate the hash... bye dominick
Thanks for the comment Dominick. I'll be blogging about these enums soon (as well as enhancements in the v2.0 space concerning ACLs, SIDs etc without direct Win32 calls), the pitfall was just some last thing I had in my mind for that particular (looooong) post. However, the major problem I came across some time ago was to make web.config <authorization> sections flexible enough to work with Administrators only access but still make it configurable. BUILTIN\Administrators is allowed in the <allow roles=""> tag, but that is fixed for a certain locale. SIDs don't work over there...
Hi I would really like to do this on our server, but a newbie with AD. How can I extend the ad in W2k?
please send me a direct download link for windows longhorn 4074. web_sailor@hotmail.com
This seems to be a very popular post on my blog. To make it clear: currently, there are only two technology preview releases (build 4051 aka PDC build and build 4074 aka WinHEC build) available. The latter one is available through MSDN Subscriptions. So, in order to get it you *must* be an MSDN subscriber (msdn.microsoft.com/subscriptions). A beta of Longhorn is likely expected somewhere this year, but dates are not officially announced yet.
On Windows Server 2003 you can just add the server to the "domain controller" role using the "Configure Your Server Wizard". Alternatively, you can run the dcpromo command using Start, Run which will guide you through the process of setting up Active Directory on your machine. Please note that the installation and configuration of DNS is also required (but this will be done automatically if not present already). But it's still important to be aware of the why and how of the DNS requirement.
I have nothing inthe "Deny" list, and this software was working on my system. The trial expired, I've installed a purchased copy, but same error no matter what. Tried changing the "Virtial Server", as well as the "VMRC components. Also, tried adding SERVICE. The service that the Virtual Server runs under in via "NT Authority" and the account name is not available to add within apps or the DCOM+ components. -- Rob --
Regarding my previous comments, here's the error: The service principal name for the VMRC server could not be registered. Automatic authentication will always use NTLM authentication. Error 0x8007200b - The attribute syntax specified to the directory service is invalid. The event ID 1029 doesn't exist anywhere. The user is "NT AUTHORITY\NETWORK SERVICE" which you can't add to anything. The service is running, but it isn't working, and it cannot be administered. I am running Windows XP SP2 with the latest available patches and updates. When I originally installed Virtual Server on XP with SP1, it was great. Then, installing SP2 broke it. I fixed the DCOM+ component, and then it worked again. For 180 days or so. I'm stuck!! -- Rob --
As a followup, I gave excessive permissions, and added SYSTEM, and then rebooted, and now my system is working. No errors. I just posted a message requesting the appropriate permission settings on the Microsoft forum for Virtual Server, and I'll post any helpful responses here. Thanks to Bart for letting me post this stuff! -- Rob "I" --
It's 2005 now, and still no C# 2.0
The C# 2.0 language specification is already complete for quite some time now, just like the compiler and the basic framework. The majority of the work is now focused on the tools, which you can except in mid-2005 together with the SQL Server 2005 product. I agree it takes time, but it's definitely worth the wait and quality, security are the primary focuses, not time schedules.
I would love to find a solution to this also I am having the same problem exept mine has become more sporatic. ant suggestions
You helped me out! Thanks. Same problem, but I was seeing it on Serialize, not Deserialize. Why? Because my Getter was causing the loop, not the setter. Yucky. The reason I had the set/get in the first place was to make the public property not serialize. I guess I'll have to find another way. :-)
Make sure you have a recepient policy for the domain you're trying to send mail on. Without it, your server thinks it's relaying for foreign domains.
This is really very cool. I was giving some demos to big audiences today, and I only wish I had have known about this keystroke sequence _before_ the demos. Live and learn though!
I'm curious if there is another approach to try..catch..finally for cleaning up SQL connections. From the blog entry.... try { //use conn } catch (SqlException ex) { //catch it; don't attempt to close over here } finally { conn.Close(); //or better, check connection state first using conn.State } I'm actually using a "using" block to ensure that the SQL Connection is always disposed of correctly.: try { using( SqlConnection con = new SqlConnection(...) { // do sql calls } } catch (SqlException ex) { //catch it; don't attempt to close over here }
Hi Boris, The using pattern (which I blogged about before) is definitely a good choice as well. You could actually discuss about the order of a try and using block however when used together. If you're really curious about this, I'd invite you to take a look at the IL-code being generated when you use the using pattern and try...catch pattern to see what's really happening behind the scenes. If I find some time, I'll post some info on that too.
Bart, Do you have more detailed code of rendering the file as Binary? We're having to use this protection scheme for files now, but I haven't had much experieince with ouputting to the binary stream in ASP.NET, and I've having a bear of a time getting this to wrok. Thanks, Dave
Last year I had the chance to work with BITS as an application building block. It has many advantages over implementing error tolerant downloading yourself. The downloading occurs in an NT service, which is great for multi-user machines. And it usually handles network faults well. But it does have some issues that can make it hard to use correctly. It supports authentication, but auth failures are treated as transient errors so BITS keeps trying until the error limit is reached. The user/pass should be verified before creating the job. The transient vs hard error states caused me some other problems that I don't fully recall. Note that after a hard error the job and downloaded data is lost. When downloading large sets of individual files you must decide to have 1 file per job or all files in 1. The files of a job are only available when the entire job completes. But 1 file per job also can be bad because creating a new job gets really slow as the number of existing jobs grows. I am talking about thousands of files here. The HTTP server must support partial download ranges. No problem, they all do, except for when ASP/PHP pages serve the files. Fortunately it is easy to implement the "Range" request header and "Content-Range" response header in your ASP page. See sections 14.35 and 14.16 of the spec (RFC2616). As a side note, BITS also is very useful for uploading. Just install the IIS extension, enable a vdir and everything will work in reverse (but only one file per upload job). On the whole I would warn people to be careful when using BITS as an API. It could save you some time, but you also may spend an unexpected amount of time fighting with little oddities of BITS itself.
please send me a direct download link for windows longhorn 4074.
please send me a direct download link for windows longhorn 4074 soulfly.88@caramail.com
SwitchBL8's gebazel - BITS
I hope to get a reply. I am trying to delay sign 3 different components using the public key portion of 3 different key pairs that i have created. Lets say the components are 1,2 and 3 where 3 contains references of 1 and 2 and all the components are COMVisible (they will be deployed on COM+ in future). Now i have a test.exe which initialises the component 3 and calls a function on it. It throws the error "An Unhandled Exception of type 'System.IO.FileLoadException' occured in Unknown module. Strong name validation failed for assembly 3'' Can you suggest a solution or workaround for this?? Thanks
Very good info. Made some modifications to set a specified users properties. using System; using System.DirectoryServices; class FtpAd { public static void Main(string[] args) { if (args.Length == 0) { Console.WriteLine("Usage: aduserset.exe path [user [root] [home]]"); return; } string ldap = args[0]; string user = (args.Length >= 2 ? args[1] : "*"); string root = (args.Length >= 3 ? args[2] : null); string home = (args.Length >= 4 ? args[3] : null); DirectoryEntry e = new DirectoryEntry(ldap); DirectorySearcher src = new DirectorySearcher(e, "(&(objectClass=user)(sAMAccountName=" + user + "))"); SearchResultCollection res = src.FindAll(); foreach (SearchResult r in res) { DirectoryEntry f = r.GetDirectoryEntry(); Console.WriteLine(f.Name); if (root != null) { f.Properties["msIIS-FTPRoot"].Value = root; if(home != null) { f.Properties["msIIS-FTPDir"].Value = home; } f.CommitChanges(); } } } }
Any news on this? I have the same problem...
sdfg
Regarding TIP #4 I want the entire site under HTTP except I want the logon page to be under HTTPS. How does this affect the cookie? Howard
Can I dare to present a little implemenation at http://weblogs.com.pk/fahad/archive/2005/01/17/1266.aspx ? Btw, very nice effort.
I manage a hole host of systems running both linux and windows , i must say i would choose linux over windows any day. I never seem to have to touch the linux box's, they never need rebooting and they never seem to crash, sure it took a while longer to get them setup but that extra amount of time during the install and planning sure payed of in the long run, i can only speak from experience however i have to employ two other people to help on the windows side and only myself on the linux and thats approx 30 linux and 30 windows. So sorry in my many years of network management i would choose Linux over windows for stability and security. flandercan
Well, I would do exctly the opposite. Take a look at the uptime stats of my machine (Netcraft for example) and you'll see that I have exactly the same feeling about Windows as you seem to have about those penguin boxes. Currently we're up and running for 47 days without reboot. See post http://community.bartdesmet.net/blogs/bart/archive/2004/08/09/366.aspx for the uptime I had on Windows 2000 Server in the past. Please note that the 47 day uptime now was interrupted by a power failure in the hosting infrastructure, not by software problems or so. So, they never seem to crash, never need reboting and the setup time was very little. But in my case for Windows :-). I think you should have forgotten a comma in your reasoning somewhere; so check the proof of your statement again :-).
hey this comment was made 'in my experience' and was my own opinion. I have many uptimes of well over a year as i guess you do to. I dont want to start a windows linux flame here. Each server admin to his own. linux is better though :-) and that cv is old! flandercan
yeah seriously has anyone figured out how to resolve this? This halts the entire exchange org. i dont kow how to get it so incoming mail willget to the mail boxes this is weak sauce.
I want to try this thing, but I don't want to install SP2. What can I do?
Its cool but Open Office does that for years. Check XAML in 3 years.. You'll say "its cool" but Firefox/mozilla has this since 2002 (Xul). Microsoft is not innovating.. but that's a good move :) Usefull for my online mail merge software.
fgsfgs
A C# download manager using BITS can be found here http://bits.language.nu/
A Download Manager using BITS can be found here: http://bits.language.nu/
i tried to do this thing calling bitsadmin from C# program but I get this output BITSADMIN version 2.0 [ 6.6.2600.2180 ] BITS administration utility. (C) Copyright 2000-2004 Microsoft Corp. Unable to get console input mode - 0x80070006 The handle is invalid. Exit Code : -2147024890
open up the IIS admin utility and configure the virtual SMTP server. You need to set relay and connection restrictions.
1.) Goto your Exchange administrator MMC. 2.) Under your administrative group and %YourServerName% open the Protocols folder and under SMTP, goto the properties of your Default SMTP Virtual server. 3.) Click on "Delievery" tab and then the "Advanced" button. 4.) under Fully-qualified domain name. Put in... "%YourServerName%.company.com" 5.) Press OK and test. Or make sure this should be done as well. Try this....open you System Manager...Click on servers...then your server...Then expand your Protocols, and click on your SMTP folder....right click on your Default SMTP Virtual Server and go to properties...Click on the Access Tab and then relay and make sure that your "Allow all computers that successfully authenticate to relay, reguardless of the list above. That should fix it...
or you can go here for more info http://support.microsoft.com/default.aspx?scid=kb;EN-US;274638
Bart, Where is the HTM file? Thanks
It drives me crazy that most manufacturers and so called REVIEWERS are not currently listing the rpm speed of the hard drive. I'm looking for a 7200 rpm hard drive stock in a 15.4" notebook. Almost impossibleto find!
Nowadays, Dell does a pretty good job to list the harddisk speeds on the configuration web pages (see www.dell.com). On the Latitude series for example, the 60 GB disks come in a 7200 RPM version.
Excelent info
i get a error.. saying.. --------------------------- Error message... --------------------------- Source files wrong version. File version "e:\i386\ntdll.dll" is 5.1.2600.0 should be 5.1.2600.1045 or higher. You must use Windows XP Service Pack 1 or Server 2003 version of windows! --------------------------- OK --------------------------- where the hell do i get xp service pack 1?
You'll need to perform a slipstream SP update. Take a look on the internet to find more information on this topic ("Windows XP SP slipstream"). Basically, you copy the i386 folder to the harddisk, download the service pack, and run the service pack executable with a flag (/integrate) to indicate that you want to slipstream to the given location (of the i386 folder). This way, you create a Windows installation source folder with the SP integrated.
thx for sharing this ! It is a great example!
I'm running Virtual Server 2005 on server 2003. After updates I was also locked out of server administration. I had to update security on the IIS user that was used to run the web portal. I eventually made the portal run using admin credentials. All was well. Hope this helps.
Adding the destination address (the address you're using to contact Virtual Server) to the Local Intranet zone in the Internet Options/Security allowed NTLM to work correctly for me, so my Virtual Server install is working again. I don't know that this solves all problems...it seems rather fragile so far...but I'm able to get some work done, anyway.
Hi Bart,I was at the event. Congratulations with your demo's. Nice job.
asfd
cerny sloup
Hello, I am trying to debug a problem with FileSystemWatcher. I have two methods in my application that monitor a folder (on different server) for any new files being created. When it finds it, it takes those .doc files and creates PDF files. There is another process that generates these doc files and puts it into this folder. Usually the files are somewhere beween 80 to 1500. I noticed that when the process drops these files into the folder, my application executes Renamed event and not Created events. Also, lot of the times it will stop in the middle with files still left in the folder. Sometimes it will process 80 out of 100 or 140 out of 145 etc. The numbers are always different. So the two issues are: 1). Why does it execute renamed method and not created method. 2). Why does it stop with files still left in the folder? I have set internal buffer to 16K since i can get couple of hundreds of files at once. Please advise. I been trying to solve this problem for few months now without any success. Below are the two methods... Private WithEvents objWatcher As New System.IO.FileSystemWatcher() objWatcher.NotifyFilter = IO.NotifyFilters.FileName objWatcher.IncludeSubdirectories = False objWatcher.InternalBufferSize = 16384 objWatcher.EnableRaisingEvents = True Private Sub objWatcher_Renamed(ByVal sender As Object, ByVal e As System.IO.RenamedEventArgs) Handles objWatcher.Renamed 'Do Stuff End sub Private Sub objWatcher_Created(ByVal sender As Object, ByVal e As System.IO.FileSystemEventArgs) Handles objWatcher.Created 'DO Stuff End Sub
"Today, I took a little pause" What's wrong here?
Hi Bart, I was also there. Thx for the code it was realy interesting but a bit frustrating i have to admit. I spend a week or more on programming a good login control with a random salt and everything. And now it comes as an standard control. All the work for nothing. But i got still a question left. When i want to save extra information of the member like his homeaddress. Can i still use the standard controls? I must admit i don't like the profile control for this purpose. I would use this control for save data like how many posts he did or what theme he likes. But not for storing personal info. What do you think about this? greetz
Hi Carlo, Of course you can still use the default controls. To store the data itself, I'd recommend you to use the Profile service however since it makes life much easier. But the way to edit the profile doesn't matter at all, even when you're using Profile. So, you need to distinguish between the service and possible controls that are using the underlying service.
yeah, same here. its probably because faster hard drives drain the battery quicker. but still, i want a 7200, or even 10000 rpm
Very nice piece of information. Shared with all my knowns. Manish Shrivastava
<p><ul><li><a href="http://www.betanews.com/article/Microsoft_Unveils_Office_Communicator/1110303540" target="_blank">Istanbul új nevet kapott</a> </li><li><a href="http://www.infoworld.com/
I've found another solution, if you follow the URL. Also, you could create a batch file, and drop it (or a short cut/link to it) in the SendTo directory. Here's the contents of my batch file: fsutil hardlink create %1.link %1
I'm using FormsAuthentication.HashPasswordForStoringInConfigFile (using SHA1) to encrypt passwords before storing in the database. How do you decrypt a password stored this way? Thanks. - Sue
The answer is pretty simple, you can't. And in fact, this is just the reason why you should use hashing. Hashing is a one-way function that is irreversible, so you can't go back to the original password (in computationally reasonable time). If you need password reset functionality, you'll need to generate a random password for the user and send it via e-mail to the user, or you can work with secret question/secret answer techniques too.
Very Nice!Need more!
wow, thanks man I've been searching the internet trying to figure out how to do this =)
Hi Bart, Splendid presentation at the event!!! And thanks for the demo files. I wonder if you know where I can find the electronic version of the other speakers on the convent? Thanks upfront, Walter Ruts wruts@be.xrt.com
Is there some way to make connections encrypted with IIS without using VPN.
Do you mean HTTP connections? In that case you should take a look at HTTPS (SSL/TLS) which is supported in IIS (you need to obtain a certificate for public/private key encryption and so on in order to do this). If you're talking about FTP, you have to go over IPsec or so to have encryption (which is IP-to-IP encryption, thus not on the application level of the "network stack", which SSL is on the topmost level). As an alternative you can use HTTP for editing (FrontPage Extensions, WebDAV) over SSL.
How did you get the screenshot? VMWare?
get all the nasty web site off my address box the page is about fulled
get all nasty web site off my address box
Hehe, no, it was made using Microsoft Virtual PC 2004.
TrackBack from igooi.com