.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

WCF ReST services not working in IIS 7.5

Posted By:      Posted Date: September 21, 2010    Points: 0   Category :WCF

I know this has come up before, but I haven't seen an answer that fits this situation. I have a project in Visual Studio 2010 Ultimate RTM created with the "WCF REST Service Application" project template. It works fine in the Visual Studio development web server but I get 404.0 errors if I try to deploy it to IIS. I think IIS has all the correct .Net 4 stuff, but I'm not an IIS expert. I don't have a .svc file but I believe it shouldn't be necessary and, as I said, it works in the development server. Visual Studio and IIS are running on the same Windows Server 2008 R2 box.



View Complete Post

More Related Resource Links

Multiple services in REST Collection WCF Service?


After I create a "REST Collection WCF Service" project, it contains one service "service.svc". Can I add multiple services to this project? There must be a way to do so. Otherwise, it does not make sense to create one project for each service.


My question is how to add a new service to an existing "REST Collection WCF Service" project?


Thanks a lot.

Indexing services on window server 2008 is not working with .net

Hi, I am useing Microsoft indexing services in windows 2008 64 bit .I am getting error like "Exception from HRESULT: 0xC0000005" while i am createing  new catlog from .net 2.0.I am using  "ciodm.dll" for adding new catlog. i am using this code for create new catelog.   Dim Admin As New CIODMLib.AdminIndexServer   Admin.AddCatalog(varContractNo, txtCatelog.Text + "\" + varContractNo) Admin.Stop() Admin.Start() AddScope(txtDocFolderPath.Text, txtSite.Text, txtCatelogname.Text)   Please help me anybody have fixed this issue on window server 2008 64 bit.  

Database Access Using SOAP and REST Web services

Hi Guys, Can anyone post the links regarding DATABASE ACCESS USING BOTH WEB SERVICES. How to query the database using the web service. Suppose i have SQL statement like " Select empID,empName,CName from employee,company where empID=CID;".  How to  send this sql query to database server using REST and SOAP web Services?  Thank You

Automatically populating Contact Selector not working in Form Services

Hi,I'm currently working on a form where i wan't to automatically populate a contact selector control with a users manager. I've got the managers userid, called the ResolvePrincipal webservice provided by sharpoint, and set all the values in the contact selector with the correct values. When previewing it works perfectly however when i move the form to Form Services it won't work.I've tried setting it via rules: i.e. on the change of a textbox write the manager values to the contact selector.I've tried setting the default values of the contact selector to fields where i write the manager values.I've tried setting it through code i.e. SelectSingleNode() and SetValue() for each of the fields in the contact selector.All of which work fine in preview mode but will not work in Form Services, UNLESS the contact selector already has a user in it. So if the contact selector is blank it won't work, however as soon as i manually select a user then try using any of the previously mentioned methods of setting the control it works. While using code i get a nullreferenceexception which leads me to think that possibly when theres no user in the control the xml nodes representing the AccountId, DisplayName, AccountType don't exit???? TO throw another spanner in the works, on the very odd occasion it will work in Form Services as expected, after celebrating and trying again it returns

Excel Services XLSX shows different results when accessed via Sharepoint UX vs REST

I have an Excel services report that connects to Project Server 2010 data via an ODC.  Looks great when I view the XLSX through the browser via the Sharepoint doc library; everything refreshes, no warnings, all is good.    But when I access this same file via the Excel Services REST call: https://myserver/_vti_bin/ExcelRest.aspx/ProjectBICenter/My%20Reports/Initiative%20Status%20Report.xlsx/model/PivotTables('InitiativeStatusSummary')?$format=html I get an older version of the report -- not refreshed with the latest data.   I have the file set to "refresh data when opening the file" in the data connectioon properties.     What am I missing?

WSDL not working for SQL Reporting Services 2008

I have seutp reporting services successfully, but now i want to generate a proxy to be able to interact progromatically with the reporting services 2008 like I did in 2000 and 2005.  I have tried viewing the WSDL from a command like this:   http://localhost/reportserver/reportservice.asmx?WSDL and I get an error like this:   The path of the item 'WSDL' is not valid. The full path must be less than 260 characters long; other restrictions apply. If the report server is in native mode, the path must start with slash. (rsInvalidItemPath) Get Online Help Any thoughts?  I also tried from WSDL.exe, no dice. Thanksl Ben

sharepoint rest services

Hi, As per my knowledge , REST services are similar to SOAP services/protocol  but less head-ache. But why to use REST instead of SOAP in SharePoint 2010? Also I want what is a Mshup page in internet environment.   Thanks

Target audiences not working in excel services web part

My appologies i posted this originally in the pre-2010 forum So i'm reposting here: We have recently upgraded to Sharepoint 2010 and we're experiencing problems with the "target audience" field being available to the users. I am not the CA admin though so it'll make this a bit tough to get solved if the problem is there. What i'm looking for are the suggestions of things for me to forward to the CA admin to change or check if anything. We have a seperate Virtual Machine that is running 2010 that has this option available to users on that farm for some reason. however on our corporate farm we don't have that option available. Plus on top of this the quick launch items are not working with audiences as well to turn off the headers to links that have nothing in them due to security trimming on document libraries. I'm hoping that this being a more of an overview of things to check would help others who may have this problem as well. I've seen resolutions such as rebooting the server and such, however that's a bit lower level and we need some higher level things to check that may resolve the issue. Think the simple stuff first to check and lets work down the list. Doesn't matter how stupid it is but can we get a more compiled list of things to check to make sure that target audience visibility to users is enabled? Thanks!

Quick Note (Scenario): Using the Excel Services 2010 REST API

Learn to use the Excel Services REST API to access data and objects within a spreadsheet.

Second instance of Reporting Services not working correctly



Need to access Reporting Services from outside firewall. The IT department installed second instance of RS on a box outside the firewall and pointed it to the Report Server inside the firewall. The application that runs the reports uses Forms Authentication and appears to working correctly. It picks up the "cookie" from RS and calls the report with the cookie in the header.

The Problem:

The call to programmatically login to RS works...but when the report is requested, a page comes up and asks the user to enter the username and password for the "data source". Once a "sql server user" is entered, and the user clicks on the "View Report" button, the report comes up. Why is RS asking for credentials for the report's data source???

Beginner in using Rest web services


Hi All,

I have a site that contains all the information about the employees of my company. They gae me documentatation to access. Please see below.

I am really confused.

1. Ask your  administrator to request a Service Account with appropriate privileges. - Done

2. Use your web browser to explore the read-only web services. Start by downloading the most
recent version of this document from the Documentation Resource. Next, view the Schema List
Resource to find your Schema Key(s), which is used by many other service resources.

(How can I do that???)

3. Consider installing the RESTTest Firefox Extension (a simple interface for testing readable and
writeable REST web services), available at http://www.xucia.com/#RestTest.
( I did installed the rest test but I dont know how to use it properly)

4. Find appropriate HTTP Connection sample code for your development platform.

I am able to connect to the site using the service account through the code.

but GET/POST request I dont know how can I make it if I dont know which webservice to retrieve

 Please help me.


REST and http services


Hi All,

Can all services that are non-SOAP, be deemed as RESTful? Where can I get some indepth information on the same?



how to consume wcf 4.0 rest services in asp.net MVC



how to consume wcf rest services in asp.net MVC? there is any standards are available?

in my project SOA, so all the data came from wcf 4.0 rest services if there is any coding examples or resources to consume wcf services in MVC 2.0

Exchange Web Services - Attachments not working


I am trying to attach files using the Exchange Web Services in C#.   I generated a web reference in my C# project by pointing to the wsdl within EWS.  The path is <EWS Server>/ews/services.wsdl.

When I run this line of code:

esp = _esb.CreateAttachment(reqCreateAttach);

I get the following error:

{"The request failed schema validation: The element 'CreateAttachment' in namespace 'http://schemas.microsoft.com/exchange/services/2006/messages' has invalid child element 'Attachments' in namespace 'http://schemas.microsoft.com/exchange/services/2006/messages'. List of possible elements expected: 'ParentItemId' in namespace 'http://schemas.microsoft.com/exchange/services/2006/messages'."}

reqCreateAttach is of the type CreateAttachmentType.

It contains an array of FileAttachmentTypes.

Please help.

Creating a new library using SharePoint Data Services (REST)


How can I create a new library/list using sharepoint data services (SDS)? I'd also like to add items in the newly created library programmatically using SDS? Is this possible at all?

Sharepoint 2010 security token services is not working.



I have sharepoint 2010 server , i m tryiing to search on sharepoint site but i am getting error "security token service is not avaible"

I have already applied wcf hotfix but stil getting exception when i open this service ,so is there any workaround to start this service or any workaround to search on sharepoint site(I am using sharepoint.office.search dll to search on sharepoint site)


Please reply as its really urgent


Thanks in advance!!


Windows Sharepoint Services 3 search not working getting event ids 2424 and 2436.


I can login with the accounts for content and the search service on the local server.

I have the loopback reg fix.

But the crawler will not crawl.

I have deleted all search databases in sql and it I have created one from scratch and setup different accounts for the content and search service.

I downloaded and installed windows sharepoint services 3 with service pack 2 on another server and when I used the same accounts that I had on the non working sharepoint install the search worked.



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend