.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

Application_Error not firing on Production server.

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :ASP.Net
 Hi, I am trying to setup my application on Production server. Whenever any error occurs, we are redirecting to a specific page in Application_Error Event in Global.asaxThe code in Application_Error Page_________________________________________ string _rawUrl = Request.RawUrl;if (_rawUrl.IndexOf(".aspx") == -1 && _rawUrl.IndexOf(".gif") == -1 && _rawUrl.IndexOf(".jpg") == -1){       string[] _arrRawURL = _rawUrl.Split('/');       Server.Transfer("~/UserHomePage/Default.aspx?UserProfile=" + _arrRawURL[_arrRawURL.Length - 1]);}  It is getting fired Locally. As it was not working, I tried the alternative as belowMade Custom Errors to On in Web.config. and in IIS, in Custom Errors section, under 404 Page I gave the ErrorPage file Name and written the above code. But still  it is not working.Kindly help me out!  Thanks in Advance. Chaitanya.

View Complete Post

More Related Resource Links

Deploying custom Web Parts on SharePoint 2007 production server

I would like to develop a custom SharePoint 2007 Web Part for a client. Currently I'm using Visual Studio to deploy my solution to a test environment (since it's a SharePoint Project I choose just Build -> Deploy from the menu). What are the appropriate steps to deploy it to the production server?

I'd like keep it simple and safe (i.e. use the principle of least privilege). Therefore (if possible) avoid using stsadm, achieve this through web interface, or avoid using administrative rights.

Also, can I specify the scope of my Web Part, i.e. choose on which Web Application or Site Collection will it be installed?

Development and Production Server software information for Sharepoint 2010 ??

Need to ask my IT Team to get me softwares for Development machines to write code / develop sites which we can give to end customers for deploying in their Sp2010 Production farm . W.r.t to that i have following questions : For Development , a) Which Windows Server 2008 OS version is sufficient - Standard , Enterprise , R2 ? b) Which SQL Server Version is sufficient ? c) Which VIsual studio version ? d) Which Sp2010 license version ?   From Production environment perspective , have following questions - a) What should be a recommendation to client for Production Server - Widows 2008Server sp2 or R2 ? SQL Server 2008 Server Sp2 or R2 ? Which is better and why ?  

Migrating to Production server

Hi All, We have a dev server in which we have two databases which we are maintaning for 3yrs.The tables in these databases have data for 3yrs like in millions. now we are planning to migrate it over  to production server.the dev  server will be with us but the whole databases and jobs and everything from dev server should be migrated to the new production server. can anyone guide me the step by step process how to migrate the dev server to production server. I need to prepare a document for the production people to get this done. Thanks in advance.

What is the best and easiest way to add SSL on a production 2007 SharePoint server

I already have a 2007 SharePoint Server up and running http://www.abcde.com/sharepointsite1 1) What is the best and easiest way to have https://www.abcde.com/sharepointsite2 in addition to have http://www.abcde.com/sharepointsite1 running as is? 2) Should I setup another web application all together with another IP address with port 443? Would that be the easiest? I can have something like this https://www.abcdefg.com/secure1 3) Please advise and comment. 4) If I don't create another web application, what are my alternatives? Thanks for the help

Moving a feature from dev server to production server

Hi, I have created a feature in my sharepoint development server. The development server is one location and the production server is in another location. After testing the feature in the dev server, I am not sure how to move the feature to the production server. I want to move only that feature, that is newly created and not the whole site. How to move a feature from dev server to the production server. Please explain the steps in detail, if possible. Thank you

error in emailing moudule frm production server

in my asp.net application i have a emailing module& i have 2 web server 1) is the development server  2) production serverdevelopment server  has all the source files & the code where i can debug  2) production server has the published files the problem that i am getting is when i am sending the email thr; development server it works fine without any error but when do the same process thr' production server i get error , the code files , teh database etc all is same - i am not able to trace the error as i am not able to debug on th eproduction system , and the mail is not senthow & where do i check out & solve the issue 

Making a copy of WSS3.00 from Production server to Development.

Dear All, I have a WSS3.0 production server which use MSSQL2008 database on Same box.Now I am planning to install a new server for developement purpose with same settings as production.Is it possibile to make a copy of production WSS on new Development server? It would be a great help if somebody can explain me the steps how to configure a copy of datas from Productin to Development incase if this option works!   Thanks to all in advance Regards Jo

web service is not working on production server

hi i am calling the webservice from acrobat javascript. it works very well in development server. but when i put the same code in production server, it doesnt call the webservice. And doesn't throw any error. Help me .

Application_error not firing

I have included code in the Application_Error event of my global.asax file. Unfortunately it appears that this event is not firing. If I try to handle the event in web.config it works fine. Q. Do I need to set custom errors mode to 'off' in web.config in order for Application_Error to handle the error. If not any ideas why Applicaiton_Error is not running it's code?

How to deploy and configure ssis packages using sql server table in testing server and production en

Hi We have three environments (development, testing and production ) I have to configure and deploy the ssis packages using sqlserver table in different environments(development, testing and production).   Three environments database structures  are same But database names are different like (DEVSERVER,SITSERVER,UATSERVER) We have 14 packages and one master package. In master package we called all 14 packages question1 First time i will deploy all (master and 14 packages). If i modify one package we need to deploy all the packages or single package deployment is enough    Please help me thanks in advance          

Deploying wsp files in production server



I am using wspbulder. I created EventHandler project and builded the wsp file. I had got a wsp file, after building the application.

How to deploy this is in production server( which is a different machine).

Could someone please provide links on working with wsp for feature and Event handling and deploying the same in production server.

Thank you

Server Side Code Not Firing After Javascript Function


I have a group of buttons and a text box which I have been using for paging. The user is able to type a number into the text box and either click the "Go" button or hit "Enter" for the paging to occur. To have the "Enter" button work I had to turn the "UseSubmitBehavior" property to false for all of the buttons except the "Go" button.

Now I am trying to add a javascript function that shows a confirm box when the user clicks on a paging button. If the function returns true, the client side code should run. If the function returns false then nothing else should run. I have been successful with getting this to work for the "Go" button but it won't work for any of the other paging buttons because I have "UseSubmitBehavior" set to false. Can anyone think of a way to get this to work with the other buttons?

Thanks in advance for the help.

<asp:Button ID="btnFirstPage" runat="server"  Text="<<"  OnClick="PagerClicked" OnClientClick="return unsavedChanges();" UseSubmitBehavior="false" />
<asp:Button ID="btnPreviousPage" runat="server"  Text="<"  OnClick="PagerClicked" OnClientClick="return unsavedChanges();" UseSubmitBehavior="

Clone production Sharepoint 2010 server to Developmet environment - steps? help?


Greetings all,

I'd really appreciate some thoughts and suggestions about how to make a clone of our Sharepoint 2010 Production environment that we can use for testing and development.

At the moment, we are likely to have two different servers (Production is a much more expensive, powerful server) for the scenarios; so if we make a direct clone, the Windows OS files would be upset.

Would it be enough to simply copy the Windows Shared files into the Dev system (taking all modifications with it) and the db into a cloned db?

If not, what are the things we'll have to consider, and/or has anyone accomplished this yet?

Thanks for your tips and suggestions!


Upgraded website to AJAX 3.5, I get js errors on production web server



I recently upgraded our website to include some AJAX 3.5 modal popup extenders.   The site is working fine on my development machine, unfortunately when I published it over to our production web server (running IIS6) I'm getting javascript errors every time a page containing one of these controls loads.  Here's what shows up in the Firefox Error Console:

Error: $get("scriptmanager1_hiddenfield") is null
Source File: http://www.senske.com/ajaxtest.aspx?_tsm_hiddenfield_=scriptmanager1_hiddenfield&_tsm_combinedscripts_=;;ajaxcontroltoolkit,+version=3.5.40412.0,+culture=neutral,+publickeytoken=28f01b0e84b6d53e:en-us:065e08c0-e2d1-42ff-9483-e5c14441b311:de1feab2:f9cec9bc:ab09e3fe:f2c8e708:87104b7c:a67c2700:8613aea7:3202a5a2:be6fb298
Line: 40

//END ModalPopup.ModalPopupBehavior.js
(function() {var fn = function() {$get('scriptmanager1_hiddenfield').value += ';;ajaxcontroltool

Help dynamic dropdownlist work on developer server but in production server not


 HI! I create a dynamic dropdownlist to select several values, in developer server it's everything ok but in production server, when the postback happens lost the selected value. Any idea?

Catch 22 Database Connection Validation Issue w/ BIDS and Production Server


I have a rather simple SSIS package that exports data through an ODBC connection from an IBM iSeries database and copies that data to a SQL Server 2005 database.  When I was designing the application, I was able to connect to the iSeries database and store the user ID and password with my BIDS project and copy the data with out any problems.  Great!

When I finished designing and testing the project, I loaded it to the production server.  The final test was to schedule the process so that it would run each night.  I didn't realize it at the time but the password that I had stored with the project in BIDS was removed from the package and various MS documentation stated that I should create a configuration file and load the password from there.  So, I made the necessary changes to the project, adding a configuration file.  The config file is in the Miscellaneous folder within the BIDS project, however, it isn't automatically copied to the bin directory when I build the project.  I have to manually save it to the server, and then after importing the project I have to manually link to the necessary config fields.

This fixed the problem with the server, however, now I can not get BIDS to save my password with the connection string from within the designer.  This is a huge problem.  I am exporting from 21 different da

Deploy web part to production server


I develop my visual web part on a development machine running windows 7, SharePoint foundation server 2010 and visual studio 2010,  

I have SharePoint 2010 production server, and I deploy the web part as the instructions using the following line


stsadm -o addsolution -filename <yourfilename>.wsp

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