ASP Code
  Home arrow ASP Code arrow My Experiences with ASP+ PDC bits
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP CODE

My Experiences with ASP+ PDC bits
By: aspfree
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating:  stars stars stars stars stars / 0
    2000-01-11

    Table of Contents:

    Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


     

    My Experiences with ASP.NET PDC bits
    Now that the ASP.NET sdk "pre-beta" has been released to the masses.  Many people are scrambling to get it installed and start to play with C#, ASP.NET and many other toys that come with the SDK.   Being the webmaster of ASPFree, I've had the privilege to work with two versions of ASP.NET builds. And I may add, how stable both versions have been!  Its definitely been an experience, this article I hope to express some of the things to help guide individuals who have to install and support this in their environment.

    First of all, "DON'T INSTALL ON YOUR PRODUCTION SERVERS!!", I can't stress this enough, this is "pre-beta" software.   Microsoft WILL NOT support pre-beta software.  ASPFree is "production" I guess, but it doesn't hurt anything if the site crashes or some pages don't display.  The world won't come to an end, I use this environment to learn new technology and share with others.    I do have a development machine that I test things before installing on the server that runs ASPFree.     Some of the tricks I share in this article are just my own experiences.   These are the things I found helpful in keeping the samples up and working for my visitors on ASPFree.com. 

    How do I get ASP.NET installed then?
    Before I'd do anything,  do a complete backup...even on your development machine.  I'd recommend a fresh built machine with Windows 2000 and IIS 5.0, then install IE 5.5 and lastly the PDC ASP.NET bits.   Many of the newsgroups I monitor, some people are having issues if they installed the PDC Visual Studio 7 beta then trying to put on the ASP.NET sdk.  I can't comment to this because I haven't installed VS 7 beta. All I can say install in this order, a fresh install of Windows 2000 w/IIS 5.0, IE 5.5 and PDC build of ASP.NET .  Things should work fine!.  

    What if I have Classic ASP applications on my server?
    If your installing ASP.NET on a development machine with existing traditional ASP applications, things will work just fine.  I've installed the ASP.NET bits many times and have yet to blow up any of my ASP pages.  ASP.NET is designed to run side-by-side with existing ASP pages.  If you doubt this claim, view ASPFree.com.  Since day one, I've mixed .asp and .aspx pages together with NO problems at all!

    The First Build story
    We had a couple of small issues with the first build that was installed on ASPFree.  It ran pretty good for about a week or so then we had a few odd things happen.  Being "Pre-beta", I'd expected this to happen sooner.  I was very happy how stable the beta's were and the small amount of issues I really had!  When the samples would die or some other error popped-up, I'd re-compile the samples and that would take care of them.  Considering the traffic load ASPFree.com visitors put on them,  they held up very well.

    You ask how did I re-compile the samples?
    1.  Open a command prompt. 
    2   Map to the NGWSSDK\samples directory.  If you took the default install, its c:\program files\ngwssdk\samples directory.
    3.  run nmake /all  This will compile all of the samples again.

    Another trick I found helpful when weird errors would come up,  I'd use the "KILL.EXE" command that comes with the NT/2000 resource kit.  This allows you to terminate processes without restarting the server.

    To "kill the ASP.NET" process,
    Open the task manager (Right click on the start-bar)
    Find the process xspwp.exe and/or the PID(Process Identifer)
    open a command window (Start, run, cmd)
    Type in "kill xspwp.exe" or "kill xxxx(4-digit id number)
    Here is a picture of what I'm referring too.

     

    Using the kill command has proved useful in both builds of the SDK that has been used on ASPFree.   The 1st build was somewhat buggy and once in awhile things basically stopped working.    The PDC build, the one Microsoft just released to the world this week, is much more stable and I haven't had any problems. 

    Other strange things such as "This EVIL Process, NULL String in XXX" or whatever the error.  Usually killing the xspwp.exe process and letting another one start up usually fixes things.  Please keep in mind this article is based on "Pre-beta" software,  using the kill command to fix these problems are rare now with one exception.

    What is the XSPWP.exe process?
    This is the worker process that handles all of the ASP.NET tasks. 

     

    Using the KILL command to help clean up virtual memory
    Now this part is my own twisted way I came up with to keep the virtual memory down on my server.   Another thing you could do is add more memory.  I however didn't have this luxury right away so I had to invent something.    Because the PDC build is "pre-beta", bugs are bound to pop up.   When the ASP.NET bits gets installed, under the c:\winnt\complus\v2000.14.1812 is the global config.web.  There is a section in the config.web that is called IISProcessmodel.   This part allows for configuring how much of the server resources is used, how long the xspwp.exe process will live before another one is spun up etc..  Now please don't take these numbers and ones to use.  These are just samples!

     

    After consulting with Microsoft, they suggested I try adjusting the timeout, requestlimit and memorylimit. 

    Timeout: is for how long before a new xspwp.exe will be spun up. 
    Requestlimit: is a way to configure how many requests are handled before another process is spun up.
    MemoryLimit: is a way to constrain so it doesn't suck all your virtual memory.

    The nice thing I've seen after playing with different settings is this nice little error "Evil process didn't release lock on file! UNDONE: Rip or fix this exception".  We emailed this error into Microsoft and they fixed it.  The fix is probably going to be incorporated into the beta that is coming out.   Once I changed the numbers back to the default, which basically are infinite numbers.  Things worked fine.  

    In the mean-time,  I run a scheduled kill command to not only keep the xspwp.exe file from taking all available virtual memory.   So far, this hasn't caused any adverse side affects to the samples and things seem to be running fine!

    In conclusion
    I hope these article doesn't scare you, I meant what I said.  "DON'T INSTALL ON YOUR PRODUCTION SERVERS!!".  Your administrators will probably wonder why are they being called to support a beta product.  This article doesn't cover the many things that already work out of the gate, dynamically installing dll's on the fly, caching to name a few.  My opinion of this beta is such that enough of the features work out of the box. Take advantage of this period to start learning how the "Next Generation" of web development will be done.

    Would I run a production environment on the current build? NO! 

    Is the current build very stable? Yes!!

    I'm in a unique position with having this installed on ASPFree.   I'm not only learning how to be a developer of ASP.NET,  but also how ASP.NET will live on the server.   I'm confident in the future builds, Microsoft will have the performance and resource management needs taken care of.  Again this is "Pre-beta" software, but this is such a revolution and so many of the features work now!  This head start will help the developer community take advantage of this awesome new technology.  Any questions or comments let me know!

    Steve Schofield 
    steve@aspfree.com


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

    More ASP Code Articles
    More By aspfree

     

    IBM® developerWorks developerWorks - FREE Tools!


    NEW! IBM Rational Systems Development e-Kit

    As systems increase in complexity, communication between systems and software teams becomes more and more difficult. Now, there’s a way to improve product quality and communication.<br />Read the “Model Driven Systems Development” white paper to see how. Also included in this kit are more educational white papers, customer examples, tutorials, informative Webcasts, and best practices for designing, building and managing systems.<br />
    FREE! Go There Now!


    NEW! Project and Portfolio Management Executive Resource Kit

    Portfolio Management is about effectively managing portfolio value by aligning portfolio investments with business goals. This complimentary e-kit provides a collection of materials that can help you understand how IBM Rational enables and automates best practices for improved governance and clear visibility into portfolio and project performance across the entire IT project lifecycle.
    FREE! Go There Now!


    NEW! IBM Rational AppScan Standard Edition V7.7

    Secure your Web applications with IBM Rational AppScan Standard Edition V7.7, previously known as Watchfire AppScan. This Web application security testing tool automates vulnerability assessments and scans and tests for common Web application vulnerabilities. Visit IBM developerWorks to download a free trial of IBM Rational AppScan Standard Edition V7.7.
    FREE! Go There Now!


    NEW! Webcast: Calling All Testers! Find Application Vulnerabilities Early in the Development Process Where they are Easier to Fix and Less Risky to your Business

    In this webcast, IBM Rational will discuss the importance of Web application security and will share techniques and best practices to introduce application security testing into current QA processes including: understanding common security vulnerabilities and techniques to integrate security testing with defect tracking and remediation systems in an effort to safeguard sensitive online information.
    FREE! Go There Now!


    Role of Integrated Requirements Management in Software Delivery

    As organizations integrate software into every aspect of business, they are constantly pressured to deliver faster, better, and cheaper results. Unfortunately, a “dis-integrated” software delivery approach reduces returns while increasing costs. This IBM Rational White Paper shows how Integrated Requirements Management aligns organizations around maximizing value and keeping pace with change.
    FREE! Go There Now!


    NEW! Section 508 of the U.S. Rehabilitation Act: Web accessibility compliance

    Because access to government information continues to be an area of concern for many U.S. citizens with disabilities, the U.S. government enacted Section 508 of the Rehabilitation Act in 2001 to ensure that government agencies create accessible Web content, enabling all citizens to access the information they need. A fully accessible Web site makes Web content accessible to all individuals, including those with disabilities, who may be accessing Web content via a variety of user agents. Common user agents include standard Web browsers, text-only browsers, assistive devices and mobile devices such as cell phones or personal digital assistants (PDAs).
    FREE! Go There Now!


    NEW! Rational Modeling Extension for Microsoft.Net

    Rational Modeling Extension for Microsoft .NET enhances usability for code generation supporting a more intelligent refactoring. The latest enhancements enable organizations with Java and .NET systems and software development maintain architectural integrity across heterogeneous platforms.
    FREE! Go There Now!


    NEW! Run your first CICS application on a PC using TXSeries for Windows

    Learn the basics of the IBM Customer Information Control System (CICS). With a hands-on exercise, learn how to get your first CICS application up and running on your desktop using TXSeries V6.1 for Windows. The tutorial shows you how to download and install a free trial version of TXSeries V6.1.
    FREE! Go There Now!


    NEW! Innovate don't duplicate! Asset reuse strategies for success

    Asset Reuse is a key strategy for companies looking to create innovative solutions to solve complex software development problems. Searching for, identifying, updating, using and deploying software assets can be a difficult challenge. Listen to this webcast, to learn about strategies and tools that you can leverage for a successful project, including Rational Asset Manager, Rational Software Architect and WebSphere Service Registry and Repository.
    FREE! Go There Now!


    NEW! Try the IBM SOA Sandbox for Connectivity

    Visit IBM developerWorks to try the IBM SOA Sandbox for connectivity. The SOA Sandbox for connectivity provides a trial environment with the tooling and components to help you explore how to effectively connect your infrastructure and integrate all of the people, processes and information in your company. Use the hosted sandbox to explore SOA techniques that streamline connecting existing IT assets together, as well as learn how to connect them to new business logic.
    FREE! Go There Now!



    All FREE IBM® developerWorks Tools!

    ASP CODE ARTICLES

    - ASP Forms
    - ASP: The Beginning
    - Getting Remote Files With ASP Continued
    - Inbox and Outbox Manipulation in ASP
    - Relational DropDownList Using VB.NET
    - Ad Tracking URL Hits
    - Use ViewState to display one record per page...
    - Send Email using ASP.NET formatted in HTML
    - ASP File Explorer
    - ASP/XML Interview questions by Srivatsan Sri...
    - Various methods of setting Date values to a ...
    - Conditional DataGrid Item and using checkbox...
    - Fill .NET Listbox with SQL DataReader
    - Filling Dropdown box using Code-Behinds in C#
    - FLAMES code sample written in .NET What is F...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway