Unable to get authentication ticket - asp.net

In my asp.net application, I am using Aspose.PDF for merging 2 pdf documents. I get the PDF documents from a third party tool and then merge using Aspose.
Problem is when I am running the solution, it works fine, but when I publish the solution and then run it from IIS, it gives me the error: "Error getting authentication ticket."
Please help. If any other details are reqd, pls do let me know.
Thanks.

Are you running the application is full trust mode? The Aspose.Pdf for .NET only works in full trust environment. Please see the details here: http://www.aspose.com/documentation/.net-components/aspose.pdf-for-.net/declaration.html. Please make sure that you deploy the application in full trust environment.
Disclosure: I work as a developer evangelist at Aspose.

Related

Unable to build ASP.Net apps

I am trying to build and compile an ASP.Net solution. The solution is new. Here is how I create it:
For this demonstration I avoid creating anything post-creating the project,
And here are the errors that I am getting:
All errors above, lead to the following place:
Any direction would be greatly appreciated!
Thanks!
Ok, assuming you looking to create a asp.net webforms app?
Your screen caps look ok, and it not clear why your resulting application has errors, or build issues.
I would try to create another project, different name. See if that works.
Better, try tapping windows key, type in 2022, and then right click and try run as administrator, and see if that helps. (the default source folder might for some reason require elevated rights to work).
And if above does not work?
then I would try a repair, or even re-install of VS. Perhaps the templates are messed up.
Following your exact steps, my vs2022 created asp.net web applcation without issues.
best guess:
Your VS install is messed up, re-install, or repair.
tools->get tools and features.
Then: close the modifying window, and you should see this:
Try a repair.
Thanks Albert and everyone attempting to help!
What I did that solved the issue is to click the errors, and I was redirected to the following document:
Here, I deleted every tag that was highlighted in any of the errors, more specifically, things related to Video Builder Cloud Services (VBCS), and off I go :)

Authentication problems

I am trying to automate the process to create a model with azure machine learning services and I get some problems with the authentication. When I run my code on my remote machine everything is fine but when I run the code on remote I get this authentication sentence:
Make sure your code doesn't require 'az login' to have happened before using azureml-SDK, except the case when you are specifying AzureCliAuthentication in azureml-SDK.
Performing interactive authentication. Please follow the instructions on the terminal.
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code CZMKCYS8B to authenticate"
Azure ask me for authentication and I have to make it manually.
I would like to know if there is some way to do it automatically.
I was looking for it and I was investigated how to do it using tokens but I couldn't find any solution
Someone can give me an advice?
Thanks in advance.

First ASP.NET webpage launches without debugging, doesn't launch with debugging

Did anyone encounter an error with ASP.NET debugging? I've made a really simple, empty MVC page, I've tried returning /Home/Index.cshtml and a string, and each time I get a windows jingle and the browser can't find the server. It doesn't happen when I run it without debugging though, then the website runs just fine.
I've also tried the default MVC template, with Bootstrap etc, and it's the same - runs without debugging, doesn't run with debugging.
It's probably important: I'm running Visual Studio 2017 on up-to-date Windows 10. I've reinstalled the system several weeks ago, really wouldn't want to do that again :/
Generally we could debug an app with the normal user, but sometimes we need to use the admin, for example, as far as I know, if we want to use the attach to process tool for remote debugging, we often run the VS as the admin or others.
This document share us the tasks we need administrator permissions to completeļ¼š
https://msdn.microsoft.com/en-us/library/jj662724.aspx?f=255&MSPPError=-2147217396
If possible, you could refer to it especially "Debugging" area in above link.
Hope it could help you:)

JTwain API not responding from applet

We had been migrating our projects to Linux from windows.Among which is a Java Applet being invoked from a JSP to facilitate scanning via JTwain API.This has stopped working.On checking the Applet console , code execution seems to be smooth till the following
com.asprise.util.jtwain.Source source.acquireImage()
There is no exception being thrown as well. Also , jar signing has also been done (Though there is another application that works superbly even without this).
Any advice would be highly appreciated.
This is my first question on the forum , kindly excuse if there had been any non-compliance with standards.
To troubleshoot the issue, you may test with the JTwain web demo on your Windows machine to see how it works.

Configuring 'Cassini' (ASP.NET Development server) for CAC cards for testing - How?

I'm developing a new website (ASP.Net, VB codebehind pages, .Net 3.5) to replace a "Classic ASP" site.
Some of the pages are 'public' and the rest require authentication - in this case it's done by reading DoD-issued CAC cards through the keyboard.
Now, for 'production', they configure IIS so that it does the authentication challenge (reading the card and requesting a PIN) when it hits a certain directory (/secure in this case) so that all pages in that tree are secured.
I'm coming ot the point where I need to see some of the information fomr the card - but when I "F5" the website I'm developing, all the Request.Clientcertificate stuff is empty - there's no 'challenge' happening with the Cassini ASP.Net development server.
I see references to "configure IIS to put SSL on the target directory" - but I'm not running IIS on this development PC (nor is the other developer who's going to run into this shortly). The network support people will be doing this when the site is eventually copied into production but I need to test certain security features now.
How can I configure the server that came with VS2008 to read the CAC card and 'load up' the server/session variables that I need to query? Alternatively, is there anything I can put into the .aspx or .aspx.vb pages themselves that can simulate or trigger the security challenge?
Thanks in advance.
Short answer. Cassini doesn't support that kind of security.
I would hope you found a solution to this by now... but just in case, I will tell you that I do similar development and I ran into the same problem. The only "solution" I found was to simply publish the website/webpage to a server with IIS configured to require client certificates, etc...
Of course, this does prevent you from using the "debug" feature in Visual Studio, but there is always the method of injecting debug statements into code [e.g.: response.write() followed by response.end() if necessary]... I also built a page I used for enumerating all the strings available from request.clientcertificate(), and even later expanded it to run a provided regex for searching the entire certificate...
Hope those ideas prove useful!

Resources