Click here to Skip to main content
15,902,846 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am amking client fir testing the service... i had added all the references but still getting error... defined below... plz help me


C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ConsoleApplication3.ServiceReference1;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            ServiceReference1Client cl = new ServiceReference1Client();
            cl.close();


        }
    }
}


Error 1 The type or namespace name 'ServiceReference1Client' could not be found (are you missing a using directive or an assembly reference?) D:\usb\saba final pjct\test\test\ConsoleApplication3\Program.cs 13 13 ConsoleApplication3
Posted
Comments
Sayan Bera 10-May-14 1:19am    
Check if ServiceReference1Client is the correct name of the class you are using. Generally it's Service1Client. Open the service reference in Object viewer and check.
Member 10690757 10-May-14 3:23am    
i am still getting this error

1 solution

If you Have all data to a subfolder under the wwwroot folder,
Change to copy the App_WebReference folder to the root of wwwroot folder !
And see the folowing link
why-did-i-receive-the-error-the-type-or-namespace-lt-namespace-name-gt-does-not-exist-in-the-class-or-namespace-lt-parent-namespace-gt-are-you-missing-an-assembly-reference.aspx[^]
 
Share this answer
 
Comments
Member 10690757 10-May-14 3:23am    
i am still getting this error :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900