Bonjour,
Je développe une appli. Silverlight. J'ai créer un WebService dans mon projet Web, et je veux ajouter la reference à ce WebService dans le projet Silverlight.
Dans la fenêtre d'ajout d'un Service reference, je sélectionne mon WebService et l'orsque je valide ça ne marche pas.
Voici le détail du message d'erreur.
Si quelqu'un voit où est le problème ça m'aiderai bien.Une erreur s'est produite lors du téléchargement de 'http://localhost:1441/WebService2.asmx'.
La demande a échoué avec le message d'erreur*:
--
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 <html> <head> <title>Erreur d'analyse</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } </style> </head> <body bgcolor="white"> <span><H1>Erreur du serveur dans l'application '/'.<hr width=100% size=1 color=silver></H1> <h2> <i>Erreur d'analyse</i> </h2></span> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> <b> Description*: </b>Une erreur s'est produite au cours de l'analyse d'une ressource requise pour répondre à cette demande. Veuillez consulter ci-dessous les détails relatifs à l'erreur d'analyse en question, puis modifier votre fichier source de manière appropriée. <br><br> <b> Message d'erreur de l'analyseur: </b>Impossible de créer le type 'AffichageInfoAPX.Web.WebService1'.<br><br> <b>Erreur source:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code><pre> <font color=red>Ligne 1*: <%@ WebService Language="C#" CodeBehind="WebService2.asmx.cs" Class="AffichageInfoAPX.Web.WebService1" %> </font></pre></code> </td> </tr> </table> <br>
Merci!!
Partager