Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# sandaru1 6/21/2006 1:00 AM (edited 6/21/2006 1:05 AM)
Hi,

Im trying to add an email service. I have written a service interface and an implementation class. I have also added an element to the services.config.
But it gives the following error whenever i have a constructor in the service implementation class, even if there are no parameters to the constructor. If i omit the constructor it works fine. What am i missing here?

The error:
# mgaerber 6/21/2006 1:51 AM
Hi,

can you submit more code or send a .patch file, so we could look into it?
# sandaru1 6/21/2006 2:19 AM (edited 6/21/2006 2:25 AM)
I have attached the service interface and implementation file.

Thanks for the quick response.
# mgaerber 6/21/2006 8:26 AM (edited 6/21/2006 8:43 AM)
A very good tutorial for what you are trying to accomplish is:
http://www.codeproject.com/cs/design/introducingcastle.asp

You did not provide the config file but if you include parameters in the constructor of your service, the are mandatory, so

- do not add parameters
or
- add to your config:
 <component id="your.component">
                <parameters>
                    <host>localhost </host>
                    <port>110 </port>
                </parameters>
            </component>
# sandaru1 6/22/2006 12:00 AM
Sorry i couldn't attach this before. But i have added the following lines in services.config. Still im getting the error. I have also read that tutorial. Im trying to use this for the Contact Us module.


# sandaru1 6/23/2006 7:37 AM
I still havent got a solution to my problem. I think i have done everything im supposed to do.

Can somebody please help