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


Similar Messages:

Configuration :: Web.config Differences On Local Machine / Failed To Map The Path '/'

May 23, 2010

I am loading the config file programaticality so that i can edit it but ive hit a hitch in that when i debug it through VS i get the following error:

An error occurred loading a configuration file: Failed to map the path '/'.

My code is:

[Code]....

I use it in other sections of my site and know that it works as intended when it is deployed to my webhost. I am having issues with another section where I use it so I want to step through it to debug, what do I change this "~" to, to correctly reference the config when I am debuging locally.

View 2 Replies

Configuration :: Using Excel On Web Server, Not On Local Machine?

Jul 23, 2010

With the project I'm working right now, the team and I don't believe the network/computer policies will allow us to create and save Excel files on a local machine through the Web pages we're building. Well, let me clarify. When we run our web pages on our development machines, when we go to save information to excel through the web page, it uses our local excel executable. However, we want it to use the web server's excel executable. When we run the website, we're running individual local copies because we don't have a web server to test on, so we can't verify if it will use the Web Server's or ours. Does anyone know what it will do, or if it has to be programmatically set a specific way to use excel on the web server, and not on the local machine. Once we get the Web Server to use excel, we'd save the file to a network share that would allow the user to view the file.

View 2 Replies

Configuration :: Local Machine Wont Work At Server?

Dec 29, 2010

i developed an asp.net web site and i used ModuleRewriter to rename my pages you can refer to this link [URL] and i want to add many pages programatically at run time for example i have a page named :

[URL]styles/defaultstyle/Default.aspx

and i want to display this page like this :

[URL]Default.aspx

so my code was like this :

public static void confgrewriter()
{
try
{
RewriterRuleCollection rules = RewriterConfiguration.GetConfig().Rules;
RewriterRule r = new RewriterRule();
r.LookFor ="~/Dfealut.aspx" ;
r.SendTo ="~/styles/defaultstyle/Default.aspx";
rules.Add(r);
}
catch (Exception ex)
{ }
}

and this solution is working very good on iis at my local machine but when i did upload this website on shared host i recive error message: The resource cannot be found.

Description:

HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. review the following URL and make sure that it is spelled correctly.

View 6 Replies

Configuration :: Running 2.0 Application On Local Server?

Jun 11, 2010

while running my aspx pages on local iis 5.1 of my system, it doesnot shows the images and also when i tried to login with the same credentials that i was using with visual studio2005 it always give me error of wrong credentials

View 1 Replies

Configuration :: Saving Data From Godaddy Server To Local Machine?

Nov 11, 2010

my application raises security issue while saving data from server to local machine.but everything working well locally.

View 2 Replies

Configuration :: How To A Give Remote Server Account Read / Write Permissions On Local Machine

Oct 25, 2010

I'm using VS2010 and need to give my remote server asp .net account (IUSR_istereos) access to my local intpub folder

how do I do that?

View 5 Replies

Does Server.MapPath Behaves Differently In Local Machine And Server Machine

Jul 1, 2010

I have had a real nightmare with Server.MapPath(). When I call Server.MapPath("~") in my application that is running in ASP.NET Development Server it returns root directory that ends in a back slash like f:projectsapp1, but I call it in published version, installed in IIS, it returns root directory without any back slash like c:inetpubwwwrootapp1.

string mainRoot = HttpContext.Current.Server.MapPath("~");
DirectoryInfo di = new DirectoryInfo(mainRoot);
//added to solve this problem with Server.MapPath
if (!mainRoot.EndsWith(@""))
mainRoot += @"";
FileInfo[] files = di.GetFiles("*.aspx");
foreach (FileInfo item in files)
{
string path = item.FullName.Replace(mainRoot, "~/").Replace(@"", "/");
//do more here
}

View 1 Replies

How To Get The Local Smtp Server Info From The Local Machine?

Jun 1, 2010

How do I get the smtp server address for the local machine? I want to my email address on a windows form and have the user send me an email and I need to be able to get their smtp server address programatically to do this. I tried this:

System.Net.Mail.
SmtpClient smtpc =
new
SmtpClient("127.0.0.1");
smtpc.Send(email);

It caused an exception.

View 3 Replies

Configuration :: Getting Error In Running The Page In Server?

Feb 5, 2011

got this error when i uploaded the files in iis and browse the page.

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

im using window server 2003 with sp2

but in my pc the program is working and also the iss.

View 2 Replies

Configuration :: Error While Running An Application On IIS Server?

Aug 17, 2010

i got the below error while running an application on IIS server. Error 167 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. E:iaeciaecWeb.config 48 .

View 4 Replies

Configuration :: Host Application From Local Machine?

Feb 1, 2011

I have to host an asp.net that user can access that website something like http://111.11.11.11/myapp/homepage.aspx. ( my ip address will be 111.11.11.11). All I have local IIS installed. I want that if any user clicks on the link. He should be able to access that web application.

View 9 Replies

Configuration :: Login Works On Local Machine But Not In Production?

Sep 1, 2010

Here is my problem: I have created a login form on my local machine. I have tested it on the local machine and it works fine. But when I push it to production it doesn't work.

I set-up the web config file so that the system uses the production database even from my local machine. I used the Web > AspNet Configuration tool in Visual Web developer to add a user to the production database. I used Sql studio management studio to confirm that the user was in the production database and not just on a local database. I have removed all references to the local database. I even deleted the entire app_data folder on my machine so that there was no chance that I am using a local database.

To create the login, I dragged a login component onto my Login.aspx page from the toolbar in visual web developer.

Why can I log in just fine on my local machine, but when push everything to production and I try to log in as that user I get the error message "Your login attempt was not successful"

View 3 Replies

Configuration :: How To Make Changes To The Code After Publishing Website3.5 In Local Machine

Feb 10, 2011

I want to make changes to the webite developed in asp.net3.5 which is published.

View 3 Replies

Configuration :: Debug The Website Always On A The Same Port Number On Local Machine In VS

Jan 1, 2011

I am developing a website in ASP.NET. I wanted to know how can I give a static path to my website on my local mahcine such that it will always be deployed on port number. For eg: in php, the path can always be http://localhost/websitename

but in ASP.NET, whenever, I debug the website for testing, it is always deployed to a new port number. This prevents me from testing my script which can only be given a static name in Greasemonkey.

View 3 Replies

Configuration :: SFTP Component For Local Machine With Multiple IP Addresses

Mar 9, 2011

I'm searching a .NET SFTP component which can sniff IP addresses of local machine and select one to use for file transfering.

View 3 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 :: Apps Automatically Using Machine.config

Oct 31, 2010

I have connection strings info in web.config. I thought that if this were the case, machine.config would be ignored. But, everytime the connection string in web.con is different than the connection string in maching.con, I get error. The connection name 'aspnetdbConnectionString' was not found in the applications configuration or the connection string is empty. Is there something I can check or change to get the app to ignore the machine.config when web.config connection string is listed.

View 4 Replies

Storing Configuration Data In .NET Than The Web/machine Config?

Jun 24, 2010

We have a large multi tenanted website which requires thousands of lines of web.config to support it. As the system grows we are finding it more and more difficult to manage this configuration file.The system currently in place uses XSLT to generate the config but this solution seems to involve a lot of duplicated code (we have 12 deployment environments).

I am leaning towards putting the configuration data in the db so we can be sure that it's deployed with the application and that our release notes don't require the IT guys messing around with XML

What are better solutions we could use?

View 3 Replies

Configuration :: Decrypting Web.config In Differenct Machine

Mar 15, 2010

We have a problem regarding decrypting the web.config... We encrypted the web.config in computer A. but we need it to decrypt it in computer B.

we got an error

"Failed to decrypt using provider 'DataProtectionConfigurationProvider'. Error
ssage from the provider: Key not valid for use in specified state. (Exception
om HRESULT: 0x8009000B) (D:WCFSearchweb.config line 17)

Key not valid for use in specified state. (Exception from HRESULT: 0x8009000B)
Failed!"

we also tried the RSAProtectedConfigurationProvider and we're not able decrypt also...

I search google and found this unfortunately we can't decrpyt it... How do i include the key? do i need to copy and paste it?

View 6 Replies

The 'Microsoft.ACE.OLEDB.12.0' Provider Is Not Registered On The Local Machine - How To Fix This Error

Mar 21, 2011

, ive written this website and it works perfectly offline

But when i upload it to my webhost i get the folowing error:

Code:

Why do I get that? Am i missing something in my connection string or what can it be?

View 1 Replies

Visual Studio :: Error While Enumerating Services On Local Machine?

Jun 30, 2010

This error never happens before in my machine since 7 months of using it. [:(]

"There was an error while enumerating services on local machine: Active Directory Services cannot find the web server. A possible cause for this is an incompatibility between versions of Internet Information Server (IIS) on the client and the server. Another possible cause is that IIS is not installed on the local machine, or the user identity under which you are running may not have permissions to view websites on this machine. To view websites on this machine, make sure that you run Visual Studio as administrator. On Windows Vista computers with IIS installed, make sure that IIS Metabase and IIS 6 configuration compatibility feature is enabled."

I'm trying to add back a webservice (localhost) after deletion. And suddenly I'm getting the above error.[:(]

The error's suggested tip is to install IIS but I did not install IIS since then in my machine because VS2010 built-in server do just fine. Should I install IIS?

I also found this helpful tips but nothing works. [:(]

* Run Visual Studio with elevated administrator permissions
* Be a member of the "Administrators" group on the local machine
* Right-click the Visual Studio icon and select the "Run as administrator" option from the context menu.

View 2 Replies

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

Configuration :: Unable To Access Connection String In Machine.config

Nov 14, 2010

I have a Windows Service I have developed in Visual Studio 2005 (C#).

It accesses a database using a connection string in machine.config.

On my Windows XP Pro 32bit (SP3) machine, it works correctly.

On my new Windows 7 Pro 64bit machine, it throws "object not set to an instance of an object" when it gets to the line where it's trying use the connection string.

This is the 'object' which is not set in Windows 7:

ConfigurationManager.ConnectionStrings["MyDatabase"].ConnectionString

The machine.config has the same connection string set up on both machines.

A .Net 2 website transferred to the Windows 7 machine has no problem accessing the same connection string.

I have tried a bunch of different permissions on the machine.config and its containing folders, and setting the service to log in as Admin, but I don't know exactly what permissions are required.

View 1 Replies

Downloading Files From The Server To The Local Machine In C#?

Jul 24, 2010

In my application I have a requirement where the client/user needs to download video files from the server to their local machine.

View 1 Replies







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