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


Top 5 Contributors of the Month
Imran Ghani
Post New Web Links

Help, get Server Error in '/' Application when running the WCF sample EchoService

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :WCF
 

I am running Windows 7/IIS Version 7.5.7600.16385 with IIS Manger Version 6.1(Build 7600)/Visual studio 2010. When I am testing WCF hosted in IIS, I got the famous error:

"The type 'WCF4Configuration.EchoService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found"

EchoService.svc:

<%@ ServiceHost Language="C#" Debug="true" Service="WCF4Configuration.EchoService" CodeBehind="EchoService.svc.cs" %>

EchoService.svc:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Runtime.Serialization;

using System.ServiceModel;

using System.Text;

using System.Globalization;

 

namespace WCF4Configuration

{

    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "EchoService" in code, svc and config file together.

    public class EchoService : IEchoService

    {

        public string Echo(string message)

        {

          


View Complete Post


More Related Resource Links

Error running Document Aprpoval Process application sample

  

Hi all,

I download and install the application samples for Windows Workflow Foundation 4 on my machine. When I try to run the Document Approval Process example the ApprovalManager project runs fine but when I start the ApprovalClient.exe I run into problems. Can anybody help?

My environment is: Windows 7 64-bit with VS2010. The only change I have made is that the Express Db's name is '(local)' instead of 'localhost\SQLExpress' and I have changed this in the App.Config file.

Thanks in advance for your help.

Regards,
Thanh

Here is the error files:

appcompat.txt

<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="ApprovalClient.exe" FILTER="CMI_FILTER_PRIVACY">
    <MATCHING_FILE NAME="ApprovalClient.exe" SIZE="36864" CHECKSUM="0xA99D9EE4" BIN_FILE_VERSION="1.0.3971.16290" BIN_PRODUCT_VERSION="1.0.3971.16290" PRODUCT_VERSION="1.0.3971.16290" FILE_DESCRIPTION="Microsoft.Samples.DocumentApprovalProcess.ApprovalClient" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Windows Communication Foundation and Windows Workflow Foundation SDK" FILE_VERSION="1.0.3971.16290" ORIGINAL_FILENAME="ApprovalClient.exe" INT

Error Handling: Throwing Custom Exception Types from a Managed COM+ Server Application

  

Exception handling semantics in .NET are based on type, so you can create custom exceptions that have their own properties and methods. In .NET, exceptions are first-class citizens, and since they're the built-in error handling mechanism, all .NET-compliant languages must support exceptions. In addition, COM+ services are available to .NET code as Enterprise Services, so you can leverage exceptions in your Enterprise Services design.In this article the author describes custom exceptions, throwing exceptions across COM interop boundaries, and working with Enterprise Services.

Bob DeRemer

MSDN Magazine March 2004


Page cannot be found error on clearing cookies while running application

  
Hello all,            I've a web application which is running on sql state session .. And is running well under normal conditions. But when my application is in home page or landing page after loging to the application, if user clears all his history and cookies and click on any menu in the application . It is giving  Internet Explorer cannot display the webpage error.. I'm not able to debug the error.. am getting the same problem even under deploying conditions. How to handle this issue?   Thanks in advance, Hari.

Server Error in '/' Application

  
Hello everybody,   I have a Sharepoint farm which contains 2 WFE servers and an Application server. When I try to access one of my application subsites using the LoadBalancer DNS, everything works fine. But when I try to access the same site using one of the WFE name(eg: http://server1Name/Site_name) I've got   The Web application at http:// server1Name/ Site_name/default.aspx could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application   Could you please help me?   Thank you, Bogdan

Server Error in "/" Application

  
I was installing MOSS using remote log-in and went through the "Setup" and "SharePoint Products and Technologies Congfig Wizard".  Near the end of the wizard I see the Success Page and SHOULD be able to view the SharePoint Central Admin Page but get this:   "Server Error in '"/" Application  RUNTIME ERROR   Description: An alpplication error occured on the server.  The current custom  error setting for this application prevent the details of the application error from being viewed.  Details: To enable the details of this specific error message to be viewable on the local server machine please create a <customErrors> tag within a web.config file located in teh root directory of the current web application, This <custom error> tag should have its mode attribute set to "Remote Only:  To enable the details to be viewable on remote machines please set mode to "off".   <configuration>   <system.web>         <customErrors mode="RemoteOnly"/>   </system.web> </configuration>     Where can I find the web.config file and do I have to insert a new tag or just replace "Remote Only" attribute with "Off" ?

Error when running an SQL script to restore a database on SQL Server 2008 R2 Express

  
Hi, At work, I use SQL Server 2008 Express running on Windows XP Professional Service Pack 3. At home, I also use SQL Server 2008 Express running on Windows XP Professional Service Pack 3. Whenever I do work on the database at work, I usually restore the database at home (or vice versa) I have been using the following SQL scripts to back up the database and to restore the same database (at work or at home). BackupRealEstate.sql USE Master BACKUP DATABASE [RealEstate] TO DISK = N'F:\My Documents\My Database\RealEstate.bak' WITH NOFORMAT, INIT, NAME = N'RealEstate-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10 GO RestoreRealEstate.sql USE Master RESTORE DATABASE [RealEstate] FROM DISK = N'F:\My Documents\My Database\RealEstate.bak' WITH  FILE = 1, NOUNLOAD, REPLACE, STATS = 10 GO Everything worked fine until I replaced my 8yo home computer with a newer and faster one. My new home computer is running Windows 7 Home Premium and I use the latest SQL Server 2008 R2 Express. When I tried to run the above restore SQL script, I got the following error message: Msg 3101, Level 16, State 1, Line 2 Exclusive access could not be obtained because the database is in use. Msg 3013, Level 16, State 1, Line 2 RESTORE DATABASE is terminating abnormally. There was no other application/process using this database. Can someone please help me? Regards,

Server Error in '/' Application

  
Hi. I followed Scott Mitchell's instruction for Building a Store Locator ASP.NET Application Using Google Maps API and hosted the application on my GoDaddy shared hosting account here: http://www.realchoicedentalcenters.com/Lookup/. I am getting Configuration Error message and was hoping you could help. I also added <customErrors /> tag so you can see the error message remotely. I really appreciate your help on this! Thank you,

error while running the asp.net application

  
Hi All, I am getting below error while running the application Exception in MS Oracle DAAB Method - GetDataSet : Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "DABResource.resources" was correctly embedded or linked into assembly "DBServices" at compile time, or that all the satellite assemblies required are loadable and fully signed. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Exception: Exception in MS Oracle DAAB Method - GetDataSet : Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "DABResource.resources" was correctly embedded or linked into assembly "DBServices" at compile time, or that all the satellite assemblies required are loadable and fully signed. Any Sugession Please ?

Error while Deploying WebMatrix Beta Application having SQL Database on Remote Server

  

Hello All,


I have created "DotNetNuke SQL Database Application" from the WebMatrix Gallery.

Now I want to deploy it on the remote server using Web Deploy method.

Without selecting SQL database, application is deployed successfully but when I select SQL database it gives following error:

Publish : Error - Make sure the database connection string for the server is correct and that you have appropriate permission to access the database. (Web Deploy provider is dbFullSql).

Can anyone have the solution of this error?

Thanks in advance....



Search server 2010 setup - error creating search service application

  
I am running in a very similar siutation as this post:
http://social.technet.microsoft.com/forums/en-us/sharepoint2010setup/thread/3215D0B3-1BEC-4AEE-844D-DECDE9DEA1D8

I am configuring a new Search Server 2010 production environment.

I used the search setup account to run the setup and run the SharePoint Products Configuration Wizard.

During the first run of the SharePoint configuration wizard (where the farm account and service applications are setup), the process failed because the search service application could not be created.  

Errors were encountered during the configuration of the Search Service Application.
System.Data.SqlClient.SqlException: User does not have permissiont to perform this action.

I was under the assumption that the setup account had securityadmin and dbcreator SQL Server roles.  However, this was not the case and I had them added.  My original thought was the setup failed because of this.  After those roles were added, I tried to recreate the search service application and I still get a failure.

I am pretty sure I have followed the prerequisites as prescribed by Microsoft in terms of account setup (

Application time out Error after installing SQL Server 2008 R2 64 bit + CU3

  

Hi all,

webapplications  are  suffering  after installing SQL Server 2008 R2 64 bit  in my mechine.

Did i have do any thjing more make the connectons(validation faster)  or SQL Server 2008 R2 behaves like that..

any idea or suggestions are appreciated.

 

Thanks in advacne

 

 


SNIVAS

Server Error in '/Reports' Application.

  

Hi All,

i have successfully deployed report in to sharepoint and it creates Reports folder automatically. when i try to click on that folder it gives me below error. Please help Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Cannot use 'partitionResolver' unless the mode is 'StateServer' or 'SQLServer'.

Source Error:

Line 186:  <machineKey validationKey="F771D052DF0BBA5CDA4B98FECA1F30645C7EFFB5A57CDFAF" decryptionKey="DB45B12512A41882B11FF4BD7E822B2456A375D48F3C8E15" validation="SHA1" />
Line 187:  <!--<sessionState mode="InProc" timeout="200" allowCustomSqlDatabase="true" partitionResolverType="Microsoft.Office.Server.Administration.SqlSessionStateResolver, Microsoft.Office.Server, Version=12.0.0.0, Culture=n

Server Error in '/' Application.

  

Hello,

A SharePoint solution I am currently working on is displaying the error above and shows the following in the body of the stack trace (IE 8):

[NullReferenceException: Object reference not set to an instance of an object.]

The solution makes use of a custom master page and this includes a server control with a class (in C#) that inherites from two base classes - a custom class as well as IDesignTimeHtmlProvider (a no-no?). This server control seems to be breaking the master page and all associated content pages.

Did moving the solution from .NET 2.0 to 3.5 and using Visual Studio 2010 instead of 2008 (used for the solution's initial development) cause the problem above?

Please let me know if further information is needed. Many thanks for your help with this.

 

Perplexed.


"Server Error in '/' Application" when using WSS 3.0 Custom Web Part

  

Hi Every Body

i have a custom web part whcih it access the list in wss 3.0, my web part is a registration form whcih the user fill it with his information

when the user click submit, the Object reference not set to an instance of an object like below:

 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

Server Error in '/' Application.

  

 I am getting an ERROR when i host my application in Sub domain on Server, i have created the Sub domain Two days back.. I cant understand why its not working.. Can any one let me the solution.

 ERROR: 

Server Error in '/' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
  <system.web>
    <customErrors mode="Off"/>
  </system.web>
</configuration>

Sharepoint 2010 - Error while running Configuration wizard for SP 2010 server farm

  
Hi All,

I am trying to set up a SP 2010 farm. I have windows server 2008 R2 installed and was able to install SP 2010 successfully. However when I ran the Sp 2010 Products and configuration wizard I am getting the following error at Step 3.

 Failed to create the configuration database.
An exception of type System.Collections.Generic.KeyNotFoundException was thrown.  Additional exception information: The given key was not present in the dictionary.
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

I have installed all the prerequisites and I am on Microsoft Geneva Framework 1.0.30624.0 . I saw on a blog that Microsoft Geneve Framework beta 2 will actually cause the above problem. However I encountered the error with Beta 1 version as well.

Any ideas why this is happening?

Report server error "Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Microsoft.Report

  
Hi Team,
I facing parse error, application used to work week earlier and then it started showing error. Can some one help me? I tried following steps provided with similar error postings but of no uses.


Parser Error body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

Server Error in '/Reports' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and
Categories: 
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