.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

Is it supported to trigger expiration formulas directly from a Web Application hosted on a different

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :SharePoint

On triggering a custom expiration formula directly accessed from our Front End Server Web Application we run into this error (see Event log error below):
Is it supported to trigger expiration formulas from a Web Application (that runs a Site Collection with a custom expiration policy) directly from a Front End server?

Event log:
Error loading and running event receiver Microsoft.Office.RecordsManagement.Internal.UpdateExpireDate in Microsoft.Office.Policy, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Additional information is below.
The Web application at
http://mynltestsp10fe 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.
Additional comment: The Web Application was originally created on the Central Administration server but is also hosted on the Front End server.
(When accessed directly from the Central Administration server documents can be triggered successfully for expiration)


View Complete Post

More Related Resource Links

Developing common content pages that can be hosted at the Web application or TLS level and can be sh

We are working on a Publishing site and planning to provision each client as a sub-site under the top level site (TLS). All of these sub-sites will almost have the same web pages and based on the client specific requirement they can customize these pages if needed. To meet the above requirement: I want to develop common content pages or application pages with the publishing capabilities and host them at the TLS, making these common pages available for all sub-sites under the TLS with the following requirements. ·        Sub-sites will not have any of these pages on their own and there would be only one central copy of this common page at TLS. ·        The sub-sites should be able to access these common pages in their context that means using the sub-site specific Master page & Themes. ·        When there is a specific customization is required such as adding a different web part, or updating the HTML data on the page, the common page will be edited in the sub-site and eventually making its own copy of the common page and resulting breaking apart from the common page for any future changes. ·        When the user edits the page he should be alerted that customizing this common page will make a local copy an

How to make my application to be minimized directly to the tray icon area ?

I know its a problem . my program most of the time working in the background so most of the time its going to be in the tray icon area. The thing is i can minimize now my application reagulary and it will drop to the left bottom corner and i see only the top of the window of the application so i can resize it. Or i can turn the taskbar property to true and then it will be minimized to the taskbar in the middle . I tried using hid on the taskbar but then i cant resize it from the tray icon cuz its only hiding it in the taskbar not realy moving it to the tray icon . Is there any way or something to make the application move directly to the tray icon area when im pressing the minimize button "-" on my application ? I know there some programs not many but some that when you press the minimize button its going directly to the tray icon. I wonder how they did it.   Thanks for the help .  danieli

Passing value from one web application to another hosted in different server

I want to redirect from one aspx page to another aspx page of different application. Both applications are hosted in different application servers. I want to pass a value from one application to another. I tried - 1. Response.redirect with Query string - But query string is not secure as it is visible to user in browser. 2. Cookies - This is also not a secure way. Again if the cookies are disable in the browser it may not work. 3. Server.transfer - In different web application we cant use server.transfer. Please provide any easy solution how to achieve this.  I dont want to display the values to the user as it is confidential data.

client side Print issue in Asp.net application when we hosted in webserver(Global, shaired space).


I have an asp.net application . I hosted this application in shaired server. When the client is logined this site , they have an option for print the certificate based up on the number of copies.  My questin is right now i generated this one pdf, so pdf it self i can print unlimited copies. So i want to restrict this one by blocking the print dialogbox. I want to print it based up on the number of copies from databsase of a table value.  then how to identify the clint side printer to print this one.

Please give any suitable solution for it to print the number of copies without popup the print dialogshop.


So please give a goodd solution for it to print the certificaate in client side based up on the number of copies from database and should be restrict print dialogbox .


Requirments is

 Any methord print client side print based up on the number of copies from database and restrict print dialogbox . User should not be prin number of copiest apart from the number of copies from database.


Please give me the tips for impliment it. and send me source code for easy understanding


Thank You.........

Image Uploading Error in Hosted Application at WebServer


Hi All……!

I am Working on Web Application in my Application there is one Folder Named “RestaurantImages”

My Web Application is Hosted on My Local Server and also on WebServer.

When I Upload Images, It stored in “RestaurantImages” Folder.

When I Upload Images on Local Server Hosted Application Its Working Good, but

I have a Problem When I Upload Image in my Hosted Application on WebServer its not working and

Gives an Error Like Following………

Please Help me……………!

Thanks in Advanced……..!

Problems with changing a SharePoint hosted WCF Application from BasicHttpBinding to WSHttpBinding



I have deployed a WCF Application/Service to a SharePoint Solution by using the walk-throgh described in this article http://www.sharepointbits.com/blog/custom-wcf-services-in-sharepoint-2010.html

My Webservice will be talking with TFS2010 and therefore I need to change the Binding to WSHttpBinding. I have tried to modify the web.config without any luck...

 Any help would be appretiated

<!-- Modified for TFS Services-->
			 <behavior name="TFSServiceBehavior">
     <serviceMetadata httpGetEnabled

Make WPF application look the same on all supported Windows versions

Hi Folks,

I've been developing a WPF application for the past two years on an XP machine. It's mostly been used within my company where everyone else has been using XP, and I have gone to great lengths to make it look good. Now everyone is in the process of upgrading to Windows 7, and the application doesn't look so hot on Windows 7. A few subtle changes in the Windows 7 theme make custom visual changes I introduced on XP look like an eye sore. We are letting some beta customers use this software now, and we plan to distribute more broadly in the future, so I need to make sure the application looks good on any OS that WPF supports. I would be perfectly happy with having the application looking identical on XP, Vista, and W7. I thought I could achieve this by adding the following to my App.xaml file:

  <ResourceDictionary Source="/PresentationFramework.Luna;component/themes/Luna.NormalColor.xaml" />
I tried this, and nothing changed when running the application in Windows 7. Does anyone know how to solve this? I would be most interested in a solution that does not involve any per-OS customization (a per-OS switch statement in one place in my App file might be acceptable). I simply don't have

Stop Application Pool does not trigger PersistenceIOParticipant.BeginOnSave


Hi All,

When i stop the IIS application pool, the persistence will not trigger PersistenceIOParticipant.BeginOnSave to save the customize data into database, however it does save the persistence record into [System.Activities.DurableInstancing].[InstancesTable].

Kindly advise!



Linked server issue when application hosted in IIS



I have hosted my application in IIS. Application has two instance of sql server database connected through linked server. After hosting the aplicaiton in IIS im getting the following error.

SCHEMA LOCK permission denied on object.


Can anyone help?

Weird application behavior -- Action required to trigger service response otherwise the application



I am a WCF beginner and is trying out with a basic host service with callbacks to the client.

My code works wonders if my client app is a console.exe but when I transferred the code to a Windows Form app, the application will freeze.  But if I right click on the form window task bar, the code suddenly goes through and it would work...

Is there anything wrong with this?

The service is hosted on IIS

Here is my Service code:


[ServiceContract(CallbackContract = typeof





  ConcurrencyMode = ConcurrencyMode.Reentrant)]
 Chat : IChat


Dynamically get the current instance of the workflow within a re-hosted WPF application



the scenario is: I create a re-hosted WPF application for the workflow designer, and within this designer I can edit the workflow(sequence, flowchart) with pre-defined and custom activities. The question is, how can I programmatically get an instance of the current workflow. Thereafter I can do some manipulations on this instance.



Session State Expiration after Application pool recycle


Hello All we have a global ships position tracking website which runs smoothly until IIS application pool recycles.When there is workerprocess recycling looks like session state expires as a result i loose all session data and when customer clicks refresh button he is redirected to login page.

In web.config Session state mode is set to InProc so i changed it to State Server but to my luck i have MAP object which is not serialiazable which is causing the maps from not appearing on the website.I tried adding serializable attribute to the object class but still not succesfull.Our website is accessed by our customers whose count is more than 1000.

Changing the session state mode from InProc to StateServer can really slow down the response time so Is it good to go further fix the serailizable issues and move to state server?.

Is there any way I can retain my session data when application pool recyles?..

Stopping Application pool from recycling may not be a good idea considering health factor of web server.


Any Suggestions?..









Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure t

  • I am new to asp.net etc.

I have developed a website that has began to act unusually. I get the following error below.



Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

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.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

Source Error:


The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:


No such interface supported - running windows mobile phone application


I open sample project, build goes OK.
When i try to run it (or just deploy it) i get error "No such interface supported" and project does not strat.

It was working ok a day ago, i had to install VS 2008 since and this is my suspect No1.

Any ideas? Thank you.

Running on Windows 7.


Trigger not inserting from application



I have created a trigger as follows..


 [CustomReport].[trig_ins_call_data] ON
 [CustomReportDB].[CustomReport].[call_data_temp] ([cd_dbid], [campaign_name] ) 
 [cd_dbid], [campaign_name] FROM


There is an SP in the same schema which will insert records in call_data, and the trigger is successfully inserting a copy of the new inserted record to call_data_temp. Also there is an application (.net) which will insert record in to call_data table. But during this insertion, the trigger is not inserting the new record.

Can anyone help me on this? Is it a problem of schema? If possible, how can we confirm that?



Best practices with SQL? Dedicated SQL cluster/log shipping or SQL server per application (Hosted wi



I was wondering if anyone had any comment about the above question...

We have been basically installing SQL on each server as it was required for the application... we now have 10+ servers each with their own SQL server installed locally with the application...

Is this a best practice or is it best to provide some kind of dedicated SQL cluster/log shipping etc method...and host all databases on this?

I can see pro's and con's to doing this...


All databases in one place (Easier management/Licensing/Backup)

High Availability can be configured in various ways for the databases (At the moment they are all single instance with no HA)


An issue with the central SQL device will cause ALL applications to be down

Microsoft seems to recommend greater and greater numbers of RAM for each server they bring out (8GB seeming to be the minimum)... with an offloaded SQL server how much RAM is this thing going to need! 

A final query... although mirroring seems to have been around for some time, Microsoft does not seem to be currently recommending its use for their key products such as SCCM...

The only big vendor I have seen openly support it with guides etc is RIM...


Calling a WCF Self Hosted Console Application

How to consume a WCF Self hosted Console application? | Calling a Self Hosted WCF Service.
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