# Wednesday, October 26, 2005

[...]The .NET Framework 2.0 comes with a built-in webserver, based on the old Cassini web server. So I wanted to be able to easily set up any directory to have its contents served up on an as-needed basis. The result is an addition to the Windows Explorer right-click menu...[Robert McLaws]

Chris Fraizer wrote it thgether in a small app.

Here is my version with a few modifications:

using System;

using System.IO;

using System.Collections.Generic;

using System.Diagnostics;

using System.Windows.Forms;

using System.Text;

using System.Runtime.InteropServices;

 

namespace WebServerHere

{

    class Program

    {

        static void Main(string[] args)

        {

            if (args.Length >= 1)

            {

                string _path;

 

                string _command =

                    Path.Combine(

                    RuntimeEnvironment.GetRuntimeDirectory(),

                    "WebDev.WebServer.EXE");

 

                StringBuilder _commandArgs = new StringBuilder();

 

                Random _r = new Random();

 

                string _port = _r.Next(1024, 9000).ToString();

 

                if (args.Length == 2)

                {

                    _port = args[1];

                }

 

 

                //grab the original path

                _path = args[0];

 

                _commandArgs.Append(" /path:\"");

                _commandArgs.Append(_path);

                _commandArgs.Append("\"");

                _commandArgs.Append(" /port:");

                _commandArgs.Append(_port);

                _commandArgs.Append(" /vpath: \"/");

                _commandArgs.Append(_path.Substring(

                    _path.LastIndexOf('\\') + 1));

                _commandArgs.Append("\"");

 

                ProcessStartInfo _info =

                    new ProcessStartInfo();

 

                _info.Arguments = _commandArgs.ToString();

                _info.CreateNoWindow = true;

                _info.FileName = _command;

                _info.UseShellExecute = false;

                _info.WorkingDirectory =

                    _command.Substring(0, _command.LastIndexOf('\\'));

 

 

                Process.Start(_info);

 

                using (Control _c = new Control())

                {

                    Help.ShowHelp(_c, "http://localhost:" + _port + "/");

                }

            }

            else

            {

                MessageBox.Show("Usage:\n\tWebServerHere.exe <path> [port]",

                    "WebServerHere", MessageBoxButtons.OK,

                    MessageBoxIcon.Information);

            }

        }

    }

}

And the Non-Admin installation reg-file:

Windows Registry Editor Version 5.00

[HKEY_Current_User\SOFTWARE\Classes\Folder\shell\VS2005 WebServer]
@="ASP.NET 2.0 Web Server Here"

[HKEY_Current_User\SOFTWARE\Classes\Folder\shell\VS2005 WebServer\command]
@="\"%SystemRoot%\\System32\\WebServerHere.exe\" %1"

ASP.NET | C# | Misc | Projects
Wednesday, October 26, 2005 8:53:48 AM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [1]  | 
# Tuesday, October 25, 2005
Wie ich blogge?!
Tuesday, October 25, 2005 12:15:04 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, October 24, 2005

Wow, what a weekend. Just so short cuz my desk is quite full - but I promise to tell more tomorrow.

 

Event | Misc
Monday, October 24, 2005 5:23:00 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [1]  | 
# Wednesday, October 12, 2005

Problem
When connecting through a Microsoft ISA 2004 server, the FTP client has read only access to the files and folders. e.g. Uploading, renaming or deleting a file or folder is not possible. The FTP server replies with a "550 Access denied" message if such operations are performed.

Solution
Microsoft ISA 2004 server (acts as Firewall) default settings only allow read access (list and download).

To change this settings open ISA management -> Select Firewall policy -> Web Access -> Protocol -> Filtering ->Configure FTP
On this page remove the check mark from the "Read Only" option.

Wednesday, October 12, 2005 8:35:01 AM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [1]  | 
# Tuesday, October 11, 2005

Damir hat ein tolles Video zusammengeschnitten...

Starring: Barbara Steiger, Simone Stocker, Frank Butler, Christian Frei, Amy Sorokas, Trisha Lacey, Hans Verbeeck, Karsten Samatschke, Christian Wenz, Damir Tomicic, André Obelink, Dirk Primbs, Frank Prengel, Bill Gates, Jim Alchin, Andres Hejlsberg, Chris Anderson, Don Box, Scott Guthrie, Doug Purdue, Sara Faatz, Samantha Spears, Morgan Baker, Julia Lerman, Nicolas Clerc, Patrick Hynds, Chris Capossela, Golo Haas, Alex Bierhaus, Mario Spuszta, Alexander Holly, Michael Willers, Channel 9 guy

Tuesday, October 11, 2005 8:49:27 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 

[Jeffrey Palermo]
public launch date and availability is still scheduled for the week of November 7th, but Microsoft will be releasing the software to it's MSDN Universal subscribers first on October 15th.  I've been looking for changes from the Release Candidate to RTM, but I haven't found them yet. I'm glad the software is finally coming out.  I've been working with .Net 2.0 since Beta 1 came out, and I'm looking forward to using the final product. The I've installed Beta 1, Beta 2, and the Release Candidate, and all the IDEs have been stable. You've heard the warnings not to install pre-release software on any computer you care about, but Visual Studio 2005 has been very stable.  I'm impressed.
[...]

Nothing to add, Jeff

 :-)

Tuesday, October 11, 2005 8:46:06 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [1]  | 
Aus einem Chat mit Michael Willers zu Thema Indigo (Windows Communication Foundation) und Interop:

Michael says:
   
die wahrheit is aufm draht
Michael says:
    
die zeiten ändern sich
Michael says:
    
fürher war aufm platz heute is aufm draht

 

Tuesday, October 11, 2005 1:01:40 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Saturday, October 08, 2005

Monday: I met Andreas Hoffmann (2nd UG Lead of the VfL Usergrop) and Peter Nowak (Head of FIAEon.net, a community for .NET related vocational education) at Starbucks in Düsseldorf.

Tuesday: Benjamin Mitchell notified me that one of my sessions was voted by the british community and I'll have a session at the Developer Developer Developer Day.

Wednesday: I'm in contact with the Student Partners in Wuppertal now (better said Anselm Haselhoff because Marcel Wiktorin is moving and has not replied yet :-)).

Thursday: Usergroup meeting in Düsseldorf: Sebastian Weber (Developer Evengelist at Microsoft Germany and member of the VfL-UG) answered all our members questions about SQL Server 2005 and Tuan Nguyen (Lead of annos.de and VfL-Member) talked about the Annos project. Great, thanks guys.

Friday: I updated the VfL-Site and fixed a few bugs.

Saturday, October 08, 2005 5:50:30 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Wednesday, October 05, 2005

The IE Developer Toolbar provides several features for deeply exploring and understanding Web pages.

-- Explore and modify the document object model (DOM) of a web page.
-- Locate and select specific elements on a web page through a variety of techniques.
-- Selectively disable Internet Explorer settings.
-- View HTML object class names, ID's, and details such as link paths, tab index values, and access keys.
-- Outline tables, table cells, images, or selected tags.
-- Validate HTML, CSS, WAI, and RSS web feed links.
-- Display image dimensions, file sizes, path information, and alternate (ALT) text.
-- Immediately resize the browser window to 800x600 or a custom size.
-- Selectively clear the browser cache and saved cookies. Choose from all objects or those associated with a given domain.
-- Choose direct links to W3C specification references, the Internet Explorer team weblog (blog), and other resources.
-- Display a fully featured design ruler to help accurately align objects on your pages.

http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en

Wednesday, October 05, 2005 1:34:19 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Friday, September 30, 2005

It was the second time this year I went to Warsaw (Poland). The Microsoft Technology Summit happend for the first time and was a big success. An amazing event: Two days, about two-thousand attendees, six parallel tracks, four a day. I had about three-hundred listeners in each of my sessions ("Layout and Personalization with ASP.NET 2.0" and "Data-Driven Application with ASP.NET 2.0"). The feedback in the breaks was great.
Thanks to everybody at Microsoft Poland especially Artur and Dominika.

I met Rafal Lukawiecki

Fred Baumhardt and Maciej Pilecki

And had an interesting discussion with Yogesh Bhalerao.



The audience while i was speaking



And the view out of my room in the Meriott.

http://www.mts2005.pl/


Friday, September 30, 2005 12:12:50 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 

Torsten Weber invited me to do one day of sessions at the .NET Summercamp: I introduced .NET 2.0 and C# 2.0 and talked about Visual Studio 2005 Team System.

It was the first time in Leipzig and i really liked it. Hopefully i'll be there next year too.

C# | Event | Team System
Friday, September 30, 2005 11:48:42 AM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |