June 2005 - Posts

Free eBook - Introducing Visual Basic 2005 for Developers

Get a focused, first look at the features and capabilities in Microsoft Visual Basic 2005, Visual Studio 2005, and .NET Framework 2.0. If you currently work with Visual Basic 6, these authors fully understand the adoption and code migration issues you’ll encounter. They’ll step you through a quick primer on .NET Framework programming, offering guidance for a productive transition. If you already work with .NET, you’ll jump directly into what’s new, learning how to extend your existing skills. From the innovations in rapid application development, debugging, and deployment, to new data access, desktop, and Web programming capabilities, you get the prerelease insights and code walkthroughs you need to get productive right away.

Click here to start reading this book,

 

with 0 Comments

Starting ASP.NET Development Web Server(Cassini) manually.

For development, Visual Studio 2005 now comes with a built-in development-only Web server. This lightweight Web server can only respond to local requests and is therefore not a security threat. The server does, however support full debugging features and can be used as a development tool for new Web applications. When you are ready to test out scalability and performance or deploy for production, simply move the application to IIS.

 

If the asp.net application is not deployed in IIS and you try to run the asp.net application from Visual Studio 2005, the local development web server will be started automatically. If local web development server is automatically, it will pick up the port number randomly and run the development server in that port.

 

However, in some situations you might require to start this web server manually. For example, you might want to run this local web server in certain port or if you want to test the web page without opening VS 2005.

 

In those cases, you can use WebDev.WebServer.Exe located in

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215 (this path might vary depending upon the .net framework installation) to start this web server manually. This is the executable for local development web server; even VS 2005 internally uses this executable to start the local web server.

 

This command line executable accepts three parameters,

1. path : Physical path of the application which you want to run.

2. port : port in which you want to start this web server. Default is 80.

3. vpath: Specify application root using this option. Default is "/"

 

For example, to start a web application located at c:\temp\testing and in the port 8001.

WebDev.WebServer.EXE /path:D:\temp\Testing /port:8001 /vpath:/testing

 

After you run this utility, you can see ASP.NET development Web server in the system tray. You can access your web application from the browser using http://localhost:8001/testing/

with 0 Comments

Solution: ASP.NET Development Server is not working.

Problem: ASP.NET Development Server gives one of the following errors when you try to run your web application.

  1. 404 error though the web pages are there in your application
  2. Cannot find server or DNS Error
  3. Timeout error

Solution to this problem is to disable the NTLM Authentication for your web application. NTLM authentication is enabled by default for your application.

To disable the NTLM Authentication, follow the steps below

  1. Open your web application in VS 2005
  2. Right click on your web application and select the property pages
  3. Go to Start options
  4. Go to Server Section
  5. In that, disable NTLM Authentication.

This workaround will work most of the time.

I am still thinking why NTLM Authentication is not working even in IE forASP.NET Development Server.

with 0 Comments