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

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

MSMQ Access Issue

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :WCF
I am trying to access a private queue through WCF from a windows service. If i make the windows service run under the context of my domain user account, WCF is able to access the queue, however if i make it run under local system/ Network Service WCF is unable to access the MSMQ. I tried giving full access to everyone and also to network service. Can anyone help? Thanks for ur time

View Complete Post

More Related Resource Links

Issue with Data Access Layer DLL

Hi, I am working on a project in which I have made changes to LINQ to SQL code in data access layer project. Initially the code was using Single() extension method, I have changed it to SingleOrDefault() was earlier method was throwing exception if no records found in db. After making changes I ran the project but during debugging VS 2008 was showing that file is changed and do you want to reload the file box. When selected the file, the debugger was still executing the commented code (Single() method). I tried cleaning the entire solution and rebuilding it but it did not help. All the projects (Presentation, BL, DAL) are under single solution. Can any one please help me to solve the issue? Thanks in advance.

"Access Denied" and RunwithElevatedPrivilages issue (Yes, I've found the other posts in the Forum)

I just *KNEW* I had found a fix for my issue in the forums at http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/c3d2b304-7fcc-40d2-86ce-61d9b21b03d7/ However, I've tried every suggestion made in this thread and *still* get issues in that the 'normal' end user cannot see the form. I have any overly simple form in the layouts folder with a lable and a table. I can write the Site Title to the label, and need to add rows to the table, one for each Site Owner (Full Control user) found for the site. This form will be available to anyone with access to the site. However all I get is: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) I have confirmed the application pool identity is the correct service account for the farm.  Here is the code I'm using; can anyone advise where I'm stepping on my own toes? protected override void OnInit(EventArgs e) { try { SPSecurity.RunWithElevatedPrivileges( delegate() { using (SPSite site = SPContext.Current.Site) { site.AllowUnsafeUpdates = true; SPWeb web = SPContext.Current.Web; web.Site.CatchAccessDeniedException = false; thisSiteTitle.Text = web.Title.ToString(); //FindSO(web); //BEGINNING OF COPIED FINDSO CODE writeToEventLog(app, "2", "2"); ArrayList allOwner

Access Services report issue

Good afternoon. We have an issue where the canned reports in a Web Assets Database site throw the following error: Report viewer failed to set the report parameter defaults for this report. Select new default parameter values from the tool pane. The report definition is not valid. Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition' which cannot be upgraded. (rsInvalidReportDefinition) Actually all web databases (assets, projects, contacts) throw the same error for the canned reports however report services runs without issue on the server. The Web Assets database seems fine outside of the reports and when opened locally in access 2010 the reports run fine. We have one Sharepoint 2010 server with SQL 2008 r2 back end configured in sharepoint integration mode.  Thanks for any assistance you can offer. Cheers!   Cory  

SharePoint 3.0 Central Administration access issue


When I click on the icon to open SharePoint 3.0 Central Administration I get the following error:

Cannot connect to the configuration database.

The SharePoint site itself is up with no issues. The problem began after someone else restarted the server.

I stopped and started the App Pool for SharePoint 3.0 Central Administration but the problem still exists.

Anyone have any ideas?

Thanks in advance,


MSMQ system.messaging.message.body unauthorizedaccessexception: Access is denied (exception fro HRRE



I am facing this error long back.. Please help me in this regards...

I have my .Net 2.0 Windows service to read the Priavate non transactions message queues and process into Sql Server 2005 database.....

I have used threading concept too.. i have multiple queues to be read on regular basis...

Getting below error exactly when reading the message body

system.messaging.message mInput ;

timespan tsInput = 1000;

mInput = mqInput.Receive(tsInput);

      ActiveXMessageFormatter axFormatter= new ActiveXMessageFormatter();
      pubqloader.DMPMessage DMPmsg = new PubQLoader.DMPMessage();
      object temp = new Object();
      temp = mInput.Body; --- here getting the error 

UnauthorizedAccessException Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))   

Stack Trace1: when mInput.Body is used

System.Messaging.Interop.NativeMethods.OleLoadFromStream(IStream stream, Guid& iid)
   at System.Messaging.ActiveXMessageFormatter.Read(Message message)
   at System.Messaging.Message.get_Body()

WCF/MSMQ Issue - Not sure where to begin


I've created a prototype application which uses WCF and MSMQ to send simple "hello world" messages from a client app to a server app.  I was able to get it successfully working on my machine. 

However, being a client/server technology, I need to get this prototype working across a network.

So, I got a second PC, installed MSMQ on it and my client application.  When I run the client app on this second PC, it does not work correctly.  I don't get any run-time exceptions, however, the messages are not received on my server.  If I go into my client PC's Computer Management console, I can see the messages in its outgoing queue.  So, it appears that the problem is that my client app is not connecting to my server app.

Both machines are on the same domain and can see each other in Windows Explorer.  I'm able to copy files back and forth from both PCs.  If I execute MessageQueue.GetPrivateQueuesByMachine() on my client PC, I can see my server's queues.  I should note that my server's queue is private. 

I'm using Visual Studio 2008, .NET 3.5.  My server machine is running Windows 7.  My client PC is running Windows Server 2003 R2.  My binding is netMsmqBinding.

To create my prototype, I am using Michele Bustamante's QueuedServices example from chapter 6 of her &q

Issue with Code Access Security Policy - deploying a third party dll to bin


Okay, i think most of you guys out there use wspbuilder to build the wsp solutions and to deploy it. So here is my problem.

I'm working on a SharePoint solution which makes use of a third party dll (Telerik for Asp.Net Ajax - Telerik.Web.UI.dll) for rich experience. Since Telerik dll is a common assembly i have to deploy it to the bin folder of the webapplication instead of GAC. So here comes the problem.

WSPBuilder automatically deploys the dll to gac if the dll presents in the GAC folder. To deploy the telerik dll in bin i created the folder 80\bin and copied the dll there. I tried to build the wsp again and then went through the manifest.xml created. Great. The deployment target for the dll changed to WebApplication and wspbuilder was smart to create the cas policy itself.

			<PermissionSet class="NamedPermissionSet

Issue on MS Access linked to SQL data replica after synchronisation


We have a MS Access front end linked to an SQL 2005 database with around 200 tables. The database is setup with merge replication and an issue occurs on the publication database but after the data is synchronised. If a user tries to add a new record they get an error with #deleted record when trying to add new data into the tables from MS Access. After this first prompt for the deleted record the users can then operate as normal with no error messages and the system functions as normal. Another issue that occurs, but again only just after the data is synchronised, is that if the user requests to view all of the jobs for a particular client the very first time the search is performed a random un-related job is shown not the expected results, if the search is run again then it will funciton correctly until the next synchronisation is run.

Our tables have Unique IDs with automatic indentity and GUIDs. We have exactly the same solutions working on MSDE and SQL 2000 and there is no such problem on these system.

Any ideas would be most appreciated.


MSMQ - WCF Performance Issue


Hi all,

       I directly put the message from client to MSMQ, it is working fine. When I created a WCF Service to store Message in MSMQ. Now I am facing performance issue.  Client UI will call the WCF Service and send the message to service. I am using Windows 7 to host service and for MSMQ. Binding method is wsHttpBinding.  I am just using the simple message structure. My client application is working fine exactly for first ten Messages. After thet client application is hanging and giving the timeout Error.


" The request channel timed out while waiting for a reply after 00:01:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout."

What may be the reason ?

Linked server access issue when hosting application in IIS



I have two instance of database and connected the other with linked server. When i run the application locally its working fine. It gets valur from linked server tables. After hosting the application in IIS im getting following eror.

The OLE DB provider "SQLNCLI" for linked server "LINK" does not contain the table ""90"."dbo"."table"". The table either does not exist or the current user does not have permissions on that table.


Can anyone specify what user should be mapped to solve this issue?

.OCX reference issue "Path/File Access Error"


Hi All,

hopefully someone has solution of this error.

i am adding reference on a .ocx file in my project.

When i tried to access the method of this file .

I get the following message "Path/File Access Error"

I tried running the following commands 'regsvr32 XYZ.ocx'.

but issue is same.

Thanks in advance

Sharepoint services administration access denied issue


Hi i am sharepoint newbie.i was trying to configure forms authentication.and bumped onto configuring it for ssp admin site. after doing it all.ssp admin did show me fba login and i cud login as well... but sumhow im not able to access these links under "User Profiles and My sites"

i.e User Profiles and properties

   Personalization services permissions are two of those tht show access denied error.

i hv searched net for long set administrators of the site but just doesnt work any ideas here?

issue with linked server from sql server 2008 to access 2003 database



I am trying to create a linked server from sql server 2008 to a secure access 2003 database(database which has a password), whatever options i am trying the result is i am getting the error 7399("Cannot start your application. The workgroup information file is missing or opened exclusively by another user.".) or error 7303.

I am selecting 'Microsoft.Jet.Oledb.4.0' as the provider. I think the problem is somewhere in

the workgroup files

Please help me in creating this linked server.



MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.

Store and Display Images from MS Access Database Using C#

There is only the difference of coding syntax to stream the binary data of image content type to upload it into MS Access Database using C#/VB in ASP.Net 2.0

Namespaces required:-
using System.Data.OleDb;

OleDb is used to connect the web site forms with MS Access Database using Microsoft.Jet.OLEDB.4.0

ASP.Net Upload Image to MS Access Database

As you learnt from the previous articles to upload image to the SQL Database in ASP.Net 2.0 and stream that image into the memory to retrieve it from the database and display it on the web page. In this article you will learn how to upload images to the MS Access database in ASP.Net 2.0

First of all create an Access Database and place it in the App_Data folder of ASP.Net web site project. Then create a table "tblImg" with the following fields:

IsapiModule Error 500 Issue


I am about exhausted trying to figure out this error:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server error has occurred.

Error Code: 0x8007007b

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ReportServer

Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer

When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:


CALL_ISAPI_EXTENSION DllName="C:\Windows\Microsoft.NET\Framework\v2.0.50727\\aspnet_isapi.dll"

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