Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Putting a Hashtable value into a Queue using a Web Service


Message #1 by "Piyush Prakash" <piyush_prakash@i...> on Wed, 8 Jan 2003 14:37:38 +0530
Hi all,
I have implemented a class which has a property which returns a
Hashtable.
Code is something like this :
	public class OrderInfo
	{
		private Hashtable orderDetails =3D new Hashtable();

		public ICollection Values
		{
			get
			{
				return orderDetails.Values;
			}
		}
	.............
	..............
	}
I have written a Web Service which puts this value (Hashtable) into a
Queue(MSMQ) after formatting it using XmlMessageFormatter.
Code for this is something like this :
	[WebMethod]
		public void SendOrder(OrderInfo tmpOrder)
		{
			MessageQueue OrderQ =3D new
MessageQueue(".\\Private$\\Orders");
=09
((XmlMessageFormatter)OrderQ.Formatter).TargetTypeNames =3D new
String[]{"BPLib.OrderInfo"};
			OrderQ.Send(tmpOrder,"Order Submission");
		}

Am getting the following error.

"You must implement a default accessor on System.Collections.ICollection
because it inherits from ICollection. "

Please help.

Regds,

Piyush
piyush_prakash@i...

-----Original Message-----
From: ASP.NET digest [mailto:aspx@p...]
Sent: Tuesday, November 19, 2002 5:31 AM
To: aspx digest recipients
Subject: aspx digest: November 18, 2002

-----------------------------------------------
When replying to the digest, please quote only
relevant material, and edit the subject line to
reflect the message you are replying to.
-----------------------------------------------

The URL for this list is:
http://p2p.wrox.com/list.asp?list=3Daspx
ASPX Digest for Monday, November 18, 2002.

1. Re: ***URGENT*** aspx installation issues
2. Http Request from Windows Service
3. RE: Datagrid Driving Me Up The Wall
4. RE: ***URGENT*** aspx installation issues
5. Re: ***URGENT*** aspx installation issues

----------------------------------------------------------------------

Subject: Re: ***URGENT*** aspx installation issues
From: "Ken Schaefer" <ken@a...>
Date: Mon, 18 Nov 2002 13:55:44 +1100
X-Message-Number: 1

Seems like .aspx pages are not being interpreted

Find aspnet_regiis.exe and run this from the command prompt:

aspnet_regiis.exe -r

to setup IIS properly

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: <bmcelhany@h...>
Subject: [aspx] ***URGENT*** aspx installation issues


: We installed the .NET redistributable (& service pack 2) on our
production
: web server last night (Win2K/IIS 5.0) and are having an issue. The
install
: went fine, but when I call up a test page that has the following code:
:
: <asp:label text=3D"Hello World" runat=3D"server"/>
:
: I just get a blank page...the server control is not rendered. When I
view
: the source, the above text is just sent through as part of the HTML
page.
: Does anyone have any ideas?
:
: Thank you very much for your help!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


----------------------------------------------------------------------

Subject: Http Request from Windows Service
From: Terrence Joubert <Terrence@v...>
Date: Mon, 18 Nov 2002 11:32:40 +0400
X-Message-Number: 2

Hi,

I want to send an HTTP Request to a web page from within a windows
service.

Will appreciate any help on how this can be done.

Thanks



Terrence J. Joubert

Software Engineer

VCS, PO BOX 1000

Victoria, Mahe






----------------------------------------------------------------------

Subject: RE: Datagrid Driving Me Up The Wall
From: "Daniel Klemm" <daniel_klemm@b...>
Date: Mon, 18 Nov 2002 11:28:58 -0000
X-Message-Number: 3

I think I have solved my problem now,

Can someone confirm this

If you Click on the button that runs some code is it executed after the
page_load event or before ?

Thanks
Daniel


----- Original Message -----
From: "Paul Riley" <rilez@t...>
To: "ASP.NET" <aspx@p...>
Sent: Friday, November 15, 2002 8:43 AM
Subject: [aspx] RE: Datagrid Driving Me Up The Wall


> Sounds like there's something slightly wrong with the order of what
you
> are doing. Can you post some code please for people to have a good
look
> at it?
>
> -----Original Message-----
> From: Daniel Klemm [mailto:daniel_klemm@b...]
> Sent: 15 November 2002 08:38
> To: ASP.NET
> Subject: [aspx] Datagrid Driving Me Up The Wall
>
> Hi all,
>
> I have a .net page with a datagrid and button,
> When I click the button it adds a new record to a database.
> However the datagrid does not display the last record added.
> I know the grid is being refreshed as when I add the next record the
> previous record added is shown.
>
> e.g.
> Add Record 1 New Record NOT Seen.
> Add Record 2 - Record 1 is now displayed.
> Add Record 3 - Record 2 is now displayed.
> etc, etc.............
>
> This is now starting to be a major milestone in my project.
>
> Can anyone help me
>
> Thanks in advance
>
> Daniel.
>
>
>
>
>
>
>


----------------------------------------------------------------------

Subject: RE: ***URGENT*** aspx installation issues
From: "Greg Quinn" <greg@i...>
Date: Mon, 18 Nov 2002 04:20:09 -0800
X-Message-Number: 4

The SDK is not neccessary to run asp.net files, only the .net runtime,
which
is 100 megs or so less in size.

Make sure you have installed MDAC 2.7 as well.



Greg


-----Original Message-----
From: Paul Riley [mailto:rilez@t...]
Sent: Friday, November 15, 2002 6:16 AM
To: ASP.NET
Subject: [aspx] RE: ***URGENT*** aspx installation issues


Try reinstalling the SDK

-----Original Message-----
From: bmcelhany@h... [mailto:bmcelhany@h...]
Sent: 15 November 2002 14:22
To: ASP.NET
Subject: [aspx] ***URGENT*** aspx installation issues

Hello,

We installed the .NET redistributable (& service pack 2) on our
production
web server last night (Win2K/IIS 5.0) and are having an issue. The
install
went fine, but when I call up a test page that has the following code:

<asp:label text=3D"Hello World" runat=3D"server"/>

I just get a blank page...the server control is not rendered. When I
view
the source, the above text is just sent through as part of the HTML
page.
Does anyone have any ideas?

Thank you very much for your help!

Brian




----------------------------------------------------------------------

Subject: Re: ***URGENT*** aspx installation issues
From: "Greg Quinn" <greg@i...>
Date: Mon, 18 Nov 2002 09:37:03 -0800
X-Message-Number: 5

Incorrect,

An asp:label does not need to be within a form tag.

If a control needs to be in a server side form tag, an exception will be
thrown, not a blank screen.



-----Original Message-----
From: Clif Dunaway [mailto:csdunaway@y...]
Sent: Friday, November 15, 2002 6:59 AM
To: ASP.NET
Subject: [aspx] Re: ***URGENT*** aspx installation issues



You need to place the code within a for, like this:
<html>
<body>
<form runat=3D"server" >
   <asp:label text=3D"Hello World" runat=3D"server"/>
</form>
</body>
</html>
 bmcelhany@h... wrote:Hello,

We installed the .NET redistributable (& service pack 2) on our
production
web server last night (Win2K/IIS 5.0) and are having an issue. The
install
went fine, but when I call up a test page that has the following code:



I just get a blank page...the server control is not rendered. When I
view
the source, the above text is just sent through as part of the HTML
page.
Does anyone have any ideas?

Thank you very much for your help!

Brian


---------------------------------
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site





---

END OF DIGEST


  Return to Index