.net - Directory.exist Method In Firefox Browser
May 19, 2010
I have a asp.net page which is checking a UNC path on a listbox item change event using Directory.exist method.
This works fine in Internet explorer.
But when i use firefox and debugging this method returns false even though the directory exists.
What could be the reason for this strange problem.
this is the code
Directory.Exists(@\SYSMHARSYSxxxxxxFilesRegionError)
when i browse from IE and put a breakpoint here it returns true.But in FF the same code returns false.Its happening only for a UNC.It returns true for a local path(eg Directory.Exists(@C: est).
Authenticatiion:
authentication mode="Windows"
identity impersonate="true"
View 2 Replies
Similar Messages:
Dec 21, 2010
i've log-in page in my site but log-in control doesn't work on any browser other than IE.
View 1 Replies
May 25, 2010
In web application I'm using devexpress toolkit, and have the right (correct) result in IE only (using also some java-script), on clicking event for example is working in chrome and safari, but in Firefox and Opera not
The grid view are not showed properly in division in any other browser, except IE!
View 2 Replies
Jun 2, 2010
I am finishing up my asp.net web application targeting .net 4.0. I am using VS2010.
I have deployed my application to a host server and now I am testing with multiple different browsers.
The first issue I ran into comes down to the following code:
[Code]....
If I use IE, login and click something that causes the above code to execute then currentUser is NOT null. However doing the exact same steps in FireFox currentUser is null, even though I know I am logged in as my name and other indications on the webpage confirms I am.
------------------------
Update
----------------------
Since originally posting this thread I have done more testing.
I placed a test button on a random page and the button click will update a label on that page indicating if the currentUser is null or not. This button works both in IE and in FireFox. Also both running locally and running on the host server.
----------------------
So now I am looking at what is different about the one place it appears not to work so let me try to make this clear.
I use a component called Uploadify to upload images into a database. That component calls a page/request called ImageUploader.ashx which inherits from IHttpHandler. Here is all the pertainent code from that file.
[Code]....
The problem is when calling from FireFox, imgProvider.Status = null. This is a problem because the ImageProvider will try to insert a record into my database and the column for Status cannot be null so that causes it to crash. I made the change to detect if Status = null and return the user id if so as an error message to help me debug. To understand how Status is set you only have to look at a little code in the ImageProvider class:
[Code]....
You will notice when the ImageProvider is created it calls ClearFields(). Inside ClearFields() is where it gets the currentUser and if not null it sets the UserID property, which case the setter for UserID must set Status to either Approved or Pending. Whats happening is ONLY in FireFox, and after more testing, ONLY on the host server does currentUser = null even when I am logged in. but in other areas of code I can get currentUser and it works, also this works fine with IE, it also works fine with FireFox running locally. So I have icolated it down to this specific piece of code, when using FireFox, when running on Host server.
View 9 Replies
Feb 24, 2011
Can we call a Method that exist on a aspx page through Web Services.
It is like Reflection that method exists in dll form , but is it possible to call method from Aspx page.
View 2 Replies
Jan 20, 2010
when i click the link button in Masterpage the window has to close. This function is working properly in IE but in fireFox or chrome or Safari Other than IE in all browsers postback is happening.
my code :
[code]....
View 1 Replies
Apr 16, 2010
I have a dropdown list placed in Update Panel the issue is that when i am trying to make selection from the dropdownlist i am not able to select the items under it(i.e. after clicking on the dropdownlist the items get displayed but when i move the mouse over it the dropdownlist gets closed).
This issue is observed in Fire Fox only (works fine in IE and Google Chrome).
View 2 Replies
Oct 27, 2010
I am using forms authentication in asp.net application. This is working fine in internet explorer. Opening application in firefox is also fine but when i login in second instance of firefox, application in first instance logs out. Following is my code for creating ticket and cookie.
FormsAuthenticationTicket objTicket = new
FormsAuthenticationTicket(1, sUserName,
DateTime.Now,
DateTime.Now.AddMinutes(60),
false,
"");
HttpCookie objCookie = new
HttpCookie(FormsAuthentication.FormsCookieName);
objCookie.Value = FormsAuthentication.Encrypt(objTicket);
objCookie.Expires = DateTime.Now.AddHours(1);
HttpContext.Current.Response.Cookies.Add(objCookie);
View 1 Replies
Apr 4, 2011
The function window.opener.location.reload(); is working fine with IE but not refreshing parent page in mozilla firefox browser. how to refresh parent page in cross browser/browser independent.
i have got this function:
[code]....
View 1 Replies
Mar 29, 2011
I have a shared folder with directories on a remote server that I am trying to access with the method System.IO.Directory.GetDirectories(). This folder is based off of the credentials gotten from windows authentication. My problem is that everything works fun when I debug the Web Application in the built in IIS in VS, but when I set it up in IIS V5.1, it tells me that I have an invalid username and password. I am using Visual Studio 2005 on a Microsoft XP SP2 machine.
View 5 Replies
Sep 29, 2010
In asp.net page, How can i call the javascript methods for form processing-submitting if the user browser supports javascript and use code behind events if the browser does not support javascript.I have the javascript code to send the form data to an ajax server page using jquery. Don't know how to invoke the needed one based on the browsers javascript availability
View 1 Replies
Jun 8, 2010
I am facing an issue in my application when a user directly clicked on browser close [X] button. Browser can be IE, Chrome, Mozilla, Firefox and many more.
What I want to do:
1. as soon as user hits [X] button of browser, need to set their status as logged off in database for which we have a method in Login.aspx file which is within the master page.
2. We do not have any Logoff feature in the application
View 3 Replies
Sep 26, 2010
I'm try to get my site to detect what browser someone is using to ensure they're using one that is compliant with our site. Everything works, except Firefox seems to post the wrong version in the Request.Browser variables.I'm on Firefox 3.6.10, but Request.Browser shows Mozilla 1.9.2.10. It's correct in the HTTP_USER_AGENT string:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 YFF35 Firefox/3.6.10 ( .NET CLR 3.5.30729)
Is there a way to detect it better without having to parse through the HTTP_USER_AGENT string?
View 3 Replies
Mar 4, 2014
I want to update database value on Browser close.
View 1 Replies
Dec 28, 2010
[Code]....
i am trying to do this is Global.asax file. but this method is not executed when the browser closes. or am i doing something wrong?
View 6 Replies
Jun 13, 2010
I'm trying to create a list of image buttons dynamically, but I'm having trouble displaying the images. I'm using the Directory.GetFullPath method, but I don't think its the right thing to do.I've viewed the page, and the image path is showing as
'd:Hosting6238630htmlPropertiesCedarsext%20front.jpg'. I know this isn'r right and that it needs to be something like www.annereevelettings.co.uk/property/images..., but the question is, how do I do it?The page can be seen at the following address
www.annereevelettings.co.uk/property.aspx.
Here is the code that I am using:
[Code]....
View 8 Replies
Oct 26, 2012
How to call the server side method on browser window close button...
View 1 Replies
Nov 16, 2010
has any one done any automation related to Firefox - Firebug
I am trying to automate some task using C#
I found these two open source projects related to automating firefox
[URL]
how to interact with firefox addons
View 2 Replies
Feb 7, 2011
I am using Logi Reports for creating reports in my application. I am passing cookies from web application to these logi reports. Cookies were workign correctly before, but after the release of this version. Cookies are not working in these logi reports.
View 1 Replies
Dec 20, 2010
I'm developing the most simple ASP.NET application which is giving me an annoying error.
I'm having a textbox- and a button-control, where I would like the text in the textbox to be saved to a database table when clicking the button. The text will be propagated to the database by means of a WCF service.
Since I'm a rather mediocre programmer, I tend to get errors now and then which results in lots of error messages displayed in the browser. That I can understand. I fix them and build my solution and press F5 to get going. But after fixing the errors, everytime the browser displays a directory listening like the one below instead of my astonishing UI.
Directory Listing -- /
Monday, December 20, 2010 10:10 PM <dir> bin
Saturday, December 18, 2010 10:10 PM 1,303 MainForm.aspx
Monday, December 20, 2010 10:28 PM 467 MainForm.aspx.cs
Saturday, December 18, 2010 10:09 PM 2,118 MainForm.aspx.designer.cs
Friday, December 17, 2010 10:25 PM <dir> obj
Friday, December 17, 2010 10:25 PM <dir> Properties
Sunday, December 19, 2010 10:09 PM <dir> Service References
Monday, December 20, 2010 02:01 PM 5,552 SimpleChat.csproj
Monday, December 20, 2010 02:01 PM 1,170 SimpleChat.csproj.user
Sunday, December 19, 2010 10:09 PM 1,810 Web.config
Friday, December 17, 2010 10:25 PM 1,285 Web.Debug.config
Friday, December 17, 2010 10:25 PM 1,346 Web.Release.config
Version Information: ASP.NET
Development Server 10.0.0.0
I know how to work around but its tedious: in MainForm.aspx.cs I comment the rows concerning the call to the service, then I rebuild the solution, uncomment the call to the service and rebuild the solution again. Then everything works as expected till I ran into the next bug.
View 2 Replies
May 5, 2010
I am using System.directory services namespace in framework 2 to query active directory. I have used fixed user account impersonisation in the web.config file, find the code:
<identity impersonate="true" userName="enterprise ang09" password="Telcome123"/>
<authentication mode="Windows"/>
I have disabled anonymous access in IIS. Also i have given Read & write access to the account tang09 for the website virtual directory and Microsoft.NET folder located in windows folder. But still i get prompted for the domain username and password to access the website.
View 4 Replies
Mar 28, 2011
I'm trying to server an exe to Firefox from an aspx page. The aspx page handles the headers and the page is launched by our Flex GUI. Flex correctly launches the link for all browsers (including Firefox) so I'm certain that's not the issue.
The problem I'm having is when I try to download the file from within Firefox, FF downloads the file fine but it names it "Content". It has no extension and the file name is incorrect. All the other browsers download it with the file name I specified in the aspx page and they all have the .exe extension. I should note that if I rename the "Content" file to "Content.exe" it runs correctly.Below is the code I'm using in my aspx page -
protected void Page_Load(object sender, EventArgs e) {
string fileName = Request.QueryString["file"];
System.IO.FileInfo fileInfo = new System.IO.FileInfo(Server.MapPath(fileName));
[code]...
View 2 Replies
Sep 29, 2010
I just got a new desktop computer with Windows 7 Pro as the operating system. I installed Visual Studio 2008 on to this new computer and tried to open a previously existing ASP.NET 3.5 solution that displayed perfectly fine on my previous computer (this previous computer used the Windows XP operating system, IIS6, and IE7 browser). However, in Windows7/IE8, I'm receiving the following error:
Server Error in '/' Application.
Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The file '/MasterPages/MainMaster.master' does not exist.
Source Error: Line 1: <%@ Page Language="C#"
AutoEventWireup="true"
CodeFile="default.aspx.cs"[code]....
when I tell you that the file '/MasterPages/MainMaster.master' file does, in fact, exist. In addition, this file's location is properly referenced in the code (as indicated in Line 1 above), and as I said, was displayed properly by the browser in my previous computer. It might also be helpful to note that I've tried to navigate to other pages in this site, and this browser displays the same message for any and all master pages located in my MasterPages folder. In summary, for some reason the browser cannot see any pages in the MasterPages folder. Can anybody tell me why I'm getting this error message when the folder and file is exactly where default.aspx says it is?
View 2 Replies
Apr 13, 2010
I am creating an Asp.net web site which will support dynamic data. When I am creating a dynamic web site from Scratch (from template in VS) all is working fine. But when I am trying to add dynamic entity (.edmx) file and running the application I am getting following error
"The method 'Skip' is only supported for sorted input in LINQ to Entities. The method 'OrderBy' must be called before the method 'Skip'. "
View 2 Replies
Nov 10, 2010
I have a WCF service in a virtual directory that is called in the code behind of a page that is in the parent directory, when i debug the code i can see the wcf service is being called, however when the service calls Membership.GetUser() it alway returns null. The user has already logged in to the asp.net site. When i call the service via jquery it does pick up the correct user, but i need to be able to call it via the code behind as well. I am developing in .Net 3.5 how i can make the Wcf pick up the logged in user?
View 3 Replies