none
Asmx WebServices Gives Error when trying to access from browser RRS feed

  • Question

  • Created a WCF Service Application and removed the .svc files and added .asmx File.

    Done with all the coding and published to IIS as normal website with IP Address.

    Which was worked fine, as accessed with ip.

    After that created a website with domain name and moved the same published code.

    When we try to access from browser its showing the methods and invoke button(with parameters).

    When the parameter value is provided then its thorwing a error and saying 

    Missing parameter: sz_abc.
    Monday, September 2, 2013 5:59 PM

Answers

  • Hi,

    When we try to access from browser its showing the methods and invoke button(with parameters). When the parameter value is provided then its thorwing a error and saying Missing parameter: sz_abc.

    When meet the above question, please try to add the following to enable the tracing which may help you find the cause.

    <system.diagnostics>
        <trace autoflush="true" />
        <sources>
            <source name="System.Web.Services.Asmx">
                <listeners>
                    <add name="AsmxTraceFile" type="System.Diagnostics.TextWriterTraceListener" initializeData="local.log" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId" />
                </listeners>
            </source>
        </sources>
        <switches>
            <add name="System.Web.Services.Asmx" value="Verbose"  />
        </switches>
    </system.diagnostics>

    #Enabling Tracing in ASP.NET Web Services:
    http://msdn.microsoft.com/en-us/library/vstudio/bb885203(v=vs.100).aspx .

    And it will be better if you post your question in ASMX Web services Forums.

    #ASMX Web services Forums:
    http://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services.

    Best Regards,
    Amy Peng


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.





    Wednesday, September 4, 2013 1:51 AM
    Moderator

All replies

  • WCF services are supported in the forum and not legacy ASMX Web services. And how you took a WCF ASP.NET Web Service project and made it into a ASMX project when you should have started out with a ASP.NET ASMX Web service is questionable to say the least about it.

    Monday, September 2, 2013 6:45 PM
  • Hi,

    When we try to access from browser its showing the methods and invoke button(with parameters). When the parameter value is provided then its thorwing a error and saying Missing parameter: sz_abc.

    When meet the above question, please try to add the following to enable the tracing which may help you find the cause.

    <system.diagnostics>
        <trace autoflush="true" />
        <sources>
            <source name="System.Web.Services.Asmx">
                <listeners>
                    <add name="AsmxTraceFile" type="System.Diagnostics.TextWriterTraceListener" initializeData="local.log" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId" />
                </listeners>
            </source>
        </sources>
        <switches>
            <add name="System.Web.Services.Asmx" value="Verbose"  />
        </switches>
    </system.diagnostics>

    #Enabling Tracing in ASP.NET Web Services:
    http://msdn.microsoft.com/en-us/library/vstudio/bb885203(v=vs.100).aspx .

    And it will be better if you post your question in ASMX Web services Forums.

    #ASMX Web services Forums:
    http://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services.

    Best Regards,
    Amy Peng


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.





    Wednesday, September 4, 2013 1:51 AM
    Moderator