Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Adding web reference, trouble with disco-file.


Message #1 by "Mia Larsson" <hdi99mla@s...> on Thu, 11 Apr 2002 09:29:26
Hi,

I have created a dll with a public function and it works just fine. But 
when I try to add a web reference from the dll to a new web application I 
get the following errormessage: 

"The content type 'application/octet-stream' is not valid for an XML 
document."

The problems seems to come when adding the DISCO-file to the project. I 
have also tried one example from a book, which works, but as soon as I try 
to modify the code and update the web reference the same error shows.

Does anyone have a clue what´s wrong?

Thanks!
Mia Larsson
Message #2 by "Minh T. Nguyen" <nguyentriminh@y...> on Thu, 11 Apr 2002 10:54:23 -0700
Mia,

	Hm. When you adding a web reference, do you point to a URL with
.asmx extension? That's what I usually do and it works fine.

Minh.

-----Original Message-----
From: Mia Larsson [mailto:hdi99mla@s...]
Sent: Thursday, April 11, 2002 9:29 AM
To: ASP+
Subject: [aspx] Adding web reference, trouble with disco-file.


Hi,

I have created a dll with a public function and it works just fine. But
when I try to add a web reference from the dll to a new web application
I
get the following errormessage:

"The content type 'application/octet-stream' is not valid for an XML
document."

The problems seems to come when adding the DISCO-file to the project. I
have also tried one example from a book, which works, but as soon as I
try
to modify the code and update the web reference the same error shows.

Does anyone have a clue what=B4s wrong?

Thanks!
Mia Larsson

Message #3 by "Mia Larsson" <hdi99mla@s...> on Fri, 12 Apr 2002 09:16:10
Thank you Minh for your answer. Now it works!
/Mia

> Mia,

	Hm. When you adding a web reference, do you point to a URL with
.asmx extension? That's what I usually do and it works fine.

Minh.

-----Original Message-----
From: Mia Larsson [mailto:hdi99mla@s...]
Sent: Thursday, April 11, 2002 9:29 AM
To: ASP+
Subject: [aspx] Adding web reference, trouble with disco-file.


Hi,

I have created a dll with a public function and it works just fine. But
when I try to add a web reference from the dll to a new web application
I
get the following errormessage:

"The content type 'application/octet-stream' is not valid for an XML
document."

The problems seems to come when adding the DISCO-file to the project. I
have also tried one example from a book, which works, but as soon as I
try
to modify the code and update the web reference the same error shows.

Does anyone have a clue what=B4s wrong?

Thanks!
Mia Larsson


  Return to Index