Configuration :: COM Exception While Saving The Excelwork Book?
Jun 2, 2010
I am getting below error while saving the excel workbook through C#.net code. same is working fine with local desktop.it is giving problem with Windows 2003 server.
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 8000401a.
I was so proud because I researched saving files and figured out how to extract the file name from what might be the full path. However, this doesn't work as I had expected. I still get the exception!
I am using win 2008 Server with visual studio 2008 ,when i try to save my data through store procedure from my online application it is saving prefect arabic data in database but when i try to save data with inline query through my application is showing like question marks
I m facing one problem which is related to Bitmap Image Actually My image is saved properly without iis server but when i run application on iis server then its give Exception "A generic error occurred in GDI+." I m using this code-
Byte[] bytes = (Byte[])ds.Tables[0].Rows[r][1]; MemoryStream memStream = new MemoryStream(); memStream.Write(bytes, 0, bytes.Length); System.Drawing.Bitmap origBMP = new System.Drawing.Bitmap(memStream); System.Drawing.Bitmap newBMP = new System.Drawing.Bitmap(origBMP, 100, 150); System.Drawing.Graphics objGra = System.Drawing.Graphics.FromImage(newBMP); objGra.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; objGra.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic; origBMP.Dispose(); newBMP.Save(Server.MapPath("ImageUpload\" + r + ".Jpeg"), System.Drawing.Imaging.ImageFormat.Jpeg); //exception throw "A generic error occurred in GDI+." newBMP.Dispose(); objGra.Dispose();
But when I upload image with Fileupload and click on btnupload button below error happen..
Server Error in '/' Application.
Access to the path 'C:Inetpubvhostsbehtop.comhttpdocsimageHouseservices8.jpg' is denied. 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.UnauthorizedAccessException: Access to the path
a C# file in my App_Code folder calls a C++ DLL that is in my BIN folder. I am getting following error:
Security Exception
Description:
The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission contact your system administrator or change the application's trust level in the configuration file.
I hosted my application on GoDaddy shared server. They are not allowing me to give full trust to the application by changing setting in my application's web.config file.
I am develpoing asp.net web site (3.5) and lately I moved to windows 7. Since then I can't see properly asp.net exceptions and instead of that I'm getting full page with random characters.
I have introduced site wide exception handling on my site to catch unexpected errors. The event handler sends a message to me when such an exception occurs. But the problem is that any clicks on my site will cause an exception to be thrown with the message: "This is an invalid webresource request."
I googled for an answer and only found a couple of references to 1. setting a fixed machinekey (which for some reason didn't work for me, I got an error saying that the virtual directory wasn't set in IIS, and as far as I know I'm not using IIS at all, I'm using the local development environment and then deploy to a web host) or 2. using a robots.txt file to stop robots from accessing the axd files, but that doesn't help either because it's not robots that cause the problem, anyone clicking around on the page will cause this error. how to solve this problem properly? For now I have handled it by catching and ignoring this particular error by the text in the error message, which works but I would rather fix it so that this error doesn't occur at all.
I am having this strange case, at first time when the page loades, everything goes fine. But as soon as I click on any link which makes any ajax request, after that, I get this error while trying to read the configuration."System.Configuration.ConfigurationManager.ConnectionStrings' threw an exception of type 'System.Web.HttpException"I am using asp.net mvc 1.0
I have a weird situation.I have unchecked friendly IE errorpages. I have no customerrors in my web.configbut I do get a dns 'cannot display this page' errorpage in IE, firefox works fine.There is no exception in my global.asax and no logging. How can I see more information about this error?
For a public website what is the best approch to handle the exception and showing to the system administrator and not to the user and what is the best practise followed in most of the ASP.NET sites.
We have an asp.net 2.0 application in which we get the exception of type 'System.OutOfMemoryException' whenever value is retrieved or stored in viewstate. It does not happen when we test it in local PC but when it is deployed on application server, the exception is thrown.
I am getting Error Msg Given Below..After Uploading My WebApplication..whenever i try to access my webapplication? what is the exactly reason of this Error. Some time it solved automatically when i try some time later.
Server Error in '/' Application.
Exception of type 'System.OutOfMemoryException' was thrown. 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.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
I am trying to access unmanaged code(C++) dll in my asp.net web application project. I created a class to access library functions to be able to use in my application. The DLL is located in Bin Folder of my project. I was able to work with it fine on my localhost server but when I try it on the server where the application is hosted, it gives me this error:
Security Exception:
Description:
The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission contact your system administrator or change the application's trust level in the configuration file.
an unhandled win32 exception occurred in w3wp.exe error occures when we run .Net application from IIS. My configuration is Windows server 2008, IIS7, .Net 2.0, and Oracle 10g.
I have been struggling with an issue that sounds like it should be quite common but I can't seem to get the thing working no matter how much I research it!
I am using an AJAX file uploader to upload files (up to 100MB) to the webserver and when the user clicks a button to complete navigate to the next page, I then attempt to move the files off the webserver onto a file server on Page_Load. Both servers are WinServer 2003. There just isn't enough space on the webserver to hold all the uploads once we go live with this solution so I have to get the files off the webserver.
Uploading the file and creating a new subdirectory on the webserver (to hold the file) works no problem at all. When I do the file copy to our file server locally on VS2008, again, no problem. However, when I delopy to the live server and try the same thing, the upload happens ok, but the file copy does not. I get an UnauthorizedAccessException. I don't have access to the webserver myself (but can request it if absolutely necessary) and our file server sits within the same domain (Active Directory).
I do not want to use Impersonation at a high level (web.config), so I tried it programmatically for the purposes of the copy file but it did not work. I used one of our general clerical accounts to pass in the credentials and gave full permission to this account on the file server to create/modify files.
Actually I inherited this project, my job is enhance and debug this project. Just now my manager send me a log file ask me to debug, have no choose, I must settle this problem. according to the log file, I only know this bug occur in my login function,but I test in my local solution it can work well, no problem, it only appearing in live server. so I suspense it was server error, my manager ask me prove him, so any can explain to me what the log file mean? Event code: 3005