Showing posts with label sample. Show all posts
Showing posts with label sample. Show all posts

Wednesday, March 7, 2012

Problems with Create Endpoint

I'm on XP running SQL 2005 (9.0.1314) trying to create and endpoint on my local machine.

I'm trying to run the Adventureworks sample code:

CREATE PROCEDURE [dbo].[uspGetPersonInfo]

@.ID [int]

AS

BEGIN

SET NOCOUNT ON;

SELECT [FirstName],[MiddleName],[LastName]

FROM [AdventureWorks].[Person].[Contact]

WHERE ContactID = @.ID

END;

CREATE ENDPOINT SQLEP_AWPersons

STATE = STARTED

AS HTTP

(

PATH = '/AWpersons',

AUTHENTICATION = (INTEGRATED),

PORTS = (CLEAR),

SITE = '*'

)

FOR SOAP

(

WEBMETHOD 'PersonInfo'

(NAME='AdventureWorks.dbo.uspGetPersonInfo', FORMAT=ROWSETS_ONLY, schema=STANDARD),

BATCHES = DISABLED,

WSDL = DEFAULT,

DATABASE = 'AdventureWorks',

NAMESPACE = 'http://Adventure-Works/Persons'

)
I get the following error message:

Msg 7890, Level 16, State 1, Line 1

An error occurred while attempting to register the endpoint 'SQLEP_AWPersons'. One or more of the ports specified in the CREATE ENDPOINT statement may be bound to another process. Attempt the statement again with a different port or use netstat to find the application currently using the port and resolve the conflict.

I did run netstat but since I am using Ports(Clear) I'm not sure what port could be giving the conflict.

Thanks for any help on this matter.

Did you get this sorted ?
I am having exactly the same problem...
|||Try

http://www.cubido.at/Blog/tabid/176/EntryID/36/Default.aspx
|||Did you checked netstat or httpcfg.exe for that ?

HTH, Jens Suessmeyer.

Problems with Create Endpoint

I'm on XP running SQL 2005 (9.0.1314) trying to create and endpoint on my local machine.

I'm trying to run the Adventureworks sample code:

CREATE PROCEDURE [dbo].[uspGetPersonInfo]

@.ID [int]

AS

BEGIN

SET NOCOUNT ON;

SELECT [FirstName],[MiddleName],[LastName]

FROM [AdventureWorks].[Person].[Contact]

WHERE ContactID = @.ID

END;

CREATE ENDPOINT SQLEP_AWPersons

STATE = STARTED

AS HTTP

(

PATH = '/AWpersons',

AUTHENTICATION = (INTEGRATED),

PORTS = (CLEAR),

SITE = '*'

)

FOR SOAP

(

WEBMETHOD 'PersonInfo'

(NAME='AdventureWorks.dbo.uspGetPersonInfo', FORMAT=ROWSETS_ONLY, schema=STANDARD),

BATCHES = DISABLED,

WSDL = DEFAULT,

DATABASE = 'AdventureWorks',

NAMESPACE = 'http://Adventure-Works/Persons'

)
I get the following error message:

Msg 7890, Level 16, State 1, Line 1

An error occurred while attempting to register the endpoint 'SQLEP_AWPersons'. One or more of the ports specified in the CREATE ENDPOINT statement may be bound to another process. Attempt the statement again with a different port or use netstat to find the application currently using the port and resolve the conflict.

I did run netstat but since I am using Ports(Clear) I'm not sure what port could be giving the conflict.

Thanks for any help on this matter.

Did you get this sorted ?
I am having exactly the same problem...|||Try

http://www.cubido.at/Blog/tabid/176/EntryID/36/Default.aspx|||Did you checked netstat or httpcfg.exe for that ?

HTH, Jens Suessmeyer.

Problems with C# Sample to Print Reports

I am having permission problems with the sample report printing program from
Bryan Keller. (http://www.csharphelp.com/archives3/archive545.html)
The DefaultCredentials from the CredentialCache certainly has no data, and I
don't seem to be able to get valid data into the cache
Not sure about the relative path of the report either. I am running against
my own report, since I don't have the samples installed. I am using:
/Report Project1/118-2 as a path.
Don't know if that is correct, but that is what I see when I run it in the
browser. Except the '/' char turns into %2F, and the space into a '+'.
So it's %2FReport+Project1%2F118-2 in the browser.
Has anybody else tried this sample program with their own reports?
GerhardThe path of a report is relative to the root on the Report
Server.
So in the Report Manager if you see your report , lets say
report1 under the folder Report Project1 then the path of
your report is Report Project1/report1.
>--Original Message--
>I am having permission problems with the sample report
printing program from
>Bryan Keller.
(http://www.csharphelp.com/archives3/archive545.html)
>The DefaultCredentials from the CredentialCache certainly
has no data, and I
>don't seem to be able to get valid data into the cache
>Not sure about the relative path of the report either. I
am running against
>my own report, since I don't have the samples installed.
I am using:
>/Report Project1/118-2 as a path.
>Don't know if that is correct, but that is what I see
when I run it in the
>browser. Except the '/' char turns into %2F, and the
space into a '+'.
>So it's %2FReport+Project1%2F118-2 in the browser.
>Has anybody else tried this sample program with their own
reports?
>Gerhard
>
>.
>|||Ok, thanks, Ravi, that makes sense.
What about the DefaultCredentials? There are null strings for user/pw and
domain right now.
How do I get my domain credentials into the cache?
Gerhard
"Ravi" <anonymous@.discussions.microsoft.com> wrote in message
news:253e01c48e1e$c8cae640$a601280a@.phx.gbl...
> The path of a report is relative to the root on the Report
> Server.
> So in the Report Manager if you see your report , lets say
> report1 under the folder Report Project1 then the path of
> your report is Report Project1/report1.
> >--Original Message--
> >I am having permission problems with the sample report
> printing program from
> >Bryan Keller.
> (http://www.csharphelp.com/archives3/archive545.html)
> >
> >The DefaultCredentials from the CredentialCache certainly
> has no data, and I
> >don't seem to be able to get valid data into the cache
> >
> >Not sure about the relative path of the report either. I
> am running against
> >my own report, since I don't have the samples installed.
> I am using:
> >/Report Project1/118-2 as a path.
> >Don't know if that is correct, but that is what I see
> when I run it in the
> >browser. Except the '/' char turns into %2F, and the
> space into a '+'.
> >So it's %2FReport+Project1%2F118-2 in the browser.
> >
> >Has anybody else tried this sample program with their own
> reports?
> >
> >Gerhard
> >
> >
> >.
> >|||Ok, got the path and credentials problem solved. I can elaborated if it
will help others.
Path is: /folder/report
Credentials is: rs.Credentials = new
NetworkCredential("user","pw","domain")
DefaultCredentials may work if you're on a Lan, I'm on a VPN.
But now the question is: How do I pass parameters, as part of the URL? And
syntax?
Yeah I know, I'm a pain. <g> Sorry, this is all hitting me a little fast
too.
Gerhard
"Ravi" <anonymous@.discussions.microsoft.com> wrote in message
news:253e01c48e1e$c8cae640$a601280a@.phx.gbl...
> The path of a report is relative to the root on the Report
> Server.
> So in the Report Manager if you see your report , lets say
> report1 under the folder Report Project1 then the path of
> your report is Report Project1/report1.
> >--Original Message--
> >I am having permission problems with the sample report
> printing program from
> >Bryan Keller.
> (http://www.csharphelp.com/archives3/archive545.html)
> >
> >The DefaultCredentials from the CredentialCache certainly
> has no data, and I
> >don't seem to be able to get valid data into the cache
> >
> >Not sure about the relative path of the report either. I
> am running against
> >my own report, since I don't have the samples installed.
> I am using:
> >/Report Project1/118-2 as a path.
> >Don't know if that is correct, but that is what I see
> when I run it in the
> >browser. Except the '/' char turns into %2F, and the
> space into a '+'.
> >So it's %2FReport+Project1%2F118-2 in the browser.
> >
> >Has anybody else tried this sample program with their own
> reports?
> >
> >Gerhard
> >
> >
> >.
> >|||> Has anybody else tried this sample program with their own reports?
After making modifications for credencials I have used this code
successfully. Thursday I will try running it as a assembly from a web
page - we shall see. Looks good.
dlr
"Gerhard Paulman" <gerhardp@.inch.com> wrote in message
news:%23M$IbFejEHA.3428@.TK2MSFTNGP11.phx.gbl...
> I am having permission problems with the sample report printing program
from
> Bryan Keller. (http://www.csharphelp.com/archives3/archive545.html)
> The DefaultCredentials from the CredentialCache certainly has no data, and
I
> don't seem to be able to get valid data into the cache
> Not sure about the relative path of the report either. I am running
against
> my own report, since I don't have the samples installed. I am using:
> /Report Project1/118-2 as a path.
> Don't know if that is correct, but that is what I see when I run it in the
> browser. Except the '/' char turns into %2F, and the space into a '+'.
> So it's %2FReport+Project1%2F118-2 in the browser.
> Has anybody else tried this sample program with their own reports?
> Gerhard
>