ASP.NET Code
  Home arrow ASP.NET Code arrow My Experiences with ASP.NET 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  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
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.NET CODE

My Experiences with ASP.NET PDC bits
By: Steve Schofield
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2000-08-10

    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 NGWSSDKsamples directory. If you took the default install, its c:program filesngwssdksamples 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,

    1. Open the task manager (Right click on the start-bar)
    2. Find the process xspwp.exe and/or the PID(Process Identifer)
    3. open a command window (Start, run, cmd)
    4. Type in "kill xspwp.exe" or "kill xxxx(4-digit id number)
    5. 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:winntcomplusv2000.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.NET Code Articles
    More By Steve Schofield

     

    IBM® developerWorks developerWorks - FREE Tools!


    NEW! Application Development Tools for the Mainframe Developer

    You probably have thousands of lines of COBOL code loaded with business intelligence and being used to run your business, along with an army of developers maintaining these applications. Learn how to prepare your applications and developers so you can keep that competitive edge and move to a service-oriented architecture with the IBM Rational Enterprise Modernization solutions. Replay is available for 9 months.
    FREE! Go There Now!


    NEW! Discovering the value of WebSphere Process Server

    WebSphere Process Server delivers a unique integration framework that simplifies existing IT resources. Often, as IT assets grow to support business demand, so too does their complexity and manageability. In this webcast, we’ll discuss how WebSphere Process Server helps deliver an SOA infrastructure that provides a common model to orchestrate, mediate, connect, map, and execute the underlying IT functions. Discover how WebSphere Process Server simplifies integration of business processes by leveraging existing IT assets as reusable services without the complexities of traditional integration methodologies.
    FREE! Go There Now!


    NEW! Hello World: WebSphere Service Registry and Repository

    Manage, govern, and share services across your organization by using WebSphere Service Registry and Repository. Follow the hands-on exercises to learn how to navigate the Web interface to publish, find, reuse, and update services.
    FREE! Go There Now!


    NEW! Info 2.0: Harnessing the power of Web 2.0 and Enterprise Mashups

    Listen to this webcast to get an overview of Info 2.0 and a technical demo of how to quickly build an enterprise mashup. IBM's Info 2.0 technology leverages emerging Web 2.0 technologies such as mashups, feeds, AJAX, and JSON in order to simplify assembly of information using feeds and services. Come learn about the technical elements of Info 2.0 including the Feed Generation framework, Mashup Engine, and mashup assembly components. Learn how to pull information from databases, departmental information, and the Web to create mashups critical to your company’s success. We will also discuss best practices to help you get started.
    FREE! Go There Now!


    NEW! Trial download: IBM Informix Dynamic Server Express Edition V11.0

    Informix Dynamic Server (IDS) Express Edition offers outstanding online transaction processing (OLTP) database performance, while helping to simplify and automate many of the tasks associated with deploying databases for small business applications. IDS 11 further extends the ease of management and applications integration with the Admin API and Scheduler, high availability with Continuous Log Restore for backup server recovery in case of a primary server failure, and column level encryption to protect personal and company private data.
    FREE! Go There Now!


    NEW! Trial download: IBM Rational Tester for SOA Quality V7.0.1

    Get a free trial download of the latest version of IBM Rational Tester for SOA Quality V7.0.1, a functional and regression testing tool that enables the creation, comprehension, modification and execution of testing GUI-less Web services.
    FREE! Go There Now!


    NEW! Webcast: Accelerating Software Innovation with System z

    Attend this launch webcast with Scott Hebner, Vice President of IBM Rational Marketing and Strategy, where he will overview Rational’s new offerings and programs to help customers accelerate software innovation on System z. He will discuss how these solutions help organizations extend their core business processes toward modern architectures such as SOA and web technologies to deliver business improvements that stand the test of time.
    FREE! Go There Now!


    NEW! Webcast: Eclipse: Empowering the universal platform

    The Eclipse community is constantly working to extend Eclipse's functionality. In this webcast, learn about some of the most important and feature-rich projects under development. From multi-language support to plug-in development, tune in to see what Eclipse is capable of now.
    FREE! Go There Now!


    NEW! Whitepaper: Achieving consistency between business process models and operational guides

    Explore how Rational and WebSphere software enable enterprise documentation in SOA environments. Specifically, a new integration between IBM WebSphere® Business Modeler and IBM Rational® Method Composer software can help technical writers more easily keep enterprise operations manuals in sync with changes that are made to business processes, resulting in more accurate and timely documentation that benefits the entire enterprise.
    FREE! Go There Now!


    Refresh! IBM Rational Systems Development Solution eKit

    With IBM Rational Systems Development Solution, you can deliver products faster with higher quality. Within this kit, Read the “Model Driven Systems Development” white paper to see how to improve product quality and communication. Then check out the rest of the e-Kit to learn more about important topics that can affect the success of any software project through customer examples, tutorials, informative Webcasts, and best practices for designing, building and managing systems. From start to finish, at every stage in your projects, Rational Systems Development Solution can help your company reach its full potential.
    FREE! Go There Now!



    All FREE IBM® developerWorks Tools!

    ASP.NET CODE ARTICLES

    - How to Use the ListBox Control in ASP.NET 2.0
    - How to Load XML Documents in ASP.NET 2.0
    - DataGrid Code
    - ASP.NET Guestbook
    - User Controls and Client Side Scripting
    - ASP.NET Programming with Microsoft's AS...
    - ASP.NET Basics (part 3): Hard Choices
    - ASP.NET Basics (part 2): Not My Type
    - ASP.NET Basics (part 1): Nothing But .Net
    - Directory Tree Browser
    - How to get the confirmation of Yes/No from a...
    - Complete example using custom errors and wri...
    - Paging Certain # records per page .NET style
    - General Methods of formatting and Subtractin...
    - .NET LinkButton web control





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek