Converting Web Site to Web Application (AJAX web service goes missing)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I have just completed (almost) an exercise to convert a web site to a web app (acedemic reasons - just to see the differences).

A few bumps on the road such as copying class files to the new solution and wondering for a while why the classes did not show up. It was because the properties for the class file were "content" rather than "compile". Also copied all my images to a newly created image folder outside the IDE. There is no context menu item to refresh a folder in the Web App so it was out of the car and back in to fix that.

One problem remains. I have Javascript code to log some information. In the Web site code it works great. You have to add the <System.Web.Script.Services.ScriptService()> _ (using VB) attribute to the class file for the web service and it then works. I copied the same code to the Web App and when I do the Javascript call it fails saying it cannot find the Web Service.

Any ideas??

I have not posted code until someone lets me know what parts of the code are needed for helping.

Thanks,
Lloyd Sheen

.



Relevant Pages

  • Re: How complex is this, really?
    ... I'd just create an asp.net web app with a SQL backend. ... Users can enter orders on a "public" web site up until the event. ... I'd back up the SQL database and restore it to the notebook. ... All the web service would be doing is keeping four ...
    (microsoft.public.dotnet.framework.aspnet)
  • VS 2005 - Copy Web Site throwing error "Value cannot be null"
    ... I am using Visual C# 2005 to build a web app. ... computer to a remote web server running Windows 2003, ... Today, when I click Website -> Copy Web Site, I get this very ... un-helpful error in a window titled Create Copy Web Window: ...
    (microsoft.public.vstudio.general)
  • Copying Web Site - Required Steps?
    ... My objective is to take an ASP.NET 3.5 Web app and then deploy multiple ... ASP.NET app per Web site). ... Happy customers year after year, etc Now I want to do it ... create the supporting NTFS folder structure, giving permissions (say, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Web Site or Web Application (VS 2008)
    ... Web Site or Web Application. ... you want to use custom Profiles, as you can end up having to rebuild the ... the difference is that one compiles and the other does not. ... you can obfuscate your web app and not give away it's secrets. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Web Site or Web Application (VS 2008)
    ... Web Site or Web Application. ... you want to use custom Profiles, as you can end up having to rebuild the ... the difference is that one compiles and the other does not. ... you can obfuscate your web app and not give away it's secrets. ...
    (microsoft.public.dotnet.framework.aspnet)