Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

Larry Antram

@Larry Antram
About
Posts
406
Topics
62
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to e-mail 404 errors
    L Larry Antram

    Nevermind, I figured it out. Request.RawUrl or Request.Url works fine.

    ASP.NET csharp tutorial question asp-net com

  • How to e-mail 404 errors
    L Larry Antram

    I want to be notified of any 404 (Page not found) errors via e-mail. I'm using Windows Server 2008, ASP.NET 3.5, C# code-behind, etc. I have a page, that displays just fine upon 404 error, with the following in code-behind Page_Load():

    // Send Email to Admin
    System.Net.Mail.MailAddress from = new System.Net.Mail.MailAddress("from@domain.com");
    System.Net.Mail.MailAddress to = new System.Net.Mail.MailAddress("to@domain.com");
    System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(from,to);

    message.Subject = "404 - File or directory not found";
    message.Body = String.Format(
        "The following page generated a 404 error:\\n{0}\\n",
        Convert.ToString(Request.QueryString\["aspxerrorpath"\]) );
    

    System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient("mail.domain.com", 2525);

    try
    {
    client.Send(message);
    }
    catch
    {
    }

    I've tried various stuff instead of Request.QueryString["aspxerrorpath"], however I always end up with an e-mail message similar to the following:

    From: from@domain.com [mailto:from@domain.com]
    Sent: Friday, May 14, 2010 4:50 PM
    To: to@domain.com
    Subject: 404 - File or directory not found

    The following page generated a 404 error:

    And that's it. How can I figure out what page generated the error so I can e-mail the URL or location? Specifically, given the above example, what should I replace Request.QueryString["aspxerrorpath"] with? Any ideas appreciated. Thanks in advance.

    ASP.NET csharp tutorial question asp-net com

  • Code Signing Certificate
    L Larry Antram

    Cool, thanks! I didn't notice that before.

    The Lounge cryptography question

  • Code Signing Certificate
    L Larry Antram

    Any suggestions for where to get an affordable code signing certificate, so when users try to install software Windows does not pop up a dialog stating the code is "Unknown" and possibly from an untrustworthy source? Thanks in advance for any recommendations.

    The Lounge cryptography question

  • Instant Unlock Software
    L Larry Antram

    Thanks. I think I'm just going to go with the trial version and a separate full retail version. Try the trial, if you like it, then buy the retail (separate download). That's what I've always done, for the most part. I don't need or want all the DRM crap.

    The Lounge question

  • Instant Unlock Software
    L Larry Antram

    Thanks, that actually helps answer my question for which route to go.

    The Lounge question

  • Instant Unlock Software
    L Larry Antram

    You know the thing is, they don't have any visible phone number on their site. I went to Digital River, same thing. I called 411 for the Corporate Office in California, but there was no listing. The closest one I got ended up going to a Latino housewife, who was obviously taking care of her kids. I finally searched the Internet, found a number, called it and the person who answered was in the Philippines. I had only two simple questions. They couldn't answer. I was then forwarded to another person in the Philippines who also could not answer them. I was advised to call Minnesota, but apparently they close at 5PM (and I'm Pacific Coast). I don't think I would recommend going with them.

    The Lounge question

  • Instant Unlock Software
    L Larry Antram

    I've been writing software, well for the current company I own, 15+ years. I have an actual merchant account with a bank (which is now Chase). Have written a bunch of security software, and wrote a keygen that was never broken in all that time (prime numbers, flopping stuff around, etc. makes a pretty simple license key that is solid). Since the crooks will trace into your code (C++) you have to fake them out. I've been pretty successful. At this point, I just don't care anymore. Thing is, crooks, if they can't get past the license key, then they just use a fake id to purchase the product and then I get stuck with a chargeback fee. I'd prefer to just completely avoid all of that. It's easier to just let them steal it. I think I'm either going to go with my two versions (trial/retail) via Plimus, or go with Digital River and just have one version that can be instantly unlocked. Still trying to determine the best route. Any other suggestions, appreciated.

    The Lounge question

  • Instant Unlock Software
    L Larry Antram

    Thanks Hans, that looks promising. I'll check it out. I appreciate your input.

    The Lounge question

  • Instant Unlock Software
    L Larry Antram

    I posed this question before, but didn't really get a good answer. I've got two versions of my software, retail and trial. I'm thinking about going with Plimus as a processor ... but I would really like to get an honest opinion about what to use as a "wrapper" for instant unlock software. I don't want to hear anything about how copy protection can be broke, I'm very familiar with that, have written tons of code to avoid it ... and at this point I DON'T CARE ... it's easier to just let someone steal your damn software than jump through hoops to avoid it. Back to the primary question: Any recommended instant unlock wrapper software that obviously does payment processing? Thanks in advance.

    modified on Wednesday, March 17, 2010 8:04 PM

    The Lounge question

  • How to kill your high-load website...
    L Larry Antram

    Been there, done that. Gotta love the current "web.config" -- about a bazillion things that don't need to be there (or perhaps not).

    The Lounge c++ debugging architecture tutorial

  • How old did you start programming?
    L Larry Antram

    Ahhh, the good old days. 1982 in 10th grade on a trash 80 (Radio Shack TRS-80). You would type a BASIC program in, then save it out to a thermal printer (gray colored wax paper about the size of cash register receipt), and the next time you wanted to run the program you typed it in again. Lucky students grabbed the few trash 80s with cassette recorders. You would press record, tell the program to store, wait for the sounds and tones to end, then hit stop. Unfortunately, it was necessary to record programs 2 or 3 times in a row to make sure the next time you came back, that you had a good copy. And even then it was not certain. In the years after, I drooled over the Atari-ST... and finally purchased an Atari 520ST about 1987. I was only interested in learning how to become a "professional" programmer, so I struggled to come up with the funds to pay for "Megamax Laser C" and then struggled to understand it... the first C compiler I ever used. I still have my code from back then (transferred off Atari ST disks long ago and can run through an emulator now). Looking at it now, it is funny how simplistic the code was and how much trouble I had trying to figure it all out back then. ;)

    The Lounge question

  • Programming Design Question...
    L Larry Antram

    I agree + link fix: http://www.dotnetnuke.com[^]

    The Lounge csharp database question discussion sql-server

  • Windows Reinstall Question
    L Larry Antram

    Another shot of booze? :~ :-D

    The Lounge question windows-admin

  • Flat tire - wierd
    L Larry Antram

    I agree! :)

    The Lounge testing beta-testing performance help

  • Flat tire - wierd
    L Larry Antram

    I've found that Les Schwab (http://www.lesschwab.com/[^] - in Washington State) does the same -- you go in with a leak... they'll patch your tire for free.

    The Lounge testing beta-testing performance help

  • Open source photography
    L Larry Antram

    I don't know if this is what you're looking for, but perhaps try something like... http://pdphoto.org/[^] http://openphoto.net/[^] http://creativecommons.org/getcontent/[^] http://en.wikipedia.org/wiki/Public_domain_image_resources[^]

    The Lounge question

  • How to create an installation program for my program?
    L Larry Antram

    http://www.jrsoftware.org/isinfo.php[^]

    C / C++ / MFC tutorial question learning

  • replace [url]whatever[/url] ..
    L Larry Antram

    I'm actually running David's code on one of my servers, but (unless the beta is different than the release) I think it requires something like this to create a URL: [url="http://www.forums.stardustsoftware.com"]The Stardust Software Web Site[/url] The idea of a user being able to simply type http://www.site.com and have the display code parse and provide an HREF would be cool... but my JScript RegEx skills aren't quite good enough. Regards, Larry

    Web Development tutorial question

  • replace [url]whatever[/url] ..
    L Larry Antram

    No, it's standard JScript embedded in an ASP page (IIS5).. all server side. Basically I have a discussion forum, which doesn't allow HTML, and I would like either: (A) any links posted by the users to either appear automatically (e.g. some sort magic regular expression for "http:// + whatever + whitespace" replaces the text with a standard html link), -or- (B) as an alternative, some sort of regular expression type search for "[url] + site.com + [/url]" and replace that with a standard html type link. I found the following code on a site: http://codelib.aspemporium.com/index.aspx?pid=110&cid=3[^] Which looks to perform (A) above... however in converting the VBScript to server-side JScript I can't get the following line to work... this is my translation... strOut = re.replace( strIn, "$1" ); I assume the line about, the {1} is supposed to carry down into the $1 in this one in some fashion, but I don't quite understand how it works... and I can't seem to get it to work. Any ideas? Simply finding a URL in any particular JScript String, and replacing it with an HREF is really all I need to do. Thanks for any help!

    Web Development tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups