Click here to Skip to main content
15,886,774 members
Home / Discussions / C#
   

C#

 
GeneralRe: copying feature from Mac OS X Tiger Pin
Dave Kreskowiak30-Apr-05 4:38
mveDave Kreskowiak30-Apr-05 4:38 
GeneralRe: copying feature from Mac OS X Tiger Pin
Luis Alonso Ramos30-Apr-05 11:01
Luis Alonso Ramos30-Apr-05 11:01 
GeneralRe: copying feature from Mac OS X Tiger Pin
ekynox30-Apr-05 15:18
ekynox30-Apr-05 15:18 
GeneralRe: copying feature from Mac OS X Tiger Pin
Luis Alonso Ramos30-Apr-05 15:36
Luis Alonso Ramos30-Apr-05 15:36 
GeneralRe: copying feature from Mac OS X Tiger Pin
ekynox1-May-05 3:33
ekynox1-May-05 3:33 
GeneralDeveloping On Pin
MrJJKoolJ30-Apr-05 3:27
MrJJKoolJ30-Apr-05 3:27 
GeneralRe: Developing On Pin
Dave Kreskowiak30-Apr-05 3:59
mveDave Kreskowiak30-Apr-05 3:59 
GeneralRe: Developing On Pin
MrJJKoolJ30-Apr-05 6:09
MrJJKoolJ30-Apr-05 6:09 
Hi,

This is the exact Error in my web proxy:

An unhandled exception of type 'System.Configuration.ConfigurationException' occurred in system.dll

Additional information: This is an unexpected token. The expected token is 'NAME'. Line 4, position 36.


I have a web service thats local and created a web ref called lh1.
At the top of my win form where I call the web ref is this:
using EMS.lh1;

private static lh1.EMS1 wsHrs = new lh1.EMS1();

When I enter win form that has the call to the web service it bombs as soon as I enter the proxy at:
public EMS1() {<-- This line

this.Url = "http://localhost/WSEMS1/EMS1.asmx";

}



This is what the top of my proxy file code looks like, I added nothing to
it:

[System.Diagnostics.DebuggerStepThroughAttribute()]

[System.ComponentModel.DesignerCategoryAttribute("code")]

[System.Web.Services.WebServiceBindingAttribute(Name="EMS1Soap",
Namespace="http://tempuri.org/")]
public class EMS1 : System.Web.Services.Protocols.SoapHttpClientProtocol {


/// <remarks>

public EMS1() {

this.Url = "http://localhost/WSEMS1/EMS1.asmx";

}


Following Error is: This is an unexpected token. The expected token is
'NAME'

What am I doing wrong?


public EMS1() {
this.Url = "http://localhost/WSEMS1/EMS1.asmx";
}

This line is located in the proxy file generated by my web reference.


Thanks,

JJ
GeneralUsing a mouse-offset in a Picture Box Pin
NortonC30-Apr-05 1:57
NortonC30-Apr-05 1:57 
GeneralRe: Using a mouse-offset in a Picture Box Pin
NortonC30-Apr-05 7:21
NortonC30-Apr-05 7:21 
Questionhow to bring pointer to the beginning of file(streamreader) Pin
ashu_sharma2129-Apr-05 20:54
ashu_sharma2129-Apr-05 20:54 
AnswerRe: how to bring pointer to the beginning of file(streamreader) Pin
mav.northwind29-Apr-05 21:09
mav.northwind29-Apr-05 21:09 
GeneralA problem displaying transparant-background images in DirectX Pin
arik_a29-Apr-05 20:24
arik_a29-Apr-05 20:24 
General.NET WebService Problem Pin
Praveen Nayak29-Apr-05 19:51
Praveen Nayak29-Apr-05 19:51 
GeneralSystemtray capture Pin
dubshell29-Apr-05 19:47
dubshell29-Apr-05 19:47 
Generalusb interfacing in c#.net Pin
ahsan14129-Apr-05 18:49
ahsan14129-Apr-05 18:49 
GeneralRe: usb interfacing in c#.net Pin
eggie529-Apr-05 20:31
eggie529-Apr-05 20:31 
GeneralAcessing Usb Device in C# Pin
majidbhutta29-Apr-05 17:28
majidbhutta29-Apr-05 17:28 
GeneralRe: Acessing Usb Device in C# Pin
eggie529-Apr-05 20:33
eggie529-Apr-05 20:33 
GeneralRe: Acessing Usb Device in C# Pin
Dave Kreskowiak30-Apr-05 3:38
mveDave Kreskowiak30-Apr-05 3:38 
GeneralRe: Acessing Usb Device in C# Pin
Luis Alonso Ramos30-Apr-05 8:31
Luis Alonso Ramos30-Apr-05 8:31 
GeneralSocket.LocalEndPoint is not returning expected value. Pin
johtib29-Apr-05 13:19
johtib29-Apr-05 13:19 
GeneralRe: Socket.LocalEndPoint is not returning expected value. Pin
EssOEss30-Apr-05 19:55
EssOEss30-Apr-05 19:55 
GeneralRe: Socket.LocalEndPoint is not returning expected value. Pin
johtib30-Apr-05 22:37
johtib30-Apr-05 22:37 
GeneralRe: Socket.LocalEndPoint is not returning expected value. Pin
EssOEss1-May-05 0:44
EssOEss1-May-05 0:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.