Configuration :: Can't Find The Correct Path On Server
Sep 22, 2010
i have developped an application localy that can browse excel files, pictures etc... and display them, the thing is, that on my PC when a user upload a picture it will be saved under local disk C: and to browse it i will access C:idpicture and display it, that easly. the problem is when i deployed the application on iis 7.5 it's not working anymore giving me an error saying that the path is wrong or the name of the file is changed etc...
i have understood that i can't put it on local disk C: because the picture or the excel file must be shared on all the PC's, so i have created a map network drive (PUBLIC X:) which is availble on all PC's, that way i will browse in X:idpicture but that is not working aswell.
my question is: what is the proper path to use to access file on the server (PUBLIC X: or C:) using IIS?
View 8 Replies
Similar Messages:
Aug 31, 2010
I have an issue trying to connect to a mapped drive from an asp.net application.I tested my code on the development machine and it was successful.
[Code]....
"z" is a mapped network drive. My web servier is a virtual server Windows 2003 R2.When I try to create the dirctory on z drive I got the following error.Could not find a part of the path 'z:uploadsuser1-timenowIF I change the path from "z" to local drive like "c" it works fine.I tried to use Impersonate true to one user account ("let's call webuser which has full access to that z drive") and I still get the same error.
View 5 Replies
Apr 7, 2010
In my application when I click on one of my button in the page it is giving error like this..
Could not find a part of the path 'V:UserEnterTrailorVideosluck.swf'.
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.IO.DirectoryNotFoundException:
Could not find a part of the path 'V:UserEnterTrailorVideosluck.swf'.
There is No folder ("EnterTrailorVideos") in my project. But it is showing like this .
This the code:
string path = Page.MapPath("../../User/VideoOut/"+sFile);
FileUplvideo.PostedFile.SaveAs(path);
Session["oldfile"] = path;
View 2 Replies
Jan 1, 2011
I get the error after uploading my ASP.NET solution to server:
[NullReferenceException: Object reference not set to an instance of an object.] wwwroot.CLASS.Website.clsIndex.SAN_PHAM_MOI_NHAT_FILL() in C:jasmine.arvixe.com ukhi89hoasacmau.comwwwrootCLASSWebsiteclsIndex.cs:66 wwwroot.index.f_BindDataToDataListMoiNhat() in C:jasmine.arvixe.com ukhi89hoasacmau.comwwwrootindex.aspx.cs:32 wwwroot.index.Page_Load(Object sender, EventArgs e) in C:jasmine.arvixe.com ukhi89hoasacmau.comwwwrootindex.aspx.cs:23 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
C:jasmine.arvixe.com ukhi89hoasacmau.comwwwrootCLASSWebsiteis the path on my computer and I don' understand why website on my server point to it (I uploaded successfully)????How to update the path of ASP.NET Web Application correctly for the server??
View 3 Replies
Mar 8, 2011
I am using the javscript to popup a calendar when user click on calendar icon.So here I am using like "../calendar/calendar.html?datetime=" to trigger the calendar.html.But when I try to test it in IE its working but not in Firefox(It's not getting the correct url path).
View 1 Replies
Dec 17, 2010
I want the arrow-collapsed image to be displyed before accordian headers and when accordian header is clicked and expanded, arrow-collapsed image should change to arrow-expanded image. What am I doing wrong below? Also, image paths are all correct. I have checked many times. my accordian:-
<cc1:Accordion ID="Accordion1" runat="server" FadeTransitions="true" Visible="true" AutoSize="None"SelectedIndex="0" RequireOpenedPane="false" TransitionDuration="250"
HeaderCssClass="accordionHeader toggler" ContentCssClass="accordionContent expanded toggler">
<HeaderTemplate>
<b style="color: Black">
<%#Eval("Ques")%>
</b>
</HeaderTemplate>
<ContentTemplate>
<p> <%#DataBinder.Eval(Container.DataItem, "QuesAns")%></p>
</ContentTemplate>
</cc1:Accordion>
css
Am I giving the CSS Class names incorrectly or what?
@denis..its still not displaying the images..cant find the images in Firebug either
View 1 Replies
Dec 20, 2010
I have a custom ASP.NET application that I utilize for several clients that I host. Each client has a separate domain and the application is normally a child application under the root domain [URL]. The application files are the same (aspx, ascx, style sheets, images, etc.). The only thing different is the web.config file for each client. As development of the application continues to evolve, I have to update the application for each directory and this obviously becoming tedious. I am trying to come up with a method keep the application up to date. My first though is placing the application into a single physical path and creating multiple applications pointing to that path (the problem with this method is I can't have different web.config files). I am curious as to what solution others are using in this scenario...
View 2 Replies
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
Mar 25, 2011
Access to path is denied
This code is working properly in my system but in web server it is showing this error
Here is my code:
[code]....
View 1 Replies
Feb 17, 2010
I want to attach a file to my email attachment.
I can open the file from the server like the following
\internalcorpmyfile.doc
But when I try to attach the file it appends C:MyProjectNameinternalcorpmyfile.doc
and then it gives me an exception file not found.
View 5 Replies
Sep 29, 2010
I have a main_menu.ascx web control placed in my root and contains my website navigation menu with NavigationURL to the pages
I have my root files and I included the ascx file there Until here, I have no issue Now!
I have sub folders in my root and I want to include same ascx file because I don't want more than one main_menu file!
But the problem here is with the NavigationURL because it will be different when the aspx file is in sub folder
How can make sure my NavigationURL is referring to the correct path whether aspx in root or in sub folder?
View 1 Replies
May 7, 2015
I have 3 table in database
1-state
Id state
1 USA
2 UK
2-City
Id name state
1 Canada USA
2 London UK
3-Region
Id regionname cityid
1 01 Canada
2 02 London
and I have 3 DropDownList that refer below thread [URL] ...
I use cascadingdropdown for these 3 dropdownlist below are codes:
AND
[WebMethod]
public CascadingDropDownNameValue[] GetCountries(string knownCategoryValues)
{
string query = "SELECT state FROM stateTest";
List countries = GetData(query);
return countries.ToArray();
}
[Code] ....
1-DDLstate
2-DDLcity
3-DDLregion
at first I should select Item from DDLsate then DDlcity and at the end I should select Item from DDLregion
above code work correctly for ddlstate and ddlcity but it doesn't work for ddlregion...
I mean when I select Item from ddlcity in ddlregion shows:[Metod error500]
View 1 Replies
Jun 17, 2010
I have an shared hosting account with go daddy , but they have recently disabled my account. here is their mail :-
It has come to our attention that your hosting account is causing an overload of the shared CPU resources on this server. This,
in turn, affects the usage of the server by other customers. To protect the overall health of the server, we have suspended the application pool on your account; however, FTP access is still enabled.
Unfortunately, we are not able to troubleshoot custom scripting, and therefore, we are not able to provide specific solutions. You will need to troubleshoot your coding in order to determine what is causing your scripting to use a large amount of resources.
Once you have identified the cause of the issue, please reply directly to this email with the steps taken to resolve the issue and we will re-enable your application pool for monitoring. If you are not able to resolve this issue, you should then consider the need to upgrade to a Dedicated Server.
how to find which script is taking more cpu usage?
View 1 Replies
Apr 17, 2010
Tried to test .net4rc1 site on test host with win2003. As expected by default server returned error about " targetFramework="4.0" in web.config. But since I switched ASP.NET version to 4.0 and reboot that site just returning 404.
Whats wrong?)
View 1 Replies
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
Jan 17, 2010
I'm building sport game and i really have hard time to find the correct formula of how to automate the building of each league games structure.leagues can come in various number of teams (eg. 4, 6,8,10...)each season is built from two round and in each round every team playing one match against each other.to make it even harder each team should play every second match in its own Arena...so if league is built from 4 teams it should be something like
Code:
First half of the season:
Round 1
Team A Vs Team B
Team C Vs Team D
Round 2
Team A Vs Team C
Team D Vs Team B
Second Half of the Season
Round 1
Team C Vs Team A
Team B Vs Team D
Round 2
Team D Vs Team C
Team B Vs Team A
View 11 Replies
Sep 7, 2010
I want to run an external command from my c# program and this is how I am running it, but getting the error: "The system cannot find the path specified". check my code and debugging details copied below and suggest what I need to fix.
[code]
string MappingCommand = MappingCommandPath + "Mapping.exe /FileName " + HL7FileServerIn + FName;
Process p = Process.Start(MappingCommand); [code]....
View 2 Replies
Aug 26, 2010
I'm programatically looking ito a .aspx file and getting the file class name declared in its CodeBehind. For example, when analyzing myFile.aspx I read in its Page Directive and found its CodeBehind equals "myApplicationmyPage.aspx.vb". Then I use the code
below:
[Code]....
Now I want to read the BaseFile (class = myApplication.Forms.BasePage). However, to read in this file, I need I need to get its full path instead of its namespace.class hiearchy. In this case, the BasePage is wrapped in a different namespace declaration thus I cannot just change the '.' to '' in order to get the path.How can I get the path of BasePage so I can read it?
View 2 Replies
Jan 3, 2010
I want to find the root path of my asp.net website.
Im using Request.PhysicalApplicationPath right now which looks like this:
F:CasperMy DropboxDotNetPortfolioV2 (Which is good)
But if I go to a folder it will be:
F:CasperMy DropboxDotNetPortfolioV2FolderName (Not good)
I just want the root.
View 2 Replies
Aug 15, 2010
I finished my first asp mvc project and want to post it to a iis7/sql2008 server.I published the site just fine and migrated the sqlexpress database to sql2008 with no problems.However, when I run the program it still connects tp sqlexpress and opens a user instance.For the life of me I cannot get the connection string correct:
The current sring is:
<add name="AlertEntities" connectionString="metadata=res://*/Models.Alert.csdl|res://*/Models.Alert.ssdl|res://*/Models.Alert.msl;provider=System.Data.SqlClient;provider connection string="Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|Alert.mdf;Integrated
Security=True;User Instance=True;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />
</connectionStrings>
How do I change this to make it see the sql2008 database?
View 6 Replies
Mar 15, 2010
I'm trying to create an XmlReader class instance to read an xml file. However I pass it a url for the xml file but it isn't resolved. what do I have to do to get the proper url?
[Code]....
View 6 Replies
Jul 27, 2010
How to find connection string path in three tier architecture?
View 3 Replies
Aug 25, 2011
How do I find the windows path of an web site Application in .NET 3.5, and also the http path? I found a solution on the web but it didn't work, it seems to be slightly different for different versions of .NET.
View 1 Replies
Apr 27, 2016
I have an asp.net c# web forms application that uses a file upload control to load documents to a specific folder. The location to upload the file is ~Assignmentsassignment_docs.
The error code is:Could not find a part of the path 'E:webmeAssignmentsassignment_docsfilename.xlsx'.The following is the code behind:
protected void btn_fuc_assnmt_doc_Click(object sender, EventArgs e)
{
int i = 0;
string filename = fuc_assnmt_doc.FileName;
if (fuc_assnmt_doc.HasFile)
{
while (System.IO.File.Exists(Server.MapPath("~/Assignments/assignment_docs/") + filename))
[code]...
This works just as expected in dev on my localhost, but I get the error when I try it on my Winhost server.Is there an issue with the code or possibly with my IIS settings?
View 1 Replies
Mar 7, 2011
I am trying access a file from shared path and I face this error.
View 3 Replies