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


Similar Messages:

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

Web Forms :: Mapped Path Works Only On Local Machine?

Apr 16, 2010

i have the following code. what i have tried to do is map a path which points to my R:/ - the value 'R:' is stored in my web.config file. this drive is on my server. what i then do is pass the file name and play in an embedded media player in the web browser. when browse the website everything works fine. however, when i browse the website on another PC, i get an error saying it cannot access the file. is this because the second PC i tried the wesbite on doesnt have an R: drive? i wouldnt have thought this was a problem though. is what i am doing wrong? does anyone know why i cant access the file on that drive?

fileName = ConfigurationManager.AppSettings["MappedDrive"] + fileName;

View 6 Replies

Configuration :: Website Launches With Local Path Rather Than Web Path When Debugging?

Mar 29, 2011

When I press start on my VS2010/Silverlight/C# project, it opens a new instance of the included webserver and opens my browser window so I can test the application. Unfortunately something has happened and I am not sure what it was.. The browser window now opens the starting page with a local machine path (C:...page.aspx) rather than the normal webserver path through http (http://localhost:33592/page.aspx). It is a Silverlight Navigation project using c#/asp.net code behind.

View 2 Replies

Configuration :: Error Occurred Loading Configuration File - Failed To Map Path

Mar 1, 2010

An exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.Configuration.dll but was not handled in user code

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

It started when i installed silverlight 3.0 Is there any fix for this. im getting error in this code:

rootWebConfig = WebConfigurationManager.OpenWebConfiguration("~/");

Configuration

View 5 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 :: 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 :: 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 :: 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 :: 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 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 :: 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

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

Failed To Generate A User Instance Of SQL Server Due To Failure In Retrieving The User's Local Application Data Path

Jan 22, 2011

i have an asp.net project in vs2010 i have a db and table inside the app_data folder, i have created a deployment package and have imported the package into an iis server that is installed on my local mechine.
now i get this error message while trying to preform an insertion.

Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed
the connection string is:

Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|survey.mdf;Integrated Security=True;User Instance=True

when running it inside VS2010 it`s working fine.

View 1 Replies

Get Error "The Configuration For Physical Path C:Web.Config Cannot Be Opened" While Decrypting The Web.config

Mar 25, 2010

aspnet_regiis.exe -pdf "connectionStrings" c:web.config And this is the error I got. Error - "The configuration for physical path 'C:Web.Config' cannot be opened. And the permissions of that file is not read only.

View 2 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

Configuration :: Using Location Path In Web.Config?

Jul 8, 2010

I wanted to impose specific timeout interval and request length on some specific pages that uploads documents of size up to 50MB. Hence I did the following config changes after going through some sites.

<location path="Upload.aspx" >
<httpRuntime maxRequestLength="51200"/>
<httpRuntime executionTimeout="36000"/>
</location>

I keep getting error when I run the application. I tried various other ways like giving the complete path like <sitename>/<applicationname>/<v.folder name>/<filename>.I tried this on both IIS 6.0 and IIS 7.0.

View 8 Replies

Configuration :: Managing Local / Remote Web.config Settings?

Apr 6, 2010

I'm just wondering what the best practice is for managing web.config connection strings and SMTP settings when working locally in VS2008 and deploying to a remote server?

View 5 Replies

Configuration :: Get The File Path Test.config?

Mar 9, 2011

[Code]....

[Code]....

I want to I get the file path test.config.How do find the the path to that file ?I tried something this but it appears an error:Object reference notes Set to an instance of an object.

View 2 Replies

Web Forms :: Copy File From Local Machine To Device Connected To This Machine

Mar 24, 2010

1. ASP.Net WEB server.

2. I have PC, on which file to copy to device is located, with Active Sync installed and IE running which has a page in that IE has rendered by server #1.

3. I have a DEVICE connected to desktop #2 via AS.

I would like to copy file from a local machine to the device which is connected to this machine. My application is located in a webserver.

View 5 Replies

Date And Time Format Different On Local Machine Compared To Production Machine?

Sep 22, 2010

On one of my pages I display a datetime (from a database) and it is formatted correctly as a UK date time (dd-mm-yyyy) on my local machine. However when I deploy it to a server it reverts to American format (mm-dd-yyyy). Does anyone have any idea of when this might be happening?This might be outside the scope of stackoverflow

View 3 Replies







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