Firefox Ask Save File Aspx Intermittent?

Dec 2, 2010

I have a project in asp.net 4.0 IIS Win 2003 Server.It's working perfectly, but after a while, certain pages are asking to save, instead of open.Ai closing the browser and open the system again, with this back to work, but it's the same problem after a while accessing.

View 4 Replies


Similar Messages:

How To Handle Save File Dialog Of Firefox In Selenium Using C#

Sep 29, 2010

i am using selenium for testing website which has functionality for downloading online video.i am using asp.net as language in selenium,each time i press download button save file dialog appears which cant be handle by selenium,how can i handle save file dialog(without using autoIt exe file).is there a way to call autoit script from selenium?or any other method to handle save file dialog???

View 2 Replies

Intermittent Bug - IE6 Showing File As Text In Browser Rather Than As File Download

Dec 30, 2010

In an ASP.NET WebForms 2.0 site we are encountering an intermittent bug in IE6 whereby a file download attempt results in the contents of the being shown directly in the browser as text, rather than the file save dialog being displayed. Our application allows the user to download both PDF and CSV files. The code we're using is:

HttpResponse response = HttpContext.Current.Response;
response.Clear();
response.AddHeader("Content-Disposition", "attachment;filename="theFilename.pdf"");
response.ContentType = "application/pdf";
response.BinaryWrite(MethodThatReturnsFileContents());
response.End();

This is called from the code-behind click event handler of a button server control. Where are we going wrong with this approach? Edit Following James' answer to this posting, the code I'm using now looks like this:

HttpResponse response = HttpContext.Current.Response;
response.ClearHeaders();
// Setting cache to NoCache was recommended, but doing so results in a security
// warning in IE6
//response.Cache.SetCacheability(HttpCacheability.NoCache);
response.AppendHeader("Content-Disposition", "attachment; filename="theFilename.pdf"");
response.ContentType = "application/pdf";
response.BinaryWrite(MethodThatReturnsFileContents());
response.Flush();
response.End();

However, I don't believe that any of the changes made will fix the issue.

View 1 Replies

Intermittent Couldn't Load File Or Assembly / PolicyExceptions

Jun 4, 2010

`Intermittently we'll get errors like these from our .NET 3.5 web applications:

Exception:

System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'itextsharp, Version=4.1.2.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418) (C:WindowsMicrosoft.NETFramework64v2.0.50727Configweb.config line 59) ---> System.IO.FileLoadException: Could not load file or assembly 'itextsharp, Version=4.1.2.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418) File name: 'itextsharp, Version=4.1.2.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' ---> System.Security.Policy.PolicyException: Execution permission cannot be acquired.
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission)
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission)
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
End of inner exception stack trace ---
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
at System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir)
at System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors)
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.Compilation.BuildManager.GetCompiledType(String virtualPath)
at System.Web.Script.Services.WebServiceData.GetWebServiceData(HttpContext context, String virtualPath, Boolean failIfNoData, Boolean pageMethods, Boolean inlineScript)
at System.Web.Script.Services.RestHandler.CreateHandler(HttpContext context)
at System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Inner exception:
System.IO.FileLoadException: Could not load file or assembly 'itextsharp, Version=4.1.2.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418) File name: 'itextsharp, Version=4.1.2.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' ---> System.Security.Policy.PolicyException: Execution permission cannot be acquired.

at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission)
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission)
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)

web.config line 59 being:
<add assembly="*"/>

When these occur, the sites will YSOD untill we recycle the application pool. The sites may run for days/weeks before this occurs, or it might happen twice within the hour. I have not been able to pinpoint this to any specific request/function in our system. In this case it points to itextsharp, but it randomly points to any assembly referenced by our application, both internal and external. Running caspol verifies that the DLL has full trust permissions:

C:WindowsMicrosoft.NETFramework64v2.0.50727>caspol -rsg D:...initextsharp.dll
Microsoft (R) .NET Framework CasPol 2.0.50727.3053
Copyright (c) Microsoft Corporation. All rights reserved.
Level = Enterprise
Code Groups:
1. All code: FullTrust
Level = Machine

Code Groups:
1. All code: Nothing
1.1. Zone - MyComputer: FullTrust

Level = User
Code Groups:
1. All code: FullTrust

Success
Our application is running on three servers, two of them are on Server 2008 Web x64 while the third is running Server 2008 R2 Web x64, all have .NET 3.5 installed, no .NET 4.0 installations. The problem only occurs on the first two that are running 2008 non R2. Running depends.exe on all three servers gives equal results for the nonR2 servers:

My DLL is shown as x86 (compiled as AnyCPU, running in x64 w3wp), all other modules show as x64. Missing IESHIMS.DLL and LINKINFO.DLL - both of these seem to be red herrings according to Google. The third server shows the same, except it does not miss LINKINFO.DLL All servers are running IIS7 (7.5 for the R2 one) under a custom domain account that has been granted the necessary permissions:

aspnet_regiis -ga [user]

Load user profile is set to false on all three servers. I've tried setting this to true on one of the faulting servers, according to: [URL] By running processmonitor I can see that it's now using the C:UsersTEMPAppDataLocalTemp directory for various temp files - the other ones are not using any such directory. So far I'll let it run in this way to see if this changes anything. I'm in doubt however given that the third server is not exhibiting the problems, yet still has "Load user profile" set to the same value, false. I've also tried running Fuslogvw on all three servers, logging binding failures to disk. All three servers report the same binding errors for VJSharpCodeProvider and CppCodeProvider, but these seem to be normal as well and can be solved by not defining the DEBUG and TRACE constants during build. We're running about 500 websites on each server (identical, load balanced), of which 50 are under moderate load, the problem has arisen both under heavy load as well as under minimal load however.

Right now I'm waiting for the errors to happen again so I can hopefully see a pattern and determine whether "Load user profile" alleviates the issue. I don't understand how the lack of "Load user profile" would cause an issue like this? And even further, how it would seemingly work on R2 but not on plain 2008?

View 1 Replies

C# - Serving An Exe To Firefox From An Aspx. Firefox Downloads It As "Content". Incorrect Filename And No Extension?

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

Controls :: Convert ASPX Page To PDF File And Save It On Servers Disk?

Feb 22, 2013

i convert my webpage into pdf file in vb.net

i want to save that pdf file in a specific folder in any drive (C: or D:)

how can i give a path in the below coding

Response.Buffer =True
Response.ContentType ="application/pdf"
Response.AddHeader("content-disposition", String.Format("attachment; filename={0}.pdf", Me.psno.Text))
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim sw AsNew StringWriter()

[Code].......

View 1 Replies

Controls :: How To Convert ASPX Page To PDF File And Save It On Server Disk

Oct 4, 2012

How I convert aspx page to pdf file with images.

View 1 Replies

Firefox Does Not Save The Form?

Feb 10, 2010

I've got a form that inserts data into a database using ASP.NET 2.0 . The problem is that when I hit the submit button on FireFox, the page submits and I'm redirected to the correct page. The problem is that the data isn't actually saved.When I try this on IE, it works fine. When I try this on FireFox using another browser it works fine. When I mirrored the application and data locally and use FireFox, it works fine.

It just doesn't work on production, and it seems like only my FireFox is having this problem. I've cleared out the cache in FireFox already, but it still doesn't work.Any ideas what is going on? I can't tell if this is client side or server side, and there is no way to debug right now.

View 2 Replies

Javascript - How To Post Html Data To .aspx File And Save Data

Mar 3, 2011

i want to crete some runtime control in asp.net hence i create one html file & for that i use JAVASCript for repeat that contols.i want to save the data enter into that control.but how it post to .aspx file & how the data save into database

View 1 Replies

How To Save A Docx File In Sql Server 2005 And Display It In Aspx Pages As Docx Document

Dec 15, 2010

i am using visual stdio 2005 and sql server 2005 for making a apllication

i want to save user's doc,docx file in database and show the uploaded user doc ,docx file in asp page

View 1 Replies

How Does Firefox Save Username/passwords

Jan 19, 2011

Well, I have a website with login feature (username and password fields). . I then changed the ID and NAME attributes of the textbox. (I made sure the client Id has changed). How come? Doesn't the browser relate usernames stored in history to the ID of textbox? I'm using asp.net!

View 2 Replies

Web Forms :: Save File In Folder On Disk Vs Save File In Database

Jan 4, 2014

What is the best way to insert and retrieve images like :

In the database in binary form retrieve it with imagehandler, or

In the database by saving the path of the folder of the images and retrieve it, or

by saving the images directly to the folder and retrieve it...

View 1 Replies

Web Forms :: Can Access GridView In Customer.aspx File From Another NewUserLogin.aspx File

Jun 23, 2010

How can I access my GridView in Customer.aspx file from another NewUserLogin.aspx file.

How should I chnge the access to my GridView to public so that I can chnge its values from another aspx file

View 5 Replies

CSS Linked To Aspx Page Is Not Loading In Firefox?

Feb 17, 2011

I am creating a aspx page using visual studio 2008. and linking it with a css via

but when i build it page opens with only html format and CSS look and feel is not applying

View 1 Replies

Web Forms :: Postback With RadWindow / On Clicking SAVE Or CLOSE It Throws A Dialog Box In IE And Firefox

Nov 18, 2010

OK, here's my scenario. I inherited a website and I'm dealing with a quirk. I have a page that has a repeater with auto postback controls in it. And also a hyperlink or a button to open a RadWindow to add a new item or edit an existing one, the repeater probably could have been a Gridview, but forget that for now.

If you use the button to add a new entry or the hyperlink to edit, it works fine and closes and refreshs the page. BUT, after you click ANY of the auto postback check boxes and THEN try and use the new button or edit hyperlinks the RadWindow works, but on clicking SAVE or CLOSE it throws a dialog box in IE and Firefox letting the user know that:

"To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier."

IE's message is similar. Clicking RESEND works fine and everything is ok, but its a bit distracting to the user. The RadWindow open a page that has THIS javascript in it:

function RefreshParentPage() {

View 2 Replies

AJAX :: AutoCompleteExtender Intermittent Errors

Mar 30, 2011

I'm using the toolkit AutoComplete Extender to populate a textbox which is used for searching for a string on our website and it works great most of the time.

About a dozen times a day I'll see a "Request forat is unrecognized for URL unexpectedly ending in '/WebServices/AutoComplete/js'" logged in the server event log.

Like I said it works great most of the time.

Here is the contents of the /WebServices/AutoComplete.asmx file...

[Code]....

And the /App_Code/AutoComplete.vb file...

[Code]....

And the ascx code that uses the AutoCompleteExtender...

[Code]....

You can see the website that uses this control at http://www.biovea.net

View 1 Replies

Web Forms :: Download And Save PDF File Without Save Cancel View Dialog Box?

Feb 16, 2013

can we save pdf document without save,view,cancel dialogue box in asp.net..

View 1 Replies

Web Forms :: How To Open A Popup With Save Button To Save Txt File

Feb 3, 2011

i have place some .txt files in my web application root directory. now i want to open a popup on button click with save button so that client can save this file on his/her PC. also can we auto set the path??? mean client jst press save button and file automatically stored his "D:\Foldersample.txt".

View 1 Replies

State Management :: Pass The Value To ASPX.CS File To ASPX File?

Mar 31, 2010

I want to pass the value to ASPX.CS file to ASPX file.

So how can i pass the value in the ASPX file.

View 8 Replies

File Name Gets Truncated When Downloading The File Using Mozilla Firefox?

Nov 23, 2010

My requirement is client has to download files which were uploaded by employees. But if the file name contains a space, Mozilla Firefox use only the name up to the first white space and remaining name is truncated. Is it issue with mozilla firefox? if so how can i get rid of this. Important thing is in IE its working well.

View 2 Replies

How To Save A XML String Into A File And Pop Up A SAVE AS... Dialog Box For The User

Dec 15, 2010

My Asp.Net calls a SQL sproc and returns a XML file as a string. This is what I need to do:

- save that string into memory (as a file);
- pop up a dialog box asking the user which path he would like to save the file;

Any samples out there...how do I achieve this task in Asp.Net C#?

View 4 Replies

Intermittent Membership.GetUser() Error - Unable To Cast Object Of Type System.Guid?

Jan 24, 2011

This error is occuring randomly, and I can't seem to pinpoint what is causing it. For the most part, the code works fine. I'm confused why it works sometimes, but then suddently craps out on me, lol.It happens in the code when I call upon the asp.net membership provider. It only seems to happen when i use Membership.GetUser() to grab the logged in user's information.

View 9 Replies

How To Save A File Using Save File Dialog Box

Sep 29, 2010

i am developing a web application i want to save a file using save file dialog box pls give me code insted of links

View 2 Replies

Visual Studio :: Accessing Controls Of .aspx File In .aspx.cs Withtout Any Declaration?

Feb 10, 2010

I am able to access the controls of ".aspx" file in ".aspx.cs" directly without any declaration in ".aspx.cs" or in designer.cs. How is this possible? This is happeing only if I open website as using File System.

Create a new ASP.NET web site application with Visual Studio 2008. So following three files will be created automatically

[code]...

How btnSave is being recognized by .cs file without defining it anywhere as an object of System.Web.UI.WebControls.Button?

View 3 Replies

File Save In .net And Than Save Information In DB

Sep 8, 2010

I am creating the user ,using asp.net + C#.there is the form (UI) who collects the information and send data to Business layer. now, while collecting the information from UI I want to also save the image of user, at file system in application domain.There is function in the business layer as SaveImage, which returns the path where it is saving. Scenario:1) Save image first and then save other information in DB.

View 4 Replies







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