Refused to execute script from 'myfiles.bundle.js.gz' in SharePoint Online Master page - gzip

I have created a bundle file with 'compression-webpack-plugin'. But when I am trying to use in SharePoint online master page, it is throwing an error :
'Refused to execute script from 'myfiles.bundle.js.gz' because its MIME type ('application/x-gzip') is not executable, and strict MIME type checking is enabled.'
Error Image
How can I use .gz file in SharePoint Online Master page?
Thanks,
Gaurav

Related

SSIS: Unable to Read from Excel file from a UNC path when deployed to server

I appear to be unable to get my deployed SSIS package to read from a 1997-2003 Excel file.
I get stuck with the following 2 errors:
SSIS Error Code DTS_E_OLEDBERROR, Error code: 0x80004005 An OLE DB
record is available. Source Microsoft JET Database Engine, database
engine cannot open the file, it is already opened exclusively by
another user, or you need permission to view its data.
DTS_E_CANNOTAQUIRECONNECTIONFROMCONNECTIONMANAGER with Error code 0xC0202009
The package itself works with no issues when using SQL data tools on the server logged in as the service account only when deployed to server I see this issue.
To make this issue even more confusing I have setup and tried the following:
Runtime is set to 32 bit on the debugging menu on SQL data tools as well as the job configuration is set to use 32 bit runtime
I am able to UNC to the folder/file when logged in as the SQL service account
Any Ideas?
Thanks,
M
I figured it out in the end. Turns out I missed a step with the permissions.
Yes the Service account had permissions to the folder but I failed to add read permissions to the file itself.
Thanks for all comments/suggestions.
M

Able to write file but not read from a network location

I have following network location
Dim myfolder As String = "\\10.0.0.90\myfolder\"
I am able to create a new file in this folder using following code:
File.Create (myfolder)
But when I try to read contents of this folder using code below I get error.
Code
Dim orderedFiles = New System.IO.DirectoryInfo(myfolder).GetFiles()
Error
The system detected a possible attempt to compromise security. Please
ensure that you can contact the server that authenticated you.
File writing is being done by ASP.Net page while reading is done from Windows Service. Could this be the issue?
Windows Service was running as "Local System". I right click on it, went into properties and changed the "Log on as" to some user account and now it can access network folder.

cfhtmltopdf with remote PDF service returning "FILE NOT FOUND"

I'm developing with CF11 on a Mac, which doesn't support having a local PDF Service to use with the new tag. But, I'm able to set up a PDF service that points to our dev (Windows) server. That service verifies via the admin.
However, when I try to do a simple test:
<cfhtmltopdf>
Hello
</cfhtmltopdf>
I get an error of "Error occurred while generating PDF" with the error detail of "Reason: FILE NOT FOUND". If we try this code directly on the dev server (so it's using the local PDF service), it works just fine.
Anyone have an idea of what file it's referring to or what else may be going on?
I had the same issue and it came down to the need to start the PDF service manager.
You need to go into ColdFusion Administrator, navigate to the "PDF Service" (under the "DATA & SERVICES" section). You will want to start the service that you want running by pressing the play button to the left of the service.
I believe this will resolve your issue.

Access denied when using svcutil

I am trying to consume a WCF service I wrote, but I can't get the svcutil.exe to generate a proxy.
Every path I try brings up access denied... What do I need to set to get permission?
Generating files...
Error: Cannot create output file: C:\ClientCode.cs
Access to the path 'C:\ClientCode.cs' is denied.
If using Windows 7 try 'Run as Administrator'.
As a bonus, you can eliminate this annoyance by opening 'User Account Control Settings' and change the setting to 'Never Notify'.

FileUpload SaveAs UnauthorizedAccessException error (Dotnetnuke)

I am trying to save an image file in a custom module I am building for a DNN site.
However when I run the code I get an UnauthorizedAccessException.
if(upLoadAddImg.HasFile)
{
String imageLocation = ConfigurationManager.AppSettings["ImageFolderPath"];
//Upload file
upLoadAddImg.SaveAs(Server.MapPath(imageLocation));
}
I am running on localhost using the internal visual studio server. Tthe folderpath is all right and I have made sure Network Service has full permissions.
Am I missing something obvious or does DNN have some special permission setting I am missing?
If you are using the dev server in VS its identity is not Network Service by default. Most likely the directory you are saving to loccally is not allowed for the aspnet user - if you run this on a web site it should work at least code wise -------
To test it you can do one of two things make the portal directory open to everyone or set up a local site not run on the dev server ----