in Search

Blog Day Afternoon

Take a walk on the mild side.

September 2007 - Posts

  • Overriding ASP.Net web.config in a subdirectory

    I was using DotNetNuke for one customer's site. They wanted to add some extra content to the website. I thought I would make a subdirectory under the DotNetNuke directory for the new content. However, as soon as I tried to access any of the .aspx pages in the subdirectory, I would get a "Could not load file or assembly ..." error and it would show the httpModules section of the web.config file of the parent directory. The DotNetNuke's web.config had quite a few settings in that section and I didn't need any of them. I did some searching and found out about <clear>. I added the following code to the web.config file in the subdirectory.

    <httpModules>
      <clear/>
    </httpModules>
    

    That cleared up the error about the missing httpModule, but then I got a "Could not load file or assembly ..." error for the httpHandlers section. I tried adding the <clear/> tag within the httpHandlers section of the subdirectory web.config but then I would get an error for the verb GET. I copied each line of the httpHandlers in the DotNetNuke web.config and changed each line to have "remove" instead of "add". That took care of the problem.

    <httpHandlers>
      <remove verb="*" path="*.captcha.aspx" />
      <remove verb="*" path="LinkClick.aspx" />
      <remove verb="*" path="RSS.aspx" />
      <remove verb="*" path="*.asmx"/>
      <remove verb="*" path="*_AppService.axd" />
      <remove verb="GET,HEAD" path="ScriptResource.axd" />
    </httpHandlers>
    

    I was hoping I wouldn't have to specify each section with a <clear /> or multiple <remove /> tags, but those were the only two that gave me problems. I can add as many .aspx pages in the subdirectory as I want without DotNetNuke trying to take them over.

    Posted Sep 19 2007, 12:19 PM by Blogette with no comments
    Filed under: ,
    Add to Bloglines Add to Del.icio.us Add to digg Add to Facebook Add to Google Bookmarks Add to Newsvine Add to reddit Add to Stumble Upon Add to Shoutwire Add to Squidoo Add to Technorati Add to Yahoo My Web
  • My Favorite Free Software

    Anytime I set up a new web server or get a new personal computer, I install all of my favorite free software programs.

    7-Zip: good for zipping and un-zipping files, splitting large files

    EditPad Lite: a great text editor, can open many files at a time, global search and replaces that can include multiple lines in the search or replace (many editors can't do that)

    FileZilla: fantastic FTP program -- I love being able to export a list of files in the queue that can be reloaded and run at any time.

    PrimoPDF: creates PDFs from just about anything

    SC DiskInfo: this handy little program tells about the disk space usage on your hard drives. If a drive is filling up, this tells you where to look first for clean up.

    Visual Web Developer Express: I do all of the website development in Visual Studio, but this is a handy little program to install on live web servers just in case something needs tweaking immediately.

    Xenu's Link Sleuth: finds broken links in your website. I always run in before declaring a website has gone live.

    My latest find: Agent Ransack. a great file searching utility. It was driving me crazy how the Windows Explorer just could not find text inside of files. It is extremely limited in the types of files that it would search. As a developer, I need it to search .vb, .aspx, .asmx, .config files. I also absolutely did NOT want a program that would constantly be running in the background checking my emails, documents, chat histories, etc. I had a simple need (I thought). I wanted to be able to say "search this directory for this text string". Agent Ransack does just that. I open it when I need and I close it when I'm done. It doesn't go poking around in files that is none of its business. It provides a nice listing of files that contain the string I was searching for, and it will also display the whole line containing the string. It can handle regular expressions as well.

     

     

    Posted Sep 07 2007, 03:59 PM by Blogette with no comments
    Filed under:
    Add to Bloglines Add to Del.icio.us Add to digg Add to Facebook Add to Google Bookmarks Add to Newsvine Add to reddit Add to Stumble Upon Add to Shoutwire Add to Squidoo Add to Technorati Add to Yahoo My Web