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

Post New Web Links

Problem with Configuration of Message Inspector

Posted By:      Posted Date: September 27, 2010    Points: 0   Category :WCF
I'm hoping someone might know what I am doing wrong. I'm trying to setup message interceptors and am trying to apply them to all of my services via the web.config. I've been working on it for hours but keep getting the following error:

Parser Error Message: The type 'AdventureWorksService.
Interceptor.ListenerServiceBehavior, AdventureWorksService.Interceptor, Version=,
        Culture=neutral, PublicKeyToken=null' registered for extension 'TestInterceptor' could not be loaded.

I have the classes under a the 'AdventureWorksService.Interceptor namespace in my web project.

Here my web config:

<?xml version="1.0"?>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true">
        <add relativeAddress="~/DataService.svc" service="AdventureWorksDataService"/>
    <!--For REST-->

View Complete Post

More Related Resource Links

Weird security configuration error message


Recently something has gone wrong with our website so that whenever you try to access an aspx file, it shows the following error:


Server Error in '/RALSWeb' Application.

Configuration Error

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: Access is denied: 'RalsWeb'.

Source Error:

Line 256:                <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 257:                <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 258:                <add assembly="*"/>
Line 259:            </assemblies>

How can I solve this problem?::Compiler Error Message: CS0433: The type 'CrystalDecisions.Web.Cryst


I upgraded my web application from visual studio 2003 to 2008. When I want to create a report in visual studio 2008 and receiving this error at runtime. I am able to compile but when runnning thats when I am getting this error.

How can I solve this problem? please help.

Compilation Error

Server Error in '/IRPSDEV' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\10.5.3700.0__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\irpsdev\9e97e0a9\94a2ecd\assembly\dl3\151eb571\00df56e1_6064c201\CrystalDecisions.Web.DLL'

Source Error:

Line 161:        
Line 162:        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 163:        private global::CrystalDecisions.Web.CrystalR

Configuration problem?

Hi All, I created one config for all of my pcakges.I tested in my system its working fine. In my system sqlserver is windows authentication. I modified the configfile which system has sqlserver authentication its working fine. Same config file I am trying to execute in QA box I got error related to authentication. How to modify current confige file related to sqlserver authentication? Thanks CMK...


Error in query: select * from geodesic_group_attached_price_plans where group_id = and price_plan_id > 0. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and price_plan_id > 0' at line 1

Message Display Problem



I am facing a  strange problem .i use following code for show successfully message to user.so it is working fine but problem is when I go another page and came back same page again  through  browser back button again successful message display.

For example suppose there are two page i.e one.aspx nad two.aspx.  i  save one.aspx record then message display me that "Record Insert Sucessfully!!" then I go to two.aspx and when I came back again one.aspx by browser back button again same message are display again

please someone help me.

Script for message

ClientScript.RegisterStartupScript(Me.GetType(), "alert", "<script language='javascript'>alert('Record Updated Sucessfully..')</script>")

Use like

Public Sub SAVEDATA()



            MYTRANS = myConnection.BeginTransaction()






Format Message Box Problem!



How can I format a display message box. Actually I using following script for display successfully message.

msg = "Record Inserted Sucessfully!"

ClientScript.RegisterStartupScript(GetType(Page), "alert", "<script>alert('" & msg & "');</script>")

But I need some change here.i need to display a Challan number to user through message box like

msg = "Record Saved!" + "Your Challan No. is" + txtChallanNo.Text.ToString()


            ClientScript.RegisterStartupScript(GetType(Page), "alert", "<script language=JavaScript>alert('" & msg & "');</script>")


I need message box should display like following


Record Saved!Challan No. is:-100.


Is it possible?if not please suggest me suitable way.

Thanking you


problem in Email configuration in sharepoint


Hello everybody...


i have to face problem in sharepoint 2007 for email notifiation.

i have a two virtual machine one is AD+ EXCHANGE2007 and second is for Sharepoint . both have windows 2003 server os.

This is my outgoing email configuration.

I have configured incomming email but in document library continuous message will produced ? how to solve it ?

Problem in reading WCF configuration settings



The great thing about WCF is that you can configure you're WCF bindings in a configuration file and not through code.
We are now making connection to WCF's webservices in our SharePoint code, but now the question is where to place the WCF configuration settings. 


For deployment reasons we don't want to place the settings in the SharePoint web.config:

-  can't be easily changed by admin users through SharePoint Gui

-  new deployment needed to change configuration settings

-  webservices u

Problem with ASP.Net Configuration tool


I'm trying to use the ASP.NET Configuration tool under the Website menu in VS2005.  When I click on the Security tab (or link) I get 'Unable to connect to SQL Server database'

Clearly the application cannot connect to my database, but I'm not familiar enough with the tools to figure out how to fix it.  I searched the ASP.NET forums for a solution and and Googled it loads but am still stuck.

I'm running SQLServer 2000 and SQLServer 2008.  I have run the cmd line tool aspnet_regsql -W and followed the wizard to create/configure the aspnetdb on both instances in turn as I have been troubleshooting.

From one tutorial I was following I had a connection string in my web.config file that was incorrect - I made it point to the SQL Server instance I was targetting (2008) but no joy.  Then I followed another tutorial video and there was no connection string at all but the tool still ran, so I deleted it.

Being that this is such a basic step I'm pretty frustrated to have been stuck here for so long and would really appreciate some help.

Many thanks


problem setting instance configuration.


I'm trying to install SS 2008 Express with Advanced Services and am having a problem with the Instance Configuration.  

The default instance is preset with an InstanceID of SQLExpress.  This gives me an error that says:

"The instance of SQL Server already has an instanceID of '1' that is different than the specified Instance ID 'SQLExpress'.  Specifying more than one instance ID for the same SQL Server instance is not supported."

Then in the area that shows the installed instances it has: Instance="SQLEXPRESS", Version "9.2.3042.00", InstanceID="MSSQL.1".

I think the instance that's already installed is the SS 2005 express that was installed with VS 2008.  It looks like the Version of the SS 2008 I'm trying to install is 10.

I've tried different things but haven't been able to get this to work.  I also tried the Named Instance but got the same error.  

Can someone help me understand what I need to do to get this installed? 

SSIS Configuration Problem?


Hi All,

I created one package.I executed that package through BIDS its working fine.I created one configfile.I am trying to execute the same package but i am getting the error like below

The product level is insufficient for component "rowcount"(16).Please help me in this issue.





Problem with Implementing Transport Message Security with WCF 4.0 and VS 2010



I'm working on a tree tier project in this solution I have tree project ,

the Service layer,the ServiceContract Layer and presentation layer

At first I implemented it without security and it worked  properly,

But when I tried to add Transport Message security with SSL I faced some problem here is some of my code :

web.config in service layer:



Problem with WCF: Error while reading message framing format at position 13665 of stream (state: Rea



we're using the net.tcp binding, server is self-hosted.

One of our clients experience the following problem randomly appearing on each client couple of times a day:

System.ServiceModel.ProtocolException, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089

Error while reading message framing format at position 13665 of stream (state: ReadingEnvelopeBytes)

The exception appears on the client. I analyzed the WCF trace of the server and there are no exceptions.

What can be the cause of the exception?

I'd really appreciate any help, because the client is in production and this brings lots of problems.


wcf service configuration problem


I have developed a wcf chat service by following this link:


When i try to run it then it is throwing below exception:

System.InvalidOperationException: Contract requires Duplex, but Binding 'WSHttpBinding' doesn't support it or isn't configured properly to support it.
   at System.ServiceModel.Description.DispatcherBuilder.BuildChannelListener(StuffPerListenUriInfo stuff, ServiceHostBase serviceHost, Uri listenUri, ListenUriMode listenUriMode, Boolean supportContextSession, IChannelListener& result)
   at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost)


System.ServiceModel.Channels.Message class problem in work flow persistence


I have used following link to create a workflow to call web service(asmx) in workflow rehosting.


I have created the workflow successfully. But when i run the workflow and workflow goes for persistence it shows following pesistence related errors.

1.The execution of the InstancePersistenceCommand named {urn:schemas-microsoft-com:System.Activities.Persistence/command}SaveWorkflow was interrupted by an error.

2.Type 'System.ServiceModel.Channels.StreamedMessage' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute.  If the type is a collection, consider marking it with the CollectionDataContractAttribute.  See the Microsoft .NET Framework documentation for other supported types."

I think this error is related to serialization of Message class.

Can anyone suggest?




Intermittent problem with Parent package variable configuration


Windows Server 2003 Enterprise SP2

SQL Server 2005 Std SP2

I have a package with configurations of Parent package variable.  It takes the value of the parent package variable and overwrites the ServerName property of a connection manager in the child package.  We do this to allow the package to run against different servers.  The ServerName before the change is set to (localhost).  The InitialCatalog is already set to a valid database name that exists on the target server (but not on the localhost).  This setup works very well and this package runs every hour.  However, the package fails about twice a day (not in any predictable times or pattern).  When it fails, the reason for the failure is a failed login, however upon closer inspection, it seems that the configuration did not work for the ServerName.  That is, the failed login happens on the localhost for a database name that is not valid for the localhost.  In other words, during package exectuion, the Parent Package Variable was never applied to the child package ServerName property.  The login fails because there is not a database by that name on localhost, which would never have been a problem if the Configuration worked properly and the ServerName would have changed from localhost to something else.  I find it strange that it works most of the

Gmail internal chat like message box

This article provides you with the multi-functional message box window through which the usability of the web-site or any web application increases.

.Configurable MessageBox window with AJAX Support
.can set maximum number of message boxes to be visible
.can define the auto reload time, for single message, for all messages or no reload
.can create messages through a single function call
.can define auto hide time for each messages
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