IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

ASP Discussion :

incorporer mon fichier Chart.dll ou chart.exe dans mon dossier div.asp


Sujet :

ASP

  1. #1
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Janvier 2014
    Messages
    146
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Janvier 2014
    Messages : 146
    Points : 66
    Points
    66
    Par défaut incorporer mon fichier Chart.dll ou chart.exe dans mon dossier div.asp
    Salut á tous,
    j´ai posé mon Probleme dernierement au forum ASP.NET, l´on m a dit que c´est dans ce Forum que je pourrais trouver la solution.j´espere que quelqu´un pourra m´aider.
    Déja je n´ai aucune idée de ASP. j´ai resu un fichier div.asp qui a été écrit avec le Langage "javascript". ce fichier genere une page Web avec certains Graphique lorsqu´on l éxecute.
    cependant j´ai programmé dans Visual Studio avec le langage C# un graphique "Chart Control". j´aimerais donc insérer mon code Executabe .exe dans ce fichier div.asp afin que a l´execution de ce fichier div.asp mon graphique apparaisse sur la page.
    comment incorporer mon fichier Chart.dll ou chart.exe dans mon dossier div.asp?
    quelqu´un a un exemple de code?
    merci d avance

  2. #2
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Janvier 2014
    Messages
    146
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Janvier 2014
    Messages : 146
    Points : 66
    Points
    66
    Par défaut
    Bonjour á tous,
    j´ai creer un Assembly (DLL) de mon code C# que j´ai pu enregistrer sur le Server á l´aide de Regasm.exe et de gacutil.exe que m´offre Microsoft Framework. Cependant mon DLL a été enregistré a l endroit suivant C:\Windows\Microsoft.NET\assembly\GAC_MSIL\TestDot \v4.0_1.0.0.0__7d9ae505f47c15ea\TestDot.dll Au lieu de C: \ Windows \ Assembly \. je ne sais pas si sa cause probleme

    Puisque mon DLL se trouve deja enregistrer dans le server, quel code doit je ecrire dans mon fichier div.asp afin que mon dll soit éxecuté lorsque l´on execute la page asp.

    Merci d´avance pour vos Reactions

  3. #3
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Janvier 2014
    Messages
    146
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Janvier 2014
    Messages : 146
    Points : 66
    Points
    66
    Par défaut
    Bonjour,
    lorsque je fais l'instanciation dans ASP avec le code suivant

    <%var myDLL = Server.CreateObject("TestDot.myClass")
    %>

    j´obtiens l´erreur suivante

    Error:
    Server object, ASP 0177 (0x800401F)

    800401f3
    /internal/TestAngel/anonymous/div_Gisele.asp, line 942


    SVP comment corriger cette Erreur? aidez moi!
    merci

  4. #4
    Expert confirmé
    Avatar de pc75
    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    3 662
    Détails du profil
    Informations personnelles :
    Âge : 68
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Septembre 2004
    Messages : 3 662
    Points : 4 047
    Points
    4 047
    Par défaut
    Bonjour,

    Comment as tu enregistré ta DLL sur le serveur ?

  5. #5
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Janvier 2014
    Messages
    146
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Janvier 2014
    Messages : 146
    Points : 66
    Points
    66
    Par défaut
    Bonjour,
    je l ai enregistrer en donnant les lignes suivantes dans la commande Windo (regasm /tlb:TestDot.tlb C:\Users\GMan\Desktop\TestDot\TestDot\bin\Debug\TestDot.dll)
    et gacutil.exe (gacutil -i C:\Users\GMan\Desktop\TestDo\TestDotp\bin\Debug\TestDot.dll)
    de Microsoft. et ma DLL se trouve actuellement sur le lien suivant C:\Windows\Microsoft.NET\assembly\GAC_MSIL\TestDot \v4.0_1.0.0.0__7d9ae505f47c15ea\TestDot.dll
    j ai essayé (regsvr32 C:\Users\GMan\Desktop\TestDot\TestDot\bin\Debug\TestDot.dll) mais j´obtiens l´erreur suivante
    The module "C:\Users\Gman\De.....\TestDot.dll" was loaded but the entry-point DllRegisterService was not found.
    Make sure that
    "C:\Users\Gman\De.....\TestDot.dll" is a valid DLL or OCX file and then try again
    j´ai cherché a google comment remedier a cette erreur plusieurs solutions m ont été proposé mais l erreur s´affiche toujours. que dois je faire concretement pour ne plus avoir cette erreur?
    puisqu´il s´agit d´un graphique Chart j´aimerais que celui que j ´ai crée a C# s affiche dans la page

    merci encore pour vos reponses

    cordialement

  6. #6
    Modérateur
    Avatar de roro06
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    1 480
    Détails du profil
    Informations personnelles :
    Âge : 54
    Localisation : France

    Informations forums :
    Inscription : Avril 2007
    Messages : 1 480
    Points : 1 978
    Points
    1 978
    Par défaut
    Bonjour

    Il y a un peu mélange des genre : le C# concerne l'asp.net.
    l'ASP tout court se programme en vbscript (ou javascript). On ne peut pas mélanger les deux techno dans une même page.
    Intégrer un exe dans une page asp n'est pas possible
    il faudrait dans un premier temps nous montrer le code de ton div.asp


    N'oubliez pas de consulter les FAQ ASP et les cours et tutoriels ASP

    " La vie c'est quelque chose de très fort et de très beau.... La vie appartient a tous les vivants. It's both a dream and a feeling. C'est être ce que nous ne sommes pas sans le rester. La vie c'est mourir aussi....Et mourir c'est vraiment strong...c'est rester en vie au delà de la mort...Tous ceux qui sont morts n'ignorent pas de le savoir."
    (J.C. VanDamme, humoriste et philosophe belge . A moins que ce ne soit l'inverse ...)

    Chuck Norris comprend JC Van Damme.

  7. #7
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Janvier 2014
    Messages
    146
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Janvier 2014
    Messages : 146
    Points : 66
    Points
    66
    Par défaut
    Bonjour,
    le code du document div.asp est tres long, voila une partie de ce code. c´est pas moi qui l´ai programmé.
    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
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    <%@  language="JScript" %>
     
    <script language="javascript" runat="server"></script>
    <%
        var cn = Server.CreateObject("ADODB.Connection");
        var ProvStr = "Provider=SQLNCLI10; Data Source=sql3; Initial Catalog=BarForce; Integrated Security=SSPI;"
        cn.Open(ProvStr);
     
        var sql = cn
     
        var today = new Date();
        var today_getDay = today.getDay();
     
        var yesterday = new Date(today);
        var yesterday_getDay = 1;
     
        if (today_getDay==1){
            yesterday_getDay =3;
        }        my_month = my_month + 1;
                function change_Date_Format_Field(myField_Date)
        {
            if (myField_Date == null || myField_Date == "")
                return "";
     
            strQuery = "RIGHT(REPLICATE('0', 2) + CAST(DATEPART(DAY,"+ myField_Date +") AS varchar(2)), 2) + '.' +"
                        + "RIGHT(REPLICATE('0', 2) + CAST(DATEPART(MONTH, "+ myField_Date +") AS varchar(2)), 2) + '.' + "
                        + "CAST(YEAR("+ myField_Date +") AS VARCHAR(4)) +'  '+ "
                        + "Convert(varchar(5), "+ myField_Date +", 108) "
     
            return strQuery;
        }  
        var myColorGreen = "#73bf26";
        var myColorRed =  "#d13426";
     
    %>
     
    <html>
    <head>
    <title>chayns® Live App-Infos</title>
     
    <style>
     
    p {
     
    margin: 0px;
    font-family: Arial;
    font-size: 14px;
     
    }
     
    .small_text {
     
    font-size: 13px;
    color: #8c8c8c;
     
    }
     
    </style>
     
    </head>
     
    <body style=" margin: 0px; background-color: #edf0f2;">
     
    <div style="width: 100%; background-color: #5798d9; height: 40%;">
    <div style="; width: 1220px; height: 540px; top: 50%; left: 50%; margin-top: -300px; margin-left: -610px; border: #cccccc 0px solid;">
     
    	<div style="; width: 286px; height: 26px; left: 50%; margin-top: 20px; margin-left: -143px; background-image: url('allinfos_title.png');"></div>
     
    	<div style="float: left; width: 280px; height: 415px; margin-top: 15px; margin-left: 35px; background-image: url('karte.png');">
    		<div style="; width: 50px; height: 50px; left: 50%; margin-left: -25px; margin-top: 20px; background-image: url('icon_apple.png');"></div>
    		<p style="margin-top: 9px; color: #8c8c8c;" align="center"><b>Letzte App hochgeladen</b></p>
    		<p style="margin-top: 6px; color: #73bf26;" align="center"><b>
    		<%
    		var sub_query = change_Date_Format_Field("iOS_EndTime");
    		strQuery_Datum_Formiert = "SELECT TOP 1" + sub_query + "FROM ChaynsProductionStatus (NOLOCK) WHERE iOS_EndTime IS NOT NULL ORDER BY iOS_EndTime DESC";
    		var rs = sql.execute(strQuery_Datum_Formiert)
    		if (!rs.EOF) {
    		var myValue_Datum_Formatiert = rs(0) + "";
    		rs.movenext();
    		}
    		var mySeconds = get_TimeLeft_to_now (myValue_Datum_Formatiert);
    		var str_full_mySeconds = secondsToString(mySeconds);
    		if (str_full_mySeconds[1] == "green") { Response.Write("<span>"); }
    		if (str_full_mySeconds[1] == "red")   { Response.Write("<span style='color: #d13426;'>");}
    		Response.Write(str_full_mySeconds[0]);
    		Response.Write("");
    		%>
    		</b></p>
    		<p style="margin-top: 9px; color: #8c8c8c;" align="center"><b>Telechargement journalier</b></p>
    		<p style="margin-top: 6px; color: #73bf26; font-size: 17px;" align="center"><b>
    		    strQuery_today = "select  COUNT(ITC_Status1) from SlitteApp where ITC_Status1 = 'Waiting For Review'  AND CONVERT(date,ITC_LastModified1) >= Convert(date, GETDATE())";
    		rs = sql.execute(strQuery_today)
    		if (!rs.EOF) {
    		var myValue_Today= rs(0) + "";
    		rs.movenext();
    		}
    		strQuery_yesterday = "select  COUNT(ITC_Status1) from SlitteApp where ITC_Status1 = 'Waiting For Review'  AND CONVERT(date,ITC_LastModified1) >= Convert(date, GETDATE()-1) AND CONVERT(date,ITC_LastModified1) < Convert(date, GETDATE())";
    		if( today_getDay == 1){ strQuery_yesterday = "select  COUNT(ITC_Status1) from SlitteApp where ITC_Status1 = 'Waiting For Review'  AND CONVERT(date,ITC_LastModified1) >= Convert(date, GETDATE()-3) AND CONVERT(date,ITC_LastModified1) < Convert(date, GETDATE())";}
    		rs = sql.execute(strQuery_yesterday)
    		if (!rs.EOF) {
    		var myValue_yesterday= rs(0) + "";
    		rs.movenext();
    		}
    		Response.Write("");
    		Response.Write(myValue_yesterday +" / " + myValue_Today);
    		Response.Write("");
    		%>
     
    </div>
     
    </body>
     
    </html>
    Merci
    cordialement

  8. #8
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Janvier 2014
    Messages
    146
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Janvier 2014
    Messages : 146
    Points : 66
    Points
    66
    Par défaut
    Bonjour,
    j´ai crée un simple programme "classe Bibliotheque" ayant une seule Class "Class1" que j´ai pu enregistrer dans le cache C:\Windows\assembly\TestDll .j´ai crée un nouveau dossier Test.asp dans lequel je fais appel a ma DLL.Mais je n´arrive pas toujours a faire appel a cette DLL dans ASP. avec le code suivant
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    var DLL = Server.CreateObject("TestDll.Class1");
    la meme syntaxe a été utilisé pour une autre assembly existant dans le meme cache dans un autre dossier "asp" de la maniere suivante mais cela n´affiche pas d´erreur quand je l´éxecute dans mon fichier "Test.asp"
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    var cn = Server.CreateObject("ADODB.Connection");
    voila le contenu de mon fichier Test.asp
    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
    <%@  language="JScript" %>
    <script language="javascript" runat="server"></script>
         <%        
    //var cn = Server.CreateObject("ADODB.Connection");
     
    var DLL = Server.CreateObject("TestDotNetPhp.Class1");
    %>
    <html>
    <head>
    <title>chayns® Live App-Infos</title>
    <style>
    p {
    margin: 0px;
    font-family: Arial;
    font-size: 14px;
    }
    .small_text {
    font-size: 13px;
    color: #8c8c8c;
    }
    </style>
    </head>
    <body style=" margin: 0px; background-color: #edf0f2;">
    </body>
    </html>
    pourquoi l´erreur s´affiche t-elle lorsque j´execute mon fichier Test.asp?
    merci

Discussions similaires

  1. Réponses: 1
    Dernier message: 10/10/2011, 12h11
  2. ajouter un fichier exe dans mon projet d'installation
    Par mounim_taoufik dans le forum Windows Forms
    Réponses: 0
    Dernier message: 09/12/2009, 21h39
  3. Utiliser un Bitmap se trouvant dans mon fichier .dll
    Par Coussati dans le forum Débuter
    Réponses: 3
    Dernier message: 02/11/2009, 19h31
  4. Réponses: 4
    Dernier message: 10/04/2007, 09h37
  5. Réponses: 7
    Dernier message: 26/06/2003, 09h11

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo