Home > Cannot Call > Cannot Call Because It Is A Web Method Net

Cannot Call Because It Is A Web Method Net

How safe is 48V DC? By any chance are you running in a partial trust environment? Advisor professor asks for my dissertation research source-code Is it possible to bleed brakes without using floor jack? What does Reflector have to say about the assembly? his comment is here

The time now is 10:48 AM. I'm going to try another service that I think will likely work but this isn't going to work for everything I need it to because I can't (currently) determine how to I doubt the code I presented handles that kind of parameters. Creating a table with FIXED length column widths Draw some mountain peaks Can a countable number of intersections of subsets or their complements be the null set? read the full info here

Saturday, April 19, 2008 2:23 AM Reply | Quote 0 Sign in to vote Hi,   Check out the virtual dir properties under ASP.NET tab for the appropriate version(2.0). Do you need your password? Erick Orlando Hi, awesome post, How can I add a WS-Security to this example?

What should I do? (The webservice works fine when checked through IIS). Take a look at WSE 2.0. Sign in using Search within: Articles Quick Answers Messages Use my saved content filters home articles Chapters and Sections> Search Latest Articles Latest Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Dex Nice work!

Please click the link in the confirmation email to activate your subscription. Thanks... How is it packed? http://forums.asp.net/t/1519490.aspx?Cannot+call+because+it+is+a+web+method Full information at http://goo.gl/vp7gwv Close Cookies help us deliver our services.

Solution 1 Accept Solution Reject Solution You declare the private method what you wants to call as static [WebMethod] public static string MyWebMethod(string postCode) { // My webmethod code string str = MyPrivateMethod(2,5); Tadit Dash 6-Nov-12 2:55am I think you also need to change the first line in your answer "I fail to understand the purpose behind the question. Well today, I'll give you an improved version of that method. At first, I overlooked as simple web service.

Any thoughts? why not find out more General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ It would be better you change it a little bit... Subscribed!

It can only call one static function. http://electrictricycle.net/cannot-call/cannot-call-method-charat.html wcf should be able to expose it's methods thru a regular ws interface. –Alex Mar 26 '12 at 12:39 add a comment| up vote 0 down vote Can you atleast try current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Treat my content as plain text, not as HTML Preview 0 … Existing Members Sign in to your account ...or Join us Download, Vote, Comment, Publish.

Search for: Search About Me Diogo Nunes Software Tester ★ Photographer ★ Gamer ★ Novelist ★ Fantasy lover ★ Anime fan Most popularWebClient vs HttpClient vs HttpWebRequestCalling Web Service without WSDL Not the answer you're looking for? It will definitely give you idea if there is any problem? weblink Updated solution to declare both method as static.

I have also missed one thing in my previous comment. else should I need to add the Lists.asmx as a service reference as recode completely? up vote 1 down vote favorite We have a windows service that pulls the data from SharePoint.

What is the ex.ToString()? –RQDQ Mar 26 '12 at 13:13 | show 1 more comment 5 Answers 5 active oldest votes up vote 1 down vote accepted [ServiceContract] [AspNetCompatibilityRequirments(RequirmentsMode = ApsNetCompatibilityRequirments.Allowed)]

The same type of question is discussed here[^]. Don't know what I am missing. Pro ASP.NET 4 in C# 2010 raises the bar for high-quality, practical advice on learning and deploying Microsoft's dynamic web solution. I just want to call it and then proceed with my code.

Solution 2 Accept Solution Reject Solution I agree with @aspnet_regiis. If the result is negative, use the means introduced in the following thread to diagnose the problem:  http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3173692&SiteID=1   If you still could not find the problem, please post the details Is there a quick fix? check over here I'll be implementing this today.

Thanks Millind... Privacy Statement| Terms of Use| Contact Us| Advertise With Us| CMS by Umbraco| Hosted on Microsoft Azure Feedback on ASP.NET| File Bugs| Support Lifecycle Developer Network Developer Network Developer :CreateViewProfileText: Sign My code called it just fine but the debugger threw this error.