Configuration :: Encrypted Web.config File - Production Server Error

Dec 27, 2010

I encrypted my web.config file and I copied this file to the production server. But I get an error. But without encrypting - it's ok. I used:

C:WindowsMicrosoft.NETFramework64v4.0.30319aspnet_regiis -pef "appSettings" "C:inetpubwwwrootSite1" -prov RsaProtectedConfigurationProvider

I don't have access to IIS. Is it possible to encrypt config file and everything works?

View 3 Replies


Similar Messages:

Configuration :: Decryption Needed For Encrypted Web.config File?

Jul 20, 2010

I have a encrpted web.config file. How to decrypt this file. Because I need to update connection string information in that file. So i need to decrypt the existing encrypted config and update the connection string then again I have to encrypt.Did not work below command. getting error(Decrypting configuration section...Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error mess
age from the provider: Bad Data.)

aspnet_regiis -pdf "connectionStrings" <physical path of the we b.config file in server>

View 1 Replies

Configuration :: Calling Dll With Gives HTTP 503 Error On Production Server?

Jan 11, 2011

We have had some problems with using a unmanaged DLL file written in Delphi. (Unable to load dll - not found...)The following code solved the problem on my local machine:

[Code]....

1) The elusive DLL is copied to the ASP.NET temporary files folder2) To check this we get a list of files from that folder.3) The needed function is called with DLL-import.1 & 2 works perfectly - both run directly from Visual Studio 2010 and when uploaded to a webhotel3 works perfectly local, but causes the remote host to think a little and then return a HTTP 503 Service Unaviable error for the next few minutes...

View 1 Replies

Using Encrypted Web.config File?

Jun 18, 2010

My aim is to make the web.config not readable by external users, but my application should be able to access it. Is there any way to do this?

I have tried the following way, but how to set the application to use string instead of web.config?

I want to encrypt my web.config file so that others do not open the file using any editor like notepad. But my application should be able to use the same web.config file. I could encrypt the web.config file and decrypt it inside the application and I saved the entire web.config to a string file. Now I want to use this string variable instead of web.config(now in encrypted form, which cannot be accessed by the application).

View 3 Replies

Writing Encrypted Connection String To Web Config File?

Jun 28, 2011

How to programmatically write an encrypted connectionString to a Web.Config file?

View 5 Replies

DataSource Controls :: Encrypted Connectionstring And Store At Web.config File?

Jan 19, 2011

I encrypted my connectionstring and store at web.config file. Then I bind Gridview with sqldatasource control, cannot bind because of sqldatasource don't know the(encrypted) connectionstring.

View 5 Replies

Configuration :: Error 1 Could Not Open Source File: Could Not Find File 'C:11-22 EstobjDebugCSAutoParameterize RansformedWeb.config'. 0 0 Test

Nov 24, 2010

I have built an ASP.NET (.NET v4) application in VS 2010. It is working just fine. But when I try to create deployment package (so I can deploy it in our test IIS 7.5 Server), it gives me error like this,

Error 1 Could not open Source file: Could not find file 'C:11-2 estobjDebugCSAutoParameterize ransformedWeb.config'. 0 0 test

Thing is in past, I had deployed the SAME application using the SAME method.

View 2 Replies

DataSource Controls :: Generates Unspecified Error On Opening File On Production Server

Jan 5, 2010

I have an application that uploads an Excel .xls file to the file system, opens the file with an oledbconnection object using the .open() method on the object instance. The upload and writing of the file to the file system works fine but I get an error when trying to open the file on our production server only. The application works fine on two other servers (development and testing servers).

string connectionString = ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + fileName + ";") + "Extended Properties="Excel 8.0""
OleDbConnection connection = null;
connection = new OleDbConnection(connectionString);
connection.Open();

The exception comes on production server at connection.Open() some times, when I reset the asp.net worker process it started to work but after some hours/days It occurs again. how can I fix this issue which comes in production some times but very irritating, or there is some other work around.

View 4 Replies

Configuration :: Web.config Connection Strings For Development And Production Environments

Apr 15, 2010

I have seen the examples on how to switch between connections strings for development and production enviroments. My web.config also calls out a connection string for <roleManager and membership><providers>. Can this be setup to switch between the two connection strings?

View 1 Replies

Configuration :: Create A Custom Error Page In Web.config File?

Apr 14, 2010

If I create a custom error page in my web.config file, how do I retrieve error details in the error page?

So with ...

<customErrors mode="On" defaultRedirect="/error/error.aspx">
<error statusCode="404" redirect="/error/404.aspx" />
</customErrors>

I am referring to errors generated by my asp.net. For example I created a sample page and wrote 'throw new Exception("some error")' as a test. How can I retrieve an instance of the exception or exception details in my "/error/error.aspx" page? Currently in my error page if I query Server.GetLastError() the return value is null.

View 6 Replies

Configuration :: Web.config Error After Uploaded In Server?

May 7, 2010

I am using vs2005 and sql server 2005, the problem is my website is running in my local pc but when i uploaded it into web server i got this error

[URL]

View 2 Replies

Configuration :: What Changes Must Be Made To Web.config File For Uploading To Hosing Server

Mar 1, 2011

I created my application using asp.net binded to MySQL database and every thing is working fine.

I used connection strings and normal connections defined in the code as mysqlconnection.

I uploaded all pages and database to the webserver, but the data is not accessed.

I have to modify the web.config file but what changes I have to make?

View 2 Replies

IIS Configuration :: Web Config Error - It Could However Be Viewed By Browsers Running On Local Server Machine

Jun 5, 2013

When I run my application I got this error

Server Error in '/POD/POMLNT' 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>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
 
What is it means , and how can i fix it ?

View 1 Replies

Configuration :: How To Merge A Distribution Web.config File And An Existing Web.config File

Mar 30, 2010

I'm preparing to deploy a ASP.NET web application. The target server has already a previous version of my web application with parameters specified on the web.config file.

In the new version of this web application, the web.config file contains new sections I would like they appear into the target web.config file on the server.

However I can't find the way to merge the new web.config sections into the existing web.config file ?

Does I have to do it programmatically, or is there a tool to merge the both files during installation ? (I'm using Web Setup Project).

View 2 Replies

Configuration :: Compilation Error Name Not Declared On Production?

Jan 26, 2011

In my production environment i am getting below error

Compilation Error

Name fci not declared

[Code]....

View 7 Replies

Configuration :: Trying To Modify My Web.config File/ Error "Keyword Not Supported: 'dsn'."

Jan 5, 2011

My hoting provider has provided me dsn connection to database through dotnetpanel for my asp.net mvc site. In my dev i was using sqlconnection. Now I am trying to modify my web.config file. In my web.config file i am getting the error

"Keyword not supported: 'dsn'."

My web.config file is shown below

[Code]....

View 6 Replies

Configuration :: Use Ajaxpro In Production Server?

Feb 2, 2011

I am using the Ajaxpro dll in my development server working fine.If i am going to deploying the code from production server its not working. I am getting the Ajaxpro is undefined..

View 2 Replies

Configuration :: How To Read Web.config File In App.Config In Web Application

Jan 5, 2011

I am developing web applicaiton. I want to read web.config in App.config file. I have appSettings and connectionStrings in web.config. How to read that?

View 10 Replies

Configuration :: Switching Between Development Server And Production Server?

Mar 22, 2010

I am wondering the best way to change my connection string based upon which server I am accessing.

Essentially, all of the development is done on our local machines - once we think it is working, we upload it to our development server. In these 2 instances, I want my application to go off of our "dev" connection string for the SQL database in the web.config.

However, once it is published to our production server (for an internal application), I would like the connection string to point to our live db.

I am using the N-Tier model by Imar Spaanjaars - and have it setup like he suggests - In my DAL I have a class called AppConfiguration -

In this class I have a public readonly property ConnectionString() which returns the connection string in the web.config.

This is in an individual class library. What I would like to do is something similar to:

If server is localhost OR devstring return devString else return productionstring

View 1 Replies

Configuration :: Deploying Application On Production Server

Mar 17, 2011

I have deployed simple application on production server it just update sql server table via update query.

The problem is That when I run that app on development machine it updates table on remote server but after deploying it on production server and accesing the url on production server/and development machine my code doesn't execute and thus it don't update table.

I have created virtual direcotry and configured app with specific application pool which is custom based Asp.net account.

View 7 Replies

Configuration :: Writing Permision In Production Server?

May 5, 2010

In Production Server there are Issue with Writing in one of File. File not getting Write.I have give all the permsion even added EveryOne give full permsion.It's working on a windows 7 But Not working on a Windows Server 2008.R there any extra permsion need to apply ??

View 1 Replies

Configuration :: How To Move A Secure Application To A Production Server

Jul 20, 2010

I am rather new to asp.net but I have built a couple of apps that do not require users to login. am having some problems moving my secure .net application from my laptop to a production server, however, and I am hoping someone can help me. On my laptop my application's user authentication functions as it should, but when I move my application to a webserver I get an assortment of errors. Forgive me if these questions are a little basic. My first question is this. In a production environment do I move the ASPNETDB.MDF file in the App_Data folder to my SQL server? Is it OK to rename it to something more descriptive?

View 4 Replies

Configuration :: DLL Works On Local IIS But Fails On Production Server?

Jul 14, 2010

I have used a dll named MARCEngine, which is used to read Marc data. I use a method named MARC2MARC21XML which converts a normal marc file to an XML file.

The problem is it works great on my local IIS, but when I upload it to the production server, it only generates the root node and not the child nodes.

Here is a snippet of my sample page :

[Code]....

Asp.net has the permissions to access the files geneated.

View 1 Replies

Configuration :: Application Blocked After Updating DAL For Production Server

Jul 6, 2010

Sometimes I would like to be able to update during day time my ASP .Net application. I noticed that quite often updating DAL's (.xsd files) that are in used will block my application (and users). The only way, I found to recover, is to restart IIS but my users do not like it.

Is there some more clean way to update an online server without disrupting the users ?

Could I identified the DAL which are in used and the users using them, so that I could somehow disconnect only these users (My application uses Windows authentication).

View 1 Replies

Configuration :: Web.config Deploy Time Configuration Error Assemblies

Jun 4, 2010

I built my ASP.NET website using vs2008 professional.

Now I have purchased vs2010 professional edition.

I do format my computer and then installed vs2010.

Now I want to deploy my website in vs2010, but it is giving configuration error in <add assemblies...

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: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved