I have permission issues with the default storage folder on Windows Server 2016, I keep getting the following error on TRACE:
AI (Internal): [Microsoft-ApplicationInsights-WindowsServer-TelemetryChannel] Unauthorized access dequeuing file, folder not accessible: 5dd29ef58369a24b5a015ae5d7a400adffee3c3f379057066bda9dd1ad8a4771. Exception: System.UnauthorizedAccessException: Access to the path 'C:\Windows\TEMP\Microsoft\ApplicationInsights\5dd29ef58369a24b5a015ae5d7a400adffee3c3f379057066bda9dd1ad8a4771' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
at System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption)
at Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.Implementation.PlatformFolder.GetFiles() in E:\A\_work\13\s\BASE\src\ServerTelemetryChannel\Implementation\PlatformFolder.cs:line 46
at Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.Implementation.TransmissionStorage.GetTransmissionFiles() in E:\A\_work\13\s\BASE\src\ServerTelemetryChannel\Implementation\TransmissionStorage.cs:line 257
at Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.Implementation.TransmissionStorage.LoadFilesOrderedByDateFromFolder() in E:\A\_work\13\s\BASE\src\ServerTelemetryChannel\Implementation\TransmissionStorage.cs:line 284
at Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.Implementation.TransmissionStorage.GetOldestTransmissionFileOrNull() in E:\A\_work\13\s\BASE\src\ServerTelemetryChannel\Implementation\TransmissionStorage.cs:line 268
at Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.Implementation.TransmissionStorage.Dequeue() in E:\A\_work\13\s\BASE\src\ServerTelemetryChannel\Implementation\TransmissionStorage.cs:line 134.
I have tried adding the following change to ApplicationInsights.config by refering to documentation here :
<TelemetryChannel Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.ServerTelemetryChannel, Microsoft.AI.ServerTelemetryChannel">
<StorageFolder>D:\ApplicationInsights\My.App.API\Prod</StorageFolder>
</TelemetryChannel>
but this does not takes any effect. What am I doing wrong here?
It was a permission issue on the custom folder I had created. I came to this realisation after reporting an issue on GitHub
Related
I'm using IIS Transform Manager to transcode my .ISMV files. All the configuration is working file with small size files like 100 MB, 400 MB.. etc
But when I try to transcode 1.36 GB file, I'm getting following error (I'm using VC-1 IIS Smooth Streaming - 720p CBR.xml preset for transcoding):
2013-10-08 14:56:39.1952 Information Machine name: SSMINGEST1
2013-10-08 14:56:39.1952 Information Task engine process ID: 3896
2013-10-08 14:56:39.1952 Information Instance file name: Encoder1.ismv
2013-10-08 14:56:39.1952 Information Creating output folder: C:\inetpub\media\Transform Manager\Smooth (VC1)\WorkQueue\Running\111111111111111111111111111\EE4Output
2013-10-08 14:56:53.5424 Information Task C:\Program Files (x86)\IIS\Transform Manager\Microsoft.Web.Media.TransformManager.EE40SP2Task.dll file version 7.1.1565.4.
2013-10-08 14:57:04.5957 Information Preset file from preset property: C:\ProgramData\Microsoft\IIS\Transform Manager\Configuration\Presets\VC-1 IIS Smooth Streaming - 720p CBR.xml.
2013-10-08 14:57:04.6113 Information Template from templateName property: Standard.
2013-10-08 14:57:04.6113 Information Template path from templatePath property: C:\Program Files (x86)\Microsoft Expression\Encoder 4\Templates\en\Standard.
2013-10-08 14:57:04.7830 Audit SSMINGEST1\brian Expression Encoder task transforming file C:\inetpub\media\Transform Manager\Smooth (VC1)\WorkQueue\Running\11111111111111111111111111111\Encoder1.ismv.
2013-10-08 14:57:06.8126 Error at Microsoft.Expression.Encoder.MediaImportInfo.OpenAndValidateMediaFile(String strFilename, MediaLoadOptions loadOptions)
at Microsoft.Web.Media.TransformManager.EETask.CreateMediaItems(IEnumerable1 inputFiles, String preset)
2013-10-08 14:57:06.8126 Error An unknown error has occurred
2013-10-08 14:57:06.8282 Error Task.Initialize failed for task index 1.
2013-10-08 14:57:06.8282 Error Microsoft.Expression.Encoder.InvalidMediaFileException: An unknown error has occurred
2013-10-08 14:57:06.8282 Error at Microsoft.Expression.Encoder.MediaImportInfo.OpenAndValidateMediaFile(String strFilename, MediaLoadOptions loadOptions)
at Microsoft.Web.Media.TransformManager.EETask.CreateMediaItems(IEnumerable1 inputFiles, String preset)
at Microsoft.Web.Media.TransformManager.EETask.AssignJobParameters()
at Microsoft.Web.Media.TransformManager.EETask.Initialize(ITaskStatus status, IJobMetadata metadata, ILogger logger)
at Microsoft.Web.Media.TransformManager.Wrapper.RunTaskCode(TaskStatus taskStatus, JobMetadata metadata, Logger logger, ITask task, Int32 taskIndex)
2013-10-08 14:57:06.8282 Error Microsoft.Expression.Encoder.UnableToAnalyzeFileException: Error HRESULT E_FAIL has been returned from a call to a COM component.
2013-10-08 14:57:06.8282 Error at MS.Internal.Expression.Encoder.Media.MediaFileInfo..ctor(String fileName)
at MS.Internal.Expression.Encoder.MediaImport.MediaInfoCache1.CreateMediaFileInfoFromFile(String strFilename)
at MS.Internal.Expression.Encoder.MediaImport.MediaInfoCache1.OpenMediaFileInfo(String strFilename)
at Microsoft.Expression.Encoder.MediaImportInfo.OpenMediaFileInfo(String strFilename)
at Microsoft.Expression.Encoder.MediaImportInfo.OpenAndValidateMediaFile(String strFilename, MediaLoadOptions loadOptions)
2013-10-08 14:57:06.8282 Error System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
2013-10-08 14:57:06.8282 Error at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at ThrowHRESULT(Int32 hr)
at MS.Internal.Expression.Encoder.Media.MediaFileInfo..ctor(String fileName)
2013-10-08 14:57:06.8282 Error Exiting task. Task ID: 1
2013-10-08 14:57:06.8282 Information UpdateStatus message: An unknown error has occurred
Please help me.
Thanks
Dev
I faced the similar issue and I did following steps:
1) Uninstall Transform Manager.
2) Download Expression Encoder SP2 setup from here and install it. Please remember don't uninstall the previous one. This will update the previously installed copy.
3) Now try transcoding.
I hope this will help you.
I have tried using the NMath library on a
ASP.NET 4 web application hosted in IIS. While it works perfectly o the development machine, on the server it throws this exception:
Unable to load DLL 'nmath_native_x86.dll': Access is denied.
(Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
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.DllNotFoundException: Unable to load DLL
'nmath_native_x86.dll': Access is denied. (Exception from HRESULT:
0x80070005 (E_ACCESSDENIED))
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[DllNotFoundException: Unable to load DLL 'nmath_native_x86.dll':
Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))]
CenterSpace.NMath.Kernel.DotNetBlas.ca985db1fb290841a533a3547ace1ae2b(Int32*
ca9e3f1c0641beace93cb8eb4a27060d6, Double*
cf339080161dff75cfd1b46a10c2eec70, Int32*
c757a2154665e6da4d820f8c504ec2601, Double*
c00a69c4fa5b6d809b68a96ca184dcf79, Int32*
c1565590bf448d2c630952a0391360cc3) +0
CenterSpace.NMath.Kernel.DotNetBlas.copy(Int32 n, DoubleDataBlock x,
Int32 xOffset, Int32 incx, DoubleDataBlock y, Int32 yOffset, Int32
incy) +149 CenterSpace.NMath.Core.DoubleVector.set_Item(Slice
slice, DoubleVector value) +165
While i have read around here that it might be related the the
permissions of the AppPool or something similar, I can't seem to point down the problem. What could it be?!
It could be a couple of options.
1) Is the C++ runtime installed? NMath can't load a native dll without it. See the deployment section here: http://centerspace.net/doc/NMath/user/overview-83427.htm#Xoverview-83427
2) Perhaps you're not configuring NMath correctly? You can do NMathConfiguration.NativeLocation to point to a location. More here:
http://centerspace.net/doc/NMathSuite/ref/html/T_CenterSpace_NMath_Core_NMathConfiguration.htm
Finally, please generate log file using NMathConfiguration.LogLocation. The resulting log file will tell you what's wrong.
Trevor
I have just deployed my ASP.NET MVC 2 application using EF 4 and I am getting the following error:
Unable to load the specified metadata resource.
On my local machine it runs fine with no errors. This error only comes now when I deployed to the server. I have my enity data model file in MyProject.EntityModel. I used the POCO entity generator to separate my context and entities. These 2 are in another project called MyProject.Entities. I have the connection strings in the app.config in the 2 projects exactly the same. The connection string in the web.config in my MVC app is also the same. I'm not sure why this is giving me issues? I'm also running the app in IIS (that comes with Windows 7) and it works fine. The IIS version on the server is 6 (I think). Here is the full error message:
InnerException
Message: Unable to load the specified metadata resource.
Source: System.Data.Entity
StackTrace: at System.Data.Metadata.Edm.MetadataArtifactLoaderCompositeResource.LoadResources(String assemblyName, String resourceName, ICollection`1 uriRegistry, MetadataArtifactAssemblyResolver resolver)
at System.Data.Metadata.Edm.MetadataArtifactLoaderCompositeResource.CreateResourceLoader(String path, ExtensionCheck extensionCheck, String validExtension, ICollection`1 uriRegistry, MetadataArtifactAssemblyResolver resolver)
at System.Data.Metadata.Edm.MetadataArtifactLoader.Create(String path, ExtensionCheck extensionCheck, String validExtension, ICollection`1 uriRegistry, MetadataArtifactAssemblyResolver resolver)
at System.Data.Metadata.Edm.MetadataCache.SplitPaths(String paths)
at System.Data.Common.Utils.Memoizer`2.<>c__DisplayClass2.<Evaluate>b__0()
at System.Data.Common.Utils.Memoizer`2.Result.GetValue()
at System.Data.Common.Utils.Memoizer`2.Evaluate(TArg arg)
at System.Data.EntityClient.EntityConnection.GetMetadataWorkspace(Boolean initializeAllCollections)
at System.Data.Objects.ObjectContext.RetrieveMetadataWorkspaceFromConnection()
at System.Data.Objects.ObjectContext..ctor(EntityConnection connection, Boolean isConnectionConstructor)
at MyProject.HolsboerBFGA.Entities.HolsboerBFGAEntities..ctor()
at MyProject.HolsboerBFGA.WebMVC2.Controllers.HomeController..ctor()
Any advice would be appreciated.
Thanks.
I found the solution because i had this same problem. I had this problem because moved my .edmx to another folder and i had to change the namespace so when i run my project appear this error.
I resolved my problem by changing my connection string, adding the namespace "Model" (folder name) to each of the 3 places where the folder changed.
<add name="connectionName" connectionString="metadata=res://*/Model.MyModel.csdl|res://*/Model.MyModel.ssdl|res://*/Model.MyModel.msl;provider=System.Data.SqlClient;provider connection string="data source=server;initial catalog=myDataBase;user id=us;password=***;multipleactiveresultsets=True;application name=EntityFramework"" providerName="System.Data.EntityClient" />
Take a look at this question, the problem seems to be the same.
If I run this command on my system
<Exec Command="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler -v localhost -p $(SourceDir)\wwwroot -u -f projectCompileCode\project -c -errorstack -nologo" />
I get the following error:
error ASPParse: Could not load the type: Projectname:SomeFile.
The project is web application project
This my stack trace:
[HttpException]: Could not load type 'ProjectName.FileName'.
at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCa
e, Boolean throwOnError)
at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeN
me, String codeFileBaseTypeName, String src, Assembly assembly)
at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDicti
nary parseData)
[HttpParseException]: Could not load type ''ProjectName.FileName.
at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virt
alPath, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualP
th virtualPath)
at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPat
virtualPath)
at System.Web.UI.TemplateParser.ParseInternal()
at System.Web.UI.TemplateParser.Parse()
at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType(
at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(
uildProvider buildProvider)
at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResu
t(Boolean isPrecompiledApp)
at System.Web.Compilation.BuildManager.CompileGlobalAsax()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
at System.Web.Compilation.BuildManager.PrecompileAppInternal(VirtualPath
tartingVirtualDir)
at System.Web.Compilation.BuildManager.PrecompileApp(VirtualPath starting
irtualDir)
at System.Web.Compilation.BuildManager.PrecompileApp(ClientBuildManagerCa
lback callback)
at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManag
rCallback callback)
at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManag
rCallback callback)
at System.Web.Compilation.ClientBuildManager.PrecompileApplication(Client
uildManagerCallback callback, Boolean forceCleanBuild)
at System.Web.Compilation.ClientBuildManager.PrecompileApplication(Client
uildManagerCallback callback)
at System.Web.Compilation.Precompiler.Main(String[] args)
If I build in v2.0.50727 then still it is giving the same error.
My application is built in with VS 2010, .net frame asp.net frame work 4
Any help is greatly apperciated.
Have you tried:
Checking references
Doing a clean and a build
Checking the Inherits attr in the HTML against the code behind
Creating a new App Pool in IIS for this web site?
I see a similar problem. Works locally from within VS2008, but once published and deployed to the server, I get the same error as described here.
None of the suggestions I have provided worked for me; maybe they will work for you.
I had the same error. When I opened the web site DLL in ILDASM, the Type for a control was completely missing, as if it didn't even get compiled.
As it turns out, the codebehind files got excluded from the project. This is strange considering that the builds on my machine were successful! At any rate, I carefully re-included codebehind files and it all started working.
This often happens because the project file (.csproj or .vbproj) does not contain the necessary references to the files in question. Try cleaning/rebuilding all projects and making sure that the latest project files are moved to the server as well.
Another possibility is that the file was not actually included in your project at all. This allows the builds in Visual Studio to run just fine, but will break when compiling the .NET code (with aspnet_compiler for example) because all .aspx/.ascx/etc. files within the specified folder are compiled - whether they are included in your project or not.
How to solve this problem?
I am using asp.net 2.0, vs2005 and IIS 5.1.
Using Windows XP SP3.
Failed to access IIS metabase.
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.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.
The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HostingEnvironmentException: Failed to access IIS metabase.]
System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +3591442
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath2.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +169
System.Web.CachedPathData.GetConfigPathData(String configPath) +389
System.Web.CachedPathData.GetConfigPathData(String configPath) +243
System.Web.CachedPathData.GetApplicationPathData() +68
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +3536567
System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +189
The rights of the ASPNET user have not been set correctly.
What version of ASP.NET are you running?
try
Start -> Run
Type cmd <HIT RETURN>
Type c:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i <HIT RETURN>
or as suggested
aspnet_regiis.exe -ga ASPNET
Running asnet_regiis with the -i option might not be enough, as the reason might be the lack of proper IIS Metabase access rights for ASPNET account.
I would suggest running it with the -ga option:
aspnet_regiis.exe -ga ASPNET
As a general comment, this issue will occur if one installs Visual Studio and/or the .Net Framework before installing IIS.
try running aspnet_regiis -i from the dotnet directory. It has a way of fixing things.
Simply run the following from the cmd
%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i