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 7420541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:15:26+00:00 2026-05-29T08:15:26+00:00

Before anyone closes this as duplicate – please note its not a linq or

  • 0

Before anyone closes this as duplicate – please note its not a linq or other datasources issue and i have looked at other stackoverflow posts and none are same.

Here is my problem:

Error Screen Shot

Its extremely simple app ASP.net with C# code behind no fancy stuff plain simple as you can see from code below:

default.aspx code

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%=returVar%>

Default.apsx.cs

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    public string returVar;
    protected void Page_Load(object sender, EventArgs e)
    {
        string n = String.Format("{0}", Request.Form["test"]);
        //below we will place the code for ODP.net once the DB connectivity is resolved
        if (n.Length == 16)
        {
            returVar = "Found";
        }
        else
        {
            returVar = "Not found";
        }
    }//Page_Load
}

and finally web.config

<?xml version="1.0"?>
<configuration>
    <system.web>
        <compilation debug="false"/>
    </system.web>
</configuration>

My dev machine is: win 32 xp visual studio 2010 and Server running is Win 64bit 2008 R2 and IIS7.5.

so why is this error occuring when i run this code on my desktop it works like a charm with http through firefox as below:

http://localhost:3117/Default.aspx?test=0998989765432345

exact same code fails with attached screen shot, can someone tell me why please propose the solution. I tried including ALL of my DLL from solution explorer to release i.e. Solution Explorer > References > system.core, system.data etc… > all set for copy local = true.

still no luck.

Please note i cant install any extra components on the server and what ever i have to deploy has to be part of application.

  • 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-29T08:15:27+00:00Added an answer on May 29, 2026 at 8:15 am

    Easiest solution if anyone else bumps into this situation, here is how i achieved result

    open Visual studio 2010 once its loaded

    open explorer -> goto > C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0

    copy the required System.ComponentModel.DataAnnotations.dll into your project “References” folder select that reference and under properties set “copy local” to true and once you publish it will be in your bin folder and wont impact at all on any server be it x32 or x64.

    hope it helps anyone else.

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

Sidebar

Related Questions

Before anyone closes this is a duplicate of this , please hold your horses,
Before anyone recommends that I do a google search on this, I have. I
Has anyone come across this issue before?
Has anyone heard of this error before: I have a Java 5 application, that
Before anyone suggests scrapping the table tags altogether, I'm just modifying this part of
Has anyone seen this before - and can anything be done about it? This
Has anyone run into this error message before when using a timer on an
Has anyone else run into this problem before? I've got a method that calls
Has anyone had this unusual(recurring) experience before? I'm trying to check out the project
Before anyone votes to close this as a dupe, know that every question I

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.