Search

You searched for the word(s): userid:709264

Matching Posts

  • Re: Is it possible NOT to deploy .vb code behind file for web service?

    Right-click on the project and choose "Publish Web Site". That has the ability to generate a pre-compiled version of your site.
    Posted to XML Web Services (Forum) by aaron.croft on 11/20/2007
  • Re: Exception has been thrown by the target of an invocation

    Does your exc.InnerException also have an InnerException? Whenever I am calling something through Reflection I use a loop like this in my catch block to identify the innermost exception: while (exc.InnerException != null) { exc = exc.InnerException; } Do that before the messagebox line. You may find a more useful exception message.
    Posted to XML Web Services (Forum) by aaron.croft on 11/20/2007
  • Re: Windows Integrated Authentication for a Web Service

    I think you need to enable impersonation on the web application. To do this add the folowing to your web.config file in the web service project (if there is no web.config, add one using add new item) <identity impersonate="true" /> Add that between the <system.web> tags anywhere. If you have trouble with the syntax, look up ASP.Net impersonation on the web and you will find many articles. What's happening is your IIS instance is running as the domain user, but the asp.net
    Posted to XML Web Services (Forum) by aaron.croft on 11/20/2007
  • Re: Async Web Service design issue

    Sounds like a good architecture. Standard .asmx web services are "Request - Response" style messaging patterns. What that means is there is no way to notify the client after the response has been sent. Using .asmx you COULD have the client "poll" the server after it's original request asking if the work has been done. And the server would need some ability to "look up" wehter the work is done (perhaps a database record) and then return either the work being done
    Posted to XML Web Services (Forum) by aaron.croft on 11/8/2007
  • Re: ajax and browser refresh function

    I use the Really Simple History framework: http://code.google.com/p/reallysimplehistory/ Of course, you won't be able to use it with anything other than custom javascript .asmx calls. Leveraging Microsoft's Ajax Toolkit's controls you can't use anything liek that; well, you pretty much can't do ANY custom javascript. Just something to look into.
    Posted to ASP.NET AJAX UI (Forum) by aaron.croft on 11/7/2007
  • Re: Using webservices through a shared hosting account

    Have you tried dropping just a simple web page that does a Response.Write("Hello World"); ?? That could help nail down if the problem is web service related or just generally related to the VD/ASP.Net configuration. "Application Unavailable" is not an error you'd expect if the problem was related to anything but the server setup itself. Hell, I'd try just dropping a .txt file in the root of the web folder and see if you can even access THAT.
    Posted to XML Web Services (Forum) by aaron.croft on 11/6/2007
  • Re: Exposing xml file to client using a web service method

    To answer your first question,to get an XmlDocument object to return the easiest way is to use the XmlDataDocument class. Public Funcion GetDocument() as System.Xml.XmlDocument ' code to get dataset Dim dataDoc as new System.Xml.XmlDataDocument(dataset) return dataDoc.OwnerDocument End Function That will retun the XmlDocument object. I'm examining your "client code" example though and I'm confiued. It looks like your client code is generating a request to an .aspx page manually
    Posted to XML Web Services (Forum) by aaron.croft on 11/5/2007
  • Re: How do I trap unhandled exceptions in my web service?

    You should be able to handle the Application_Error event in the Global.asax (you may need to add one) of the web service project. The event will fire every time there is an unhandled exception. To get access to the exception call Server.GetLastError() (or close to that). That returns an Exception object: public void Application_Error(object sender, EventArgs e) { Exception exc = Server.GetLastError(); } That object exc contains the information you are looking for. A LOT of times that exception will
    Posted to XML Web Services (Forum) by aaron.croft on 11/5/2007
  • Re: What's Wrong with This Asynchronous Call?

    It's my understanding that using the callback method of asynchronous call inside of an .aspx page will yield strange results without using a waithandle. The callback might not fire until the page has allready been returned to the user and your code in the callback can't write to the response. You need to use a waithandle I believe.
    Posted to XML Web Services (Forum) by aaron.croft on 11/2/2007
  • Re: Using a Key/Value collection in a Web Service

    The problem is that a key/value collection needs a mechanism that stores and retrieves the values. The "mechanism" is an algoryhtm, not just a data structure, so it can't really be serialized. As RogerRabit stated you certainly could work with an array of a simple key/value type, but you won't get full blown dictionary like code. You'd need a similar class on each side to search through the key/value pairs to return what you were looking for, enforce uniqueness etc. One approach
    Posted to XML Web Services (Forum) by aaron.croft on 11/1/2007
Page 1 of 8 (76 items) 1 2 3 4 5 Next > ... Last »