Showing posts with label occurred. Show all posts
Showing posts with label occurred. Show all posts

Tuesday, March 20, 2012

"The underlying connection was closed: An unexpected error occurred on a receive." End

what can cause the above error when connecting to an endpoint via a c# app? the app, and sql are both on my machine ( im just doing this for test purposes and to learn something new.)

i added this code on advice from a web site to the Reference.cs file:

{
HttpWebRequest webRequest = (HttpWebRequest) base.GetWebRequest(uri);

webRequest.KeepAlive = false;
webRequest.ProtocolVersion=HttpVersion.Version10;
return webRequest;
}

Now i get this error.

"The request failed with HTTP status 401: Unauthorized."

this is strange as i have granted the user who the application is running under control access to the endpoint, and even to the function behind the endpoint.

Here is the code behind the button for calling the web service:

private void button1_Click(object sender, EventArgs e)

{

try

{

v_fintag.my_Endpoint wsObject = new v_fintag.my_Endpoint();

wsObject.Credentials = System.Net.CredentialCache.DefaultCredentials;

System.Data.SqlTypes.SqlInt32 sqlint;

sqlint = 25;

System.Data.SqlTypes.SqlString sqlStr;

sqlStr = wsObject.GetFunctionData(sqlint);

}

catch (Exception ET)

{

label2.Text = ET.Message + " : " + ET.Data;

}

}

Also, here is the endpoint, in case its useful or provides information:

create endpoint my_Endpoint

state = started

as http(path='/sql',

authentication=(INTEGRATED),

PORTS=(CLEAR),

SITE='*')

For SOAP

(

webmethod 'GetSprocData'(name='adventureworksdw.dbo.testEndPointSproc'),

webmethod 'GetFunctionData'(name='adventureworksdw.dbo.endpointFunctionTest'),

wsdl=default,

schema=standard,

database ='adventureworksdw',

namespace = 'myNamespace'

)

grant execute on dbo.endpointfunctiontest to [user1]

use master

GRANT CONNECT ON ENDPOINT:: my_Endpoint TO [user1]

Friday, March 16, 2012

"Remote access to report data sources and/or the report server database" is not suppor

I'm using SQL Express with Advance Services & I get this error when I try to deploy my reports. Why do I get this error

  • An error has occurred during report processing. (rsProcessingAborted)
  • Cannot create a connection to data source 'EDPSYS'. (rsErrorOpeningConnection)
  • The feature: "Remote access to report data sources and/or the report server database" is not supported in this edition of Reporting Services. (rsOperationNotSupported)

    Justin Song

    SQL Express does not allow access to data sources not on the local machine. You will need to point to local data in your report.|||

    I'm new user of Reporting Services. I'm trying use Samples (AdventureWorks) and can't use it because this error. How do I point to local data in this samples? I create a Data Source named AdventureWorks with this string:

    data source="(local)";persist security info=False;initial catalog=AdventureWorks

    but is not working...

    |||

    I've seen this problem before. The way I solved it previously was to update the connectionstring from an old-style ADO format to the new SQL 2005 format.

    Old:

    data source=(local);persist security info=False;initial catalog=AdventureWorks

    New:

    Server=(local); Database=AdventureWorks; Trusted_Connection=yes;

    Hope this helps. Mark

  • "Remote access to report data sources and/or the report server database" is not suppor

    I'm using SQL Express with Advance Services & I get this error when I try to deploy my reports. Why do I get this error

  • An error has occurred during report processing. (rsProcessingAborted)
  • Cannot create a connection to data source 'EDPSYS'. (rsErrorOpeningConnection)
  • The feature: "Remote access to report data sources and/or the report server database" is not supported in this edition of Reporting Services. (rsOperationNotSupported)

    Justin Song

    SQL Express does not allow access to data sources not on the local machine. You will need to point to local data in your report.|||

    I'm new user of Reporting Services. I'm trying use Samples (AdventureWorks) and can't use it because this error. How do I point to local data in this samples? I create a Data Source named AdventureWorks with this string:

    data source="(local)";persist security info=False;initial catalog=AdventureWorks

    but is not working...

    |||

    I've seen this problem before. The way I solved it previously was to update the connectionstring from an old-style ADO format to the new SQL 2005 format.

    Old:

    data source=(local);persist security info=False;initial catalog=AdventureWorks

    New:

    Server=(local); Database=AdventureWorks; Trusted_Connection=yes;

    Hope this helps. Mark

  • "Remote access to report data sources and/or the report server database" is not su

    I'm using SQL Express with Advance Services & I get this error when I try to deploy my reports. Why do I get this error

  • An error has occurred during report processing. (rsProcessingAborted)

  • Cannot create a connection to data source 'EDPSYS'. (rsErrorOpeningConnection)

  • The feature: "Remote access to report data sources and/or the report server database" is not supported in this edition of Reporting Services. (rsOperationNotSupported)

    Justin Song

    SQL Express does not allow access to data sources not on the local machine. You will need to point to local data in your report.|||

    I'm new user of Reporting Services. I'm trying use Samples (AdventureWorks) and can't use it because this error. How do I point to local data in this samples? I create a Data Source named AdventureWorks with this string:

    data source="(local)";persist security info=False;initial catalog=AdventureWorks

    but is not working...

    |||

    I've seen this problem before. The way I solved it previously was to update the connectionstring from an old-style ADO format to the new SQL 2005 format.

    Old:

    data source=(local);persist security info=False;initial catalog=AdventureWorks

    New:

    Server=(local); Database=AdventureWorks; Trusted_Connection=yes;

    Hope this helps. Mark

  • Friday, February 24, 2012

    "An error occurred during local report processing" for Preview

    My report worked fine for a while, but suddenly I started getting the following errors for Preview:

    An error occurred during local report processing.

    An error has occurred during report processing.

    Index was outside the bounds of the array.

    I restarted VS, then rebooted my machine and the problem persists.Everything including the report posted to the server works fine. It is just the Preview of this report does not work any more.Preview of other reports work fine.

    Any tip to resolve this problem would be greatly appreciated.

    Is this the same error that is found in the log?|||

    Simone, sorry for my ignorance. Could you tell me which log you referred to?

    |||

    I renamed the report's *.rdl.data to *.rdl.data.old following a tip from another thread (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=284496&SiteID=1) and the problem was solved.

    I do not fully understand this. It seems the problem was caused by a VS bug.