wkhtmltopdf Rotativa Blazor not workin in deploy IIS - iis

I'm using wkhtmltopdf to generate PDF.
When debugging with blazor it works fine, but when I publish it on IIS, when it goes to open the PDF page an error appears:
Error
Failed to load PDF document.
How can I solve?
Resolved
Solved, thanks everyone for your advice. I found the problem, it generated the file with a different source path.

Related

Error in publishing react website on IIS server [works in the local]

I couldn't run the (asp.net) React.js site in one turn. First of all, I publish the site from Visual Studio to the httpdocs folder on the server. In the image below, you can see the file structure under httpdocs.
Then I set up the node.js as seen in the second picture attached. Here, I specified service-worker.js file as application startup file. But I'm not sure about that. Do you think these settings are correct?
Right now the site returns the error ReferenceError: self is not defined, the source of the error is service-worker.js. All the code works fine on my local computer. I think the error is about the way I configured the node.js. Any help_

Getting error of Web Server not configure correnctly while run DotnetNuke Project in VS 2015

I have created a DotnetNuke Project. It is working fine if I import .zip file of it as a Module in DotnetNuke.
But if I run the project in any browser, it keep throws following error. I am trying to get rid since few days but still not get any solution. :(
Unable to start debugging on the web server. The web server is not
configured correctly. See help for common configuration erros. Running
the web page ourside of the debugger may provide further information.
I have configure Start http://dnndev.me/ and Project Url to http://dnndev.me/desktopmodules/MyTest2
Can anybody please suggest me.
After set Debugger = True in web.config file of dnndev.me
First thing to do is open the WEB.CONFIG file in the root of the DNN website and make sure that debug is set to true.

Error when open new DNNModule template project in visual studio

I want create a module with DNNModule template but when create module template get this error.
The Web Application Project DNNModule7 is configured to use IIS. The
Web server 'http://dnndev.me/desktopmodules/DNNModule7' could not be
found
I search in internet and found a solution I run as administrator visual studio but in this way the DNNModule template option hide .
Please advice
Follow below steps to kicked off this error message:
Open IIS.
Create new website dnndev.me on IIS Server.
Folder of this website must be the path of your actual DNN website from where you are creating DNN modules.
Try to create modules using Chritoc's DNN template.
For more information about this error, check this URL.
Please let me know if you have any questions.

Crystal reports are displaying blank after deploying it in IIS

Crystal report is working fine in local. But when i deployed it in IIS, its displaying a blank page. I have tried the following one. But this is not working for me.
"Downloading and installing runtime for Crystal Reports 13 for Visual Studio 2010. (You might want to skip this step if you already did this before and your application is working locally).
"Once the runtime is installed. Crystal Reports will install the required support files in the location of your local computer: C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13
Copy the entire Crystal Report Support folder C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13 to your Website's SITE_ROOT\aspnet_client\system_web\4_0_30319 folder.
4) If you do not have a \aspnet_client\system_web\4_0_30319 folders in your website's root. Please create them manually and then copy the crystalreportviewers13 into it."
Please give me a solution.
Thanks in advance.
In addition to that make sure your report files are being published when you publish your project with the option 'Only files needed to run this application'. This resource might help
I have faced the same problem and resolved it by following these these steps:
At first, you have to debug your application javascript, let us say on Chrome (I prefer chrome debugging tool). It will show you exactly what errors your crystal report is generating.
In my case, my Jquery.js library had to be included before bootstrap.js library like this:
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/npm.js"></script>
Secondly, the report was unable to connect to my ODBC driver to load data, that was because of ODBC permission problem. Again I had to fix this one.
These errors were all shown in the debugging console, so concentrate on it.

An unexpected error has occurred

I have created an asp.net web application on my local machine and I am deploying it to sharepoint. For that I am refereing the following
Deploying ASP.NET Web Applications in the Windows SharePoint Services 3.0 _layouts Folder
[http://msdn.microsoft.com/en-us/library/cc297200.aspx]
Its works perfect on my local machine but when I was trying to deploy the same on clients machine it was giving me the "An unexpected error has occurred." Error.
The scenario is, There is not visual studio install on my clients machine so what I was doing is I simply copying my solution folder in 12'hives LAYOUT folder along with the bin folder. Then when I was try to access it by hitting the URL
http://[machineName]/_layouts/[MyCustomFolder]/default.aspx it was giving me the error mention above.
Can anyone help me to solve this issue..?
Thanks in advance..
Sachin
Unexpected error might be anything, You need to see what is the root cause of the Error,
Open the Web.Config file of the IIS SharePoint WebSite
Search for the CallStack and change it to CallStack="true"
Search for the CustomError and change it to CustomError="Off"
Browse the page you will get to know the actual issue that causes the error
You yourself can rectify it , it might be as simple as missing dll
Try to watch the logfiles, set logging level to maximum to be sure you see what sharepoint says about your page.
To do that, if you have access to the server:
open SharePoint Central Admin
go to Operations tab, select "Diagnostic logging"
select category 'All' and change the trace log level to 'Verbose', save changes
reset IIS server (for the purpose of a clean experiment)
open \\server\c$\Program Files\Common Files\Microsoft Shared\web server extensions\12
logs and order by modification date
try to load your webpage in /_layouts folder, see the error again
open the newest logfile you can see and search for [MyCustomFolder] name
Then post the error message here.
An unexpected error can have multiple reasons.
Go to C:\inetpub\wwwroot\wss\VirtualDirectories\80
Open Web.Config
Change
<SafeMode MaxControls=”200″ CallStack=”false”
to
<SafeMode MaxControls=”200″ CallStack=”true”
Turn off custom errors
<customErrors mode=”Off”/>
I know that is an old question but for me the fix was to stop and start again the SharePoint Web Application from IIS.

Resources