Setup Saxon to run in windows server 2008 - asp-classic

The problem I have is that the Windows operating system does not support XSLT 2 which we have wrote our application with just to find that it's not supported.
I was able to successfully compile XSL and XML file to output HTML file locally and it works but I need this to happen on the server.
I have a classic asp file that gets data from API and then we have XSL file that dictates the style but need it to run straight when the page in the browser and show new results with no need to recompile the file manually.
I have windows 2008 server with IIS 6 and can't find sample code anywhere.

Related

LESS not compiling on Windows 2012 server?

This is my first time to use LESS in a project and it's not working when I publish to a server. Everything works fine when I run it locally in Visual Studio.
I'm running it in an MVC 5 application and after I was done I used Visual Studio to publish the files to a local folder. Then I copied the files over to the server. Initially the VS publish converted my Site.less file to Site.css and I figured that was the problem. So I researched and found that I could set the properties of the Site.less file's BuildAction=Content. Then the publishing locally created the Site.less instead of Site.css. However, when I copy that to the server the CSS isn't applied and when I browse to site.com/content/site.less I'm getting an error as though it's not compiling.
Looking around some more I found where someone said I had to set the MIME type in IIS but they didn't mention what the MIME time should be.
What do I need to do on the server get it my CSS to apply when using LESS?
Your server shouldn't compile LESS->CSS when your app is published. Your app should contain your css/min.css when published, not just your LESS file(s).

Beginner : Where to copy the asp.net dll file from visual studio?

I can easily write an asp.net code. I hit the visual studio RUN button and I see my website in Chrome or any other browser. But how do I do this without visual studio? I don't get an exe file, only the dll. I think, this must be copied somewhere.
Idea is to run (any) programm, which causes a special page to show my website (with OPC-data) on a local computer. Like an exe file.
To give more detail: I want to run some Web site code in a CEF (chromium embedded framefork) so that it looks like a normal executable. It will run only on a local computer (in fact a machine). This is static. But some information have to be provided dynamically by an OPC client. This will be read with VB and displayed via ASP.NET. The first application reads the data via AJAX. So I think what I need is some kind of local server (like wamp) which has to be started in the background. I found a batch file to start WebDev.WebServer40.exe. But this could not be the right way. A batch file sounds like stone age.
-->c:\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0
You have IIS Manger installed, yes? If not, you can go to Control Panel \ Programs and Features and turn this Windows feature on. From within IIS, find the Default Website node and underneath that create a new application (this way it inherits the correct permissions). Point the application's start path to wherever your web app lives on your hard drive (the root folder that contains your app's web.config file). Anyway, that's one way to deploy your app locally.

ASP.NET Microsoft.Office.Interop.Access EXP_PDF.DLL issue when using DoCmd.OutputTo in PDF format

I've got an ASP.NET application that automates PDF files runtime generation using MS Access.
This solution works fine on Windows Server 2003 with Access 2010 32-bit.
Now I'm upgrading my server to Windows Server 2008 with Access 2010 64-bit. I also tried with Access 2010 32-bit.
Everything works fine except this:
oAccess.DoCmd.OutputTo(Microsoft.Office.Interop.Access.AcOutputObjectType.acOutputReport,
sReport,
acFormatPDF,
PDFFile,
moMissing,
moMissing,
moMissing);
This line gives me an error that I lead back to the Access run-time error:
"Can't save the output data to the file you've selected."
This is error only raise when I try to save in PDF format or XPS format. If I change acFormatPDF to acFormatRTF it works fine.
The difference from PDF export and RTF export is that PDF export requires a DLL named EXP_PDF.DLL (I suppose). The DLL is under C:\Program Files (x86)\Common Files\microsoft shared\OFFICE14\
Working from Access instead of ASP.NET automation, reports are saved to PDF without any problem.
Running Process Monitor, EXP_PDF.DLL reports a FILE LOCKED WITH ONLY READERS result.
I know this kind of approach is not reccomanded, but in my context, as a temporary solution it makes sense and save me a lot of work.
Any suggestion will be appreciated.
I solved the problem referring to the Microsoft KB 288367 this way:
I opened my Access application on the Windows 2008 Server R2, I opened the VB Editor and then I ran dcomcnfg.exe.
I searched for Microsoft Access Application under the node DCOM Config. I changed the Identity Properties from launching user to This user, specifying a user with all requested permission, such as an administrator user.
Now I can generate PDF files from my ASP.NET page.

Decryption not working through ASP.NET web application

Appreciate help on below issue where we are using a decryption program written in .net from a web application to decrypt and encrypt files on server.
This program is working fine on Windows 2008 server when launched from command line. However when we are calling the same program from Asp.net code in an application hosted on IIS 7.5 --> Its not working at all.
Its not even showing any error. Even checked event logs. It simply does not decrypts.
Please note we are using ProcStart to launch this decryption program and passing necessary parameters. The Keys are well places on server in a local folder and the exe file with required config files is placed in another folder on server. All these folders have been provided full access to everyone right now just to make sure there are no access issues with files when accessing through IIS.
Also, the same program works fine when we run the site in debug mode on server (from visual studio after logging with localadmin).
Please help if we are missing some settings somewhere which are not allowing the decryption program to work when launched by a web user from website.
Unless we have any error it is difficult to troubleshoot but can you try to configure an apppool with some user/system idenitity. Give that identity full previledge on files to encrylt/decrypt and program. Run your asp.net website using this configured apppool.

Excel dll for Microsoft.Office.Interop.Excel

We want to use Microsoft.Office.Interop.Excel in our web application. Everything works fine on our local machines, but on our test machine we're running into problems. It has neither Visual Studio nor Office installed on it.
We're using .NET framework 2.0 and the server is running on Windows Server 2003 with IIS6.
Is there a dll that needs to be installed on the machine or added to the bin of the web application?
You will need to have MS Office and the Office Interop assemblies installed on your server in order for that to work.
I'm pretty sure that you will need to have Office installed on the machine it's runnnig on. At least that's my experience from building desktop apps that uses Office.Interop
Please go through the following URLs for redistribution:
How to make changes in references
Where to get distribution
This may help your suituation. And also according to the distribution page, you also need to install office also.
OpenXML?
I got it working at the moment to create Office 2007/Open Office spreadsheet files.
Point to table
Include column headers - optional parameter
Detect data type - optional parameter
Stream to user or save to file system or save to file system then immediately download.
Outcomes an Excel file with cells that are detected as numbers / strings.

Resources