My system shuts down and then my application starts giving me the below error
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:
'Project_management.ProjectDetails_Datewise' is not allowed here
because it does not extend class 'System.Web.UI.Page'.
I have deleted folders from temporary file.
Create a new file same way you have tried the last time. Check the difference between both file's aspx page (not the codebehind).
Copy the namespace from newly create file and it will work.
Related
I currently started using pdfCrowd for my website so users can download html as pdfs. I tested locally and it worked fine however when deploying it onto a actual website if failed with the following message:
System.Exception: Error downloading file. Please try again. --->
System.Exception: Error during rendering of Document to Pdf --->
pdfcrowd.Error: Exception of type 'pdfcrowd.Error' was thrown.
at pdfcrowd.HtmlToPdfClient.convertString(String text)...
My code in .NET looks like the following:
pdfcrowd.HtmlToPdfClient api = new pdfcrowd.HtmlToPdfClient("xxxusernamexxx", "xxxapi-keyxxx");
api.setPageMargins("3mm", "3mm","3mm", "3mm");
byte[] fileData = api.convertString(htmlString);
Not sure if I'm using the API correctly and whether I need to wait to the conversion for the html (which I insert as a string). Any incite would be helpful.
I am trying to convert an Excel document into PDF in a ASP.Net Web application using Pdftron (Pdfnet) library.
Following is my code for the above purpose.
pdf.PDF.PDFDoc newSalaryFitmentPdf = new pdf.PDF.PDFDoc();
pdftron.PDF.Convert.ToPdf(newSalaryFitmentPdf, newSalaryFitmentExcel.FullName);
salaryFitment = newSalaryFitmentPdf.Save(pdf.SDF.SDFDoc.SaveOptions.e_linearized);
But I am getting the following exception when the program is trying to execute the second line.
Exception:
Message: An error occurred while converting the file.
Detailed error:
Error creating a new Excel application instance.
Code: PDFTRON_UNKNOWN (-2147024891)
File: "Excel.cpp":51
Log:
Start check system account.
Session ID is: 0.
Failed to create Desktop folder in SystemProfile. boost::filesystem::create_directory: Access is denied: "C:\Windows\system32\config\systemprofile\Desktop"
Failed to create Desktop folder in SystemProfile. boost::filesystem::create_directory: Access is denied: "C:\Windows\SysWOW64\config\systemprofile\Desktop"
Done checking system account.
Creating an Excel application instance.
Conditional expression: false
Version : 6.7.1.61823N
Filename : Convert.cpp
Function : trn::PDF::Convert::ToPdf
Linenumber : 1692
Any help would be highly appreciated.
Failed to create Desktop folder in SystemProfile. boost::filesystem::create_directory: Access is denied: "C:\Windows\system32\config\systemprofile\Desktop"
Failed to create Desktop folder in SystemProfile. boost::filesystem::create_directory: Access is denied: "C:\Windows\SysWOW64\config\systemprofile\Desktop"
You must set your application to have read/write access to these directories. Please see this article for further information.
I have searched everywhere for this answer. I am setting up a Data flow task to pull Data from a table using a customer sql script, it then saves it as a flat file with dynamic naming called NMC Services_(Date Range). the issue is i need to take this one file and upload it onto an FTP Site but i continue to get one of 5 errors:
Error at Package: The connection "FilePath\NMC Service Requests_0606-0612.csv" is not found. This error is thrown by Connections collection when the specific connection element is not found.
Error at FTP Task [FTP Task]: For the FTP operation "Send", the FILE connection manager "File Path\NMC Service Requests_0606-0612.csv" can not be found.
Error at FTP Task: There were errors during task validation.
(Microsoft.DataTransformationServices.VsIntegration)
using a variable or expression doesn't change it. The file writes to the file path but does not go out and grab it.
This isn't copied it is built from scratch.
When using a variable i get this
Error at FTP Task: Failed to lock variable "File Path\NMC Service Requests_0606-0612.csv" for read access with error 0xC0010001 "The variable cannot be found. This occurs when an attempt is made to retrieve a variable from the Variables collection on a container during execution of the package, and the variable is not there. The variable name may have changed or the variable is not being created.".
Error at FTP Task: The Validate method on the task failed, and returned error code 0x80131500 (Failed to lock variable "File Path\NMC Service Requests_0606-0612.csv" for read access with error 0xC0010001 "The variable cannot be found. This occurs when an attempt is made to retrieve a variable from the Variables collection on a container during execution of the package, and the variable is not there. The variable name may have changed or the variable is not being created.".
). The Validate method must succeed and indicate the result using an "out" parameter.
Error at FTP Task: There were errors during task validation.
(Microsoft.DataTransformationServices.VsIntegration)
I have rebuilt the whole Package from scratch over and over again and still have the issue.
I was able to figure out the issue. I am using an expression to determine the name of the file that it is needing to send. When I set up the variable I put the file path to the file as the value, and then setting evaluate as expression true. I erased the value and placed the expression i use to dynamically name the file in the variable properties under expression and it works like a charm. Thanks for the help!
I've a question. In a web site created in asp.net with vb.net in code behind, how I can show message of exceptions from methods in app_codevb folder.
Example a method return a table with a list of customers, but occurs a error of timeout or error in sintax.
How I can show the user in the form the error occurred in app_codevb folder?
If you don't do anything then it will automatically show any unhandled errors on the page.
Somewhat in this format
Server Error in '/WebApp' Application.
Error Message...
Description: ...
Exception Details: ...
Source Error: ...
Source File: ...
Stack Trace: ...
Version Information: ...
However, it is not a good thing. It looks ugly and breaks your site. It also shows your immaturity in programming besides opening your site for attacks. The better way is to use Try... Catch blocks where there is a possibility of errors occurring in your application and handle the error appropriately.
I have an EntityFramework project running off MySql that runs great locally as well as on a dedicated server, however I'm trying to move this project to HostGator and I'm receiving the following error:
Schema specified is not valid. Errors:
App_Code.WireWeld.ssdl(2,88) : error 0002: Request failed.
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.Data.MetadataException: Schema specified is not valid. Errors:
App_Code.WireWeld.ssdl(2,88) : error 0002: Request failed.
I know the database is correct as I can connect via Navicat and see its contents. I'm pretty sure the connection string is correct, I have the proper username and password.
I'm really stuck on this one and would appreciate any help possible.
If you are using more than one model in your project I advice you to have a look into that topic as it describes possible solutions to the problem.
If you are not using multiple models than this looks like a file permission issue to me.
Perhaps in the hosted environment, the account underwhich your application is running doesn't have access to where the metadata files are located?
You should make sure you have permission (read/write are required). If this is not an option for you than the only go would be to embed the metadata in the assembly directly and use a res:// style connection string.
If you're using SQL server and have 2 projects - one is a class library and the 2nd one uses that class library in main project, then place both dll from class library project to main project refrence.
1-EntityFramework.dll
2-EntityFramework.SqlServer.dll