.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

SQL Datasource Error

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :ASP.Net
 

When I try to add my SQL Datasoucre I keep getting a error saying "Type universe cannot resolve assembly: System.Drawing.Version=4.0.0.0, Culture = neutral, PublicKeyToken=b03f5f7f11d50a3a" Does anyone know how to fix this?




View Complete Post


More Related Resource Links

Bogus DataSource, DataSourceID Error Message

  
I believe this may be a bug in the .NET runtime or perhaps in LINQ2SQL, but I am not sure where or how to report it? Can anyone help me? I have a simple C# web page that is using a gridview to display an email log. The grid is bound in the code behind to a LINQ2SQL query and there are no parameters set for the DataSource, or the DataSourceID in the gridview in the .aspx page. This page works fine in Visual Studio 2010. Compiles, runs with no errors or warnings. When we publish it to a server with IIS 6.0, it displays the following error: "Both DataSource and DataSourceID are defined on 'gridview1'.  Remove one definition"  The solution is to set  "grdVendorEmailLogs.DataSourceID = string.Empty;"  But why when there is no DataSourceID declared or set to begin with? Here is the gridview code:  <asp:GridView ID="grdVendorEmailLogs" runat="server" AutoGenerateColumns="false"                    Width="80%" CssClass="gvHeaderRow" Font-Names="Verdana" Font-Size="Small">                    <Columns>  &n

SSRS DataSource as XML (Using WebService) Error: Credentials

  
Hello all, I have a requirement in which i have to generate reports (using SSRS) with my Sharepoint list as Data Source. This can be done by consuming the web services in my SSRS, by providing the connection string and Type = XML. My connection string when browsed in browser, "http://<server name>/_vti_bin/lists.asmx" gives me the *method lists* in the <server name>.. which is fine. However when this is used in my DataSource in SSRS, i get the following error: "You might not have permission to view this directory or page using the credentials that you supplied. The Web server has a filter installed to verify users connecting to the server and it failed to authenticate your credentials." :( In the credentials tab, i am using the "Windows Authenticated"   Any help is highly appreciated. :)

error in inserting data into the datasource

  

hello all i have a gridview and textbox i want to insert the data that typed in the textbox  into the gridview i can do this but in other culomn i just can insert number 
and when i type some world the error say:Invalid column name'every thing ' 
 

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="soal.aspx.vb" Inherits="soal" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</head>
<body bgcolor="#fe9cef">
    <form id="form1" runat="server">
    <div>
    
    </div>
    <table class="style1">
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
                    AutoGenerateColumns=

an error occurred while creating the new datasource SQL CE + Win CE 5.0

  

Hi Guys,

I am experiencing the same problem as described above: "an error occurred while creating the new datasource".  I have followed the above suggestions and have the same dev platform i.e. VS2008 Professional with SP1 installed.

I am not sure if my problem is a little different.  I am able to create a Windows application with a SQL CE database connection and create a dataset referencing the SQL CE database.  If however I create a Windows CE smartdevice application (.NET Framework 3.5) I am still able to create the SQL CE database and open and edit it.  The error is thrown when I try to create a dataset...

I create a connection string to the database (local project folder).  Select the tables I want in the dataset.  When I click FINISH I get this error.  In the project error list the following error is displayed: Error 1 Custom tool error: Failed to generate code. Object reference not set to an instance of an object. 

Are you actually able to create a dataset for a SQL CE database on Windows CE 5.0??  If you are can someone tell me where I should start looking for the problem?

Many thanks

Les


Error trying to select analysis services datasource for new report

  
Does anyone know how to resolve the issue when presented with the following error message when trying to select a datasource for a report in SQL Server Analysis Services?

Non-Windows user credentials were supplied for a non-http connection to Analysis Services. The Microsoft SQL Server Analysis Services data extension requires Windows Integrated Security unless connecting via http or https.

DataSource Error

  

Message error reads that "Both DataSource and DataSourceID are defined on 'fvPerson'" at http://cforedu.com

Backend code reads:

Imports System.Data
Imports System.Data.SqlClient
Partial Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        ' The Page is accessed for the first time.
        If Not IsPostBack Then
            ' Enable the FormView paging option and 
            ' specify the PageButton count.
            fvPerson.AllowPaging = True
            fvPerson.PagerSettings.PageButtonCount = 15

            ' Populate the FormView control.
            BindFormView()
        End If
    End Sub
    Private Sub BindFormView()
        ' Get the connection string from Web.config. 
        ' When we use Using statement, 
        ' we don't need to explicitly dispose the object in the code, 
        ' the using statement takes care of it.
        Using conn As New SqlConnection(ConfigurationManager.ConnectionStrings("sqlapplicationConnectionString").ToString())
            ' Create a DataSet object.
            Dim dsApplication As New DataSet()

            ' Create a SELECT query.
            Dim strSelectCmd As Str

DataSource Error

  

Message error reads that "Both DataSource and DataSourceID are defined on 'fvPerson'" at http://cforedu.com

Backend code reads:

Imports System.Data
Imports System.Data.SqlClient
Partial Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        ' The Page is accessed for the first time.
        If Not IsPostBack Then
            ' Enable the FormView paging option and 
            ' specify the PageButton count.
            fvPerson.AllowPaging = True
            fvPerson.PagerSettings.PageButtonCount = 15

            ' Populate the FormView control.
            BindFormView()
        End If
    End Sub
    Private Sub BindFormView()
        ' Get the connection string from Web.config. 
        ' When we use Using statement, 
        ' we don't need to explicitly dispose the object in the code, 
        ' the using statement takes care of it.
        Using conn As New SqlConnection(ConfigurationManager.ConnectionStrings("sqlapplicationConnectionString").ToString())
            ' Create a DataSet object.
            Dim dsApplication As New DataSet()

            ' Create a SELECT query.
            Dim strSelectCmd As Str

ssrs 2008 reports Datasource error in Test server..

  

Hi ,

 i Have upgraded my Reports from Report server  VS 2005 to  VS 2008 .

My reports works fine in local, development & test server.

After Ugrading to 2008 it works fine in local server & devlopement serverr.

 When i deployed to Test server i am trying to access my reports i am getting below errors,

 An error has occurred during report processing. (rsProcessingAborted)

Cannot create a connection to data source 'DataSource1'. (rsErrorOpeningConnection) For more information about this error navigate to the report server on the local server machine, or enable remote errors ..

i checked the Datasource conncetion properties..its pointing to correct Test database only..

My reports are windows integrated...

Now it works in srs 2005 developement & test server. For same properties it works in dev server,  it  doesn't works in srs 2008 test server.

 

Why? Can anyone give me some idea...?

 


SSRS and DataSource cannot be found error

  
Hi,

I just upgraded a server from SQL 2005 to SQL 2008.  We are running Reporting Services.  When I try to view my report I get this error:

An error has occurred during report processing. (rsProcessingAborted)
The data source 'My_DataSource' cannot be found. (rsDataSourceNotFound)

The database is available and I can query it just fine via T-SQL

Any thoughts?  



Hide a repeater in ASP.NET C# if the DataSource contains no items?

  
I have an ASP.NET page that uses a repeater nested within another repeater to generate a listing of data. It's to the effect of the following:
In the (C#) code-behind I'm basically using LINQ to pull a listing of information from an XML document and bind that information to the first repeater.

Searching for the answer to this, it seems the method is to determine whether the data for the nested repeater is empty. If it is, then you set the visibility of the repeater to false.

Manually sorting and paging Gridview without using datasource control

  
Many a times while working with Gridview we want to work with the paging and sorting functionality without using any datasource control. Gridview is flexible enough to perform these tasks without the use of any datasource control and only a few lines of code.

IsapiModule Error 500 Issue

  

I am about exhausted trying to figure out this error:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server error has occurred.

Error Code: 0x8007007b

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ReportServer

Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer

When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:

ISAPI_START

CALL_ISAPI_EXTENSION DllName="C:\Windows\Microsoft.NET\Framework\v2.0.50727\\aspnet_isapi.dll"

 

Handling 404 page not found with Error page

  

Hi,

      How do i handle 404 page not found?


Inserting personal error message in ValidationSummary

  

Hi,

I am creating a web form that requires a lot of validation. I use many of the validation control in asp.net already like RequiredFieldValidator and CompareValidator. 

My Problem: after my custom validation for the value entered return an error message, and I pressed enter key when the field is empty, my custom error message is overlapped by my ValidationSummary. 

Setting my custom error to visible = false on button click also does not seem to work as it requires for me to enter the value first.

This made me think, is there a way to insert my custom validation inside the ValidationSummary as an error message like for other validation control?

Thanks in advance


Sys.Net.WebServiceFailedException: The server method '' failed with the following error:

  

 Hello...

Let's say we have 2 time consuming functions, aaa and aaa1 inside a aspx page.

[WebMethod]
        public static string aaa(int i)
        {
            Thread.Sleep(1000);
            return i.ToString();
        }

        [WebMethod]
        public static string aaa1(int i)
        {
            Thread.Sleep(1000);
            return i.ToString();
        }

 

 

<div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        </asp:ScriptManager>
        <span id="displayspan"></span>
        <br />
        <input type="button" value=

Jscript error: Object does not support property or method

  

 Hi, i have little knowledge on javascript but i need to use this code get from somewhere for a jquery to work.

I face this "Jscript runtime error: Object does not support property or method" whenever im trying to run this page.

In my experience, im get this error msg 9 out of 10 times i use javascript in my system.

Im using Microsoft Visual web developer 2008, i wonder if this is related to my problem, i not sure there is anything i need to add as reference or update anything.

But anyway, in short, i just couldn't use javascript code when using this development tool because of this sort of error.

Anyway, it happen that last time i tried use the same type of jquery code in another project and it seems to work well without an error.

But now when im try to use it again in this recent project i created, it come out with this error and i have no idea how to solve it even look through google and this forum.

It doesn't really seems like its the code problem itself although im not sure, because any javascript code just couldn't work.

So below is my code that i need to use.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script type="text/javascript" src=&quo

Type or namespace error.

  

A couple of days ago I started getting an unusual behavior when compiling Website projects. I have referenced class libraries added to my bin folder that are also correctely referenced in using statements in my aspx.cs code behind. When I compile, I get the 



Error 4 The type or namespace name 'CommonClassLibrary' could not be found (are you missing a using directive or an assembly reference?) C:\Dev\Fiscal_Portal\Implementation\FMS Portal Site_new\App_Code\BLL\DataTables.cs 1 7 C:\...\FMS Portal Site_new\

The type or namespace name 'CommonClassLibrary' could not be found (are you missing a using directive or an assembly reference?)

error message that would typically be received when the dll has not been added as a reference or added in a using statement.


I can eliminate the error by adding an

<add

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend