Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7669633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:38:22+00:00 2026-05-31T15:38:22+00:00

This is REALLY frustrating! I have a common library of code I use across

  • 0

This is REALLY frustrating! I have a common library of code I use across projects. However for some reason my extensions have stopped working in this project. I have used them in plenty of other projects and I have no idea what’s stopping them working now! Grr!

Here’s an example extension so you can see how they’re set up.

 public static string ToAlphaNumeric(this string InputString)
 {
        string OutputString = string.Empty;
        OutputString = Regex.Replace(InputString, @"[^a-zA-Z_0-9]+", "-");
        OutputString = Regex.Replace(OutputString, "[_]+", "-");
        OutputString = OutputString.Trim(new char[] { '-' });
        return OutputString;
 }

My current project is v4.0 and my code library is 3.5, though I have tried upgrading it to 4.0 but that dosn’t fix it. I add a reference to the top of every page because I can’t get defining it in the web.config to work.

It is definitely referenced on my page and found in the intellisense. However when I build the project I get an error which says ‘string’ does not contain a definition for ‘ToAlphaNumeric’. But it does! Why do I get this error?

I apologise if I’ve missed any needed info, tried to include everything I can think of.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:38:24+00:00Added an answer on May 31, 2026 at 3:38 pm

    Set both projects to 3.5 – no real answer to this issue..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is really frustrating me. I'm new to C Sharp so looking for some
this is really frustrating me. this problem occurs when I have a particularly large
This really seems like a bug to me, but perhaps some databinding gurus can
I've got this really simple piece of code that I thought was the correct
I really need your help since I have a frustrating problem. I'm downloading data
This is been making my programming really frustrating lately. I´m in Argentina right now
I know this is really basic but it is frustrating. I'm using Python 2
I have this situation that is really irritating me now. At random times with
Here's a really frustrating Actionscript 2 problem I have with movie clips associated with
This bug is really frustrating me and I am hoping the fine folks here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.