ASP.NET XSP2 niedzia

Potrzebujesz pomocy z C, C++, perl, python, itp.
matekkkkk
Posty: 5
Rejestracja: 07 marca 2009, 15:47

ASP.NET XSP2 niedziałający skrypt usług sieciowych

Post autor: matekkkkk »

Witam.
Mam zadanie połączyć min. dwie usługi żeby działały, ale to mniej ważne.

To podobno działa, jednak jak wrzucam na serwer to nie chce się uruchomić.

Zainstalowałem
http://www.debianhelp.co.uk/mono.htm

Uruchomiłe xsp2

Kod: Zaznacz cały

http://195.149.100.150:8090/
I nie działa? Dla potwierdzenia, że raczej jest w porządku to demo asp.net działa.

Kod Web.config wygląda tak:

Kod: Zaznacz cały

<?xml version="1.0"?>
<configuration>
    <appSettings/>
    <connectionStrings/>
    <system.web>
        <compilation debug="true" targetFramework="4.0">
        </compilation>
        <!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
        <authentication mode="Windows"/>
        <!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
        <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web>
    <!-- 
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
    <system.serviceModel>
        <bindings>
   <basicHttpBinding>
    <binding name="GBEAWHolidayServiceSoap" closeTimeout="00:01:00"
     openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
     allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
     maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
     messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
     useDefaultWebProxy="true">
     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
      maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     <security mode="None">
      <transport clientCredentialType="None" proxyCredentialType="None"
       realm="" />
      <message clientCredentialType="UserName" algorithmSuite="Default" />
     </security>
    </binding>
    <binding name="GBSCTHolidayServiceSoap" closeTimeout="00:01:00"
     openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
     allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
     maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
     messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
     useDefaultWebProxy="true">
     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
      maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     <security mode="None">
      <transport clientCredentialType="None" proxyCredentialType="None"
       realm="" />
      <message clientCredentialType="UserName" algorithmSuite="Default" />
     </security>
    </binding>
    <binding name="GBNIRHolidayServiceSoap" closeTimeout="00:01:00"
     openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
     allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
     maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
     messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
     useDefaultWebProxy="true">
     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
      maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     <security mode="None">
      <transport clientCredentialType="None" proxyCredentialType="None"
       realm="" />
      <message clientCredentialType="UserName" algorithmSuite="Default" />
     </security>
    </binding>
    <binding name="News_ServiceSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
     receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
     bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
     maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
     messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
     useDefaultWebProxy="true">
     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
      maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     <security mode="None">
      <transport clientCredentialType="None" proxyCredentialType="None"
       realm="" />
      <message clientCredentialType="UserName" algorithmSuite="Default" />
     </security>
    </binding>
   </basicHttpBinding>
   <customBinding>
    <binding name="GBEAWHolidayServiceSoap12">
     <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
      messageVersion="Soap12" writeEncoding="utf-8">
      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
       maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     </textMessageEncoding>
     <httpTransport manualAddressing="false" maxBufferPoolSize="524288"
      maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous"
      bypassProxyOnLocal="false" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard"
      keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous"
      realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
      useDefaultWebProxy="true" />
    </binding>
    <binding name="GBSCTHolidayServiceSoap12">
     <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
      messageVersion="Soap12" writeEncoding="utf-8">
      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
       maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     </textMessageEncoding>
     <httpTransport manualAddressing="false" maxBufferPoolSize="524288"
      maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous"
      bypassProxyOnLocal="false" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard"
      keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous"
      realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
      useDefaultWebProxy="true" />
    </binding>
    <binding name="GBNIRHolidayServiceSoap12">
     <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
      messageVersion="Soap12" writeEncoding="utf-8">
      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
       maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     </textMessageEncoding>
     <httpTransport manualAddressing="false" maxBufferPoolSize="524288"
      maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous"
      bypassProxyOnLocal="false" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard"
      keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous"
      realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
      useDefaultWebProxy="true" />
    </binding>
   </customBinding>
  </bindings>
        <client>
   <endpoint address="http://www.holidaywebservice.com/Holidays/GBEAW/GBEAWHolidayService.asmx"
    binding="basicHttpBinding" bindingConfiguration="GBEAWHolidayServiceSoap"
    contract="EnglandHols.GBEAWHolidayServiceSoap" name="GBEAWHolidayServiceSoap" />
   <endpoint address="http://www.holidaywebservice.com/Holidays/GBEAW/GBEAWHolidayService.asmx"
    binding="customBinding" bindingConfiguration="GBEAWHolidayServiceSoap12"
    contract="EnglandHols.GBEAWHolidayServiceSoap" name="GBEAWHolidayServiceSoap12" />
   <endpoint address="http://www.holidaywebservice.com/Holidays/GBSCT/GBSCTHolidayService.asmx"
    binding="basicHttpBinding" bindingConfiguration="GBSCTHolidayServiceSoap"
    contract="ScotlandHols.GBSCTHolidayServiceSoap" name="GBSCTHolidayServiceSoap" />
   <endpoint address="http://www.holidaywebservice.com/Holidays/GBSCT/GBSCTHolidayService.asmx"
    binding="customBinding" bindingConfiguration="GBSCTHolidayServiceSoap12"
    contract="ScotlandHols.GBSCTHolidayServiceSoap" name="GBSCTHolidayServiceSoap12" />
   <endpoint address="http://www.holidaywebservice.com/Holidays/GBNIR/GBNIRHolidayService.asmx"
    binding="basicHttpBinding" bindingConfiguration="GBNIRHolidayServiceSoap"
    contract="IrelandHols.GBNIRHolidayServiceSoap" name="GBNIRHolidayServiceSoap" />
   <endpoint address="http://www.holidaywebservice.com/Holidays/GBNIR/GBNIRHolidayService.asmx"
    binding="customBinding" bindingConfiguration="GBNIRHolidayServiceSoap12"
    contract="IrelandHols.GBNIRHolidayServiceSoap" name="GBNIRHolidayServiceSoap12" />
   <endpoint address="http://service.ecocoma.com/rss/news.asmx"
    binding="basicHttpBinding" bindingConfiguration="News_ServiceSoap"
    contract="RSSChannel.News_ServiceSoap" name="News_ServiceSoap" />
  </client>
    </system.serviceModel>
</configuration>
Ktoś pomoże? Nie wiem czy dobry dział wybrałem.

Pozdrawiam.
Awatar użytkownika
Bastian
Member
Posty: 1424
Rejestracja: 30 marca 2008, 16:09
Lokalizacja: Poznañ

Post autor: Bastian »

Szklanej kuli nie mamy. Przeczytaj komunikat, który się ukazuje a następnie włącz raportowanie błędów z detalami.
matekkkkk
Posty: 5
Rejestracja: 07 marca 2009, 15:47

Post autor: matekkkkk »

Jak zmieniam

Kod: Zaznacz cały

     <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">        
         <error statusCode="403" redirect="NoAccess.htm" />        
         <error statusCode="404" redirect="FileNotFound.htm" />     
    </customErrors>
na

Kod: Zaznacz cały

<customErrors mode="Off"/>
to nie widze zadnej zmiany. Ten sam komunikat
Awatar użytkownika
Bastian
Member
Posty: 1424
Rejestracja: 30 marca 2008, 16:09
Lokalizacja: Poznañ

Post autor: Bastian »

Zrestartowałeś serwer po tej zmianie?
matekkkkk
Posty: 5
Rejestracja: 07 marca 2009, 15:47

Post autor: matekkkkk »

Ruszyło, dziękuję. Na razie i tak są błędy (ortograficzne też), ale staram się je powoli naprawiać.

Dodane:

Kod: Zaznacz cały

Line 9: <body>
Line 10:     <form id="form1" runat="server">
Line 11:     <asp:ScriptManager ID="ScriptManager1" runat="server">
Line 12: 
Line 13:         <Services>
Teraz mam taki błąd.
Czy w ogóle jest sens uruchamiania tego na Linuksie? Bo jak na razie pod Windows działa, a pod Linuksem błąd za błędem.

Tamten błąd sam zniknął, ale pokazał się kolejny (sam zniknął - odświeżyłem tylko stronę).

Kod: Zaznacz cały

Compilation Error

Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.

Compiler Error Message: (0,0) : error : ** (/usr/lib/mono/2.0/gmcs.exe:8103): WARNING **: Missing method .ctor in assembly /home/adam/public_html/Holidays/Holidays/bin/AJAX 2.dll, type System.Runtime.Versioning.TargetFrameworkAttribute
(0,0) : error : ** (/usr/lib/mono/2.0/gmcs.exe:8103): WARNING **: Can't find custom attr constructor image: /home/adam/public_html/Holidays/Holidays/bin/AJAX 2.dll mtoken: 0x0a00000d
(0,0) : error : ** (/usr/lib/mono/2.0/gmcs.exe:8103): WARNING **: Missing method .ctor in assembly /home/adam/public_html/Holidays/Holidays/bin/Holidays.dll, type System.Runtime.Versioning.TargetFrameworkAttribute
(0,0) : error : ** (/usr/lib/mono/2.0/gmcs.exe:8103): WARNING **: Can't find custom attr constructor image: /home/adam/public_html/Holidays/Holidays/bin/Holidays.dll mtoken: 0x0a00000d
(0,0) : error : at Mono.CSharp.Driver.LoadReferences () [0x00000]
(0,0) : error : at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000]
(0,0) : error : at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]
/Default.aspx
A w konsoli mam:

Kod: Zaznacz cały

** (/usr/lib/mono/2.0/xsp2.exe:8059): WARNING **: The following assembly referenced from /home/adam/public_html/Holidays/Holidays/bin/Holidays.dll could not be loaded:
     Assembly:   System.Web.Extensions    (assemblyref_index=7)
     Version:    4.0.0.0
     Public Key: 31bf3856ad364e35
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/adam/public_html/Holidays/Holidays/bin).


** (/usr/lib/mono/2.0/xsp2.exe:8059): WARNING **: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

http://195.149.100.150:8090/
Awatar użytkownika
Bastian
Member
Posty: 1424
Rejestracja: 30 marca 2008, 16:09
Lokalizacja: Poznañ

Post autor: Bastian »

Na .ASP sie nie znam ale tutaj masz dość klarowne komunikaty:

Kod: Zaznacz cały

Missing method .ctor in assembly /home/adam/public_html/Holidays/Holidays/bin/AJAX 2.dll
Missing method .ctor in assembly /home/adam/public_html/Holidays/Holidays/bin/Holidays.dll
ODPOWIEDZ