TFS Build: System.IO.FileNotFoundException: Could not find file - sql-server

We have an issue, where developers were Renaming and Deleting files in our Visual Studio SSIS project. Received this error:
System.IO.FileNotFoundException: Could not find file '..SSISPackage.dtsx'
2019-02-07T02:29:05.5297338Z at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
2019-02-07T02:29:05.5297338Z at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
2019-02-07T02:29:05.5297338Z at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
2019-02-07T02:29:05.5297338Z at Microsoft.DataTransformationServices.Design.Project.IDEProjectStorage.LoadStream(String streamName)
2019-02-07T02:29:05.5297338Z at Microsoft.SqlServer.Dts.Runtime.Project.LoadStreamToEnd(IProjectStorage storage, String streamName)
2019-02-07T02:29:05.5297338Z at Microsoft.SqlServer.Dts.Runtime.Project.LoadPackage(IProjectStorage storage, Package package, String streamName, IDTSEvents events)
2019-02-07T02:29:05.5297338Z at Microsoft.SqlServer.Dts.Runtime.PackageItem.Load(IDTSEvents events)
2019-02-07T02:29:05.5297338Z at Microsoft.SqlServer.Dts.Runtime.PackageItem.get_Package()
2019-02-07T02:29:05.5297338Z at Microsoft.DataTransformationServices.Project.DataTransformationsProjectBuilder.IncrementalBuildThroughObj(IOutputWindow outputWindow)
2019-02-07T02:29:05.5297338Z at Microsoft.DataTransformationServices.Project.DataTransformationsProjectBuilder.BuildIncremental(IOutputWindow outputWindow)
We went to Visual Studio and Cleaning Solution. --> Clean files and Rebuild Solution. We tried this several times but did not work, so I Closed and Restarted Visual Studio on my desktop and for several developers. The problems and errors went away.
Now we have same issue on TFS 2015 Server. I tried to Clean solution and also Delete the Workspace files in TFS task. It does not work. What is the equivalent of 'Restarting' this on TFS, or how do I clear the memory cache? Our last option is to restart the server, has to be better way.

Create a template empty fake file to replace the missing file and complete your check-in. After the file is checked in, it should build correctly. Then delete the file not required.

Related

dont found package at Visual studio

when I am building universal app ,this problem is occured by visual studio 2015. How can I solve ?
System.Exception
Windows cannot install package 70733c38-2ce9-4c3f-93bb-b44ef99de628 because this package depends on another package that could not be found. This package requires minimum version 14.0.23019.0 of framework Microsoft.VCLibs.140.00.Debug published by CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US to install. Provide the framework along with this package.
at Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(String applicationPath, String clientPort, Uri hostUri, IDictionary environmentVariables, Int32& processId, Object& processData)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory, IIsolationBoundary boundary, AppDomainSetup appDomainInfo, IIsolationTarget isolationTarget, String baseDirectory)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.Initialize()
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedObjectFactory.Initialize()
at Microsoft.VisualStudio.DesignTools.DesignerHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry, IServiceProvider serviceOverrides)
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.<>c__DisplayClass10_0`1.b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
Create a new fresh universal windows app and install it
It will fix issue with your app.

Postgres entity framework 6 code first issue

Ok, here are the exact steps I followed:
Installed postgres 9.3 locally, created database 'testdb', added login role with uname/pass test
Installed Setup_Npgsql-2.2.3.0-r2-net45.exe from here
Created a new class library (PGTest) in vs 2012, installed "npgsql for entity framework" from nuget package manager
Modified app.config to match this
Added Models folder, added two files: DataContext.cs and Region.cs
In package manager console ran "enable-migrations", "add-migration Initial", "update-database -script"
Got the following error
PM> update-database -script
Applying explicit migrations: [201501282207413_Initial].
Applying explicit migration: 201501282207413_Initial.
System.Runtime.InteropServices.COMException (0x8004000C): User canceled out of save dialog (Exception from HRESULT: 0x8004000C (OLE_E_PROMPTSAVECANCELLED))
Server stack trace:
at EnvDTE.ItemOperations.OpenFile(String FileName, String ViewKind)
at System.Data.Entity.Migrations.Utilities.DomainDispatcher.OpenFile(String fileName)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.Data.Entity.Migrations.Utilities.DomainDispatcher.OpenFile(String fileName)
at System.Data.Entity.Migrations.Extensions.ProjectExtensions.NewSqlFile(Project project, String contents)
at System.Data.Entity.Migrations.UpdateDatabaseCommand.<>c__DisplayClass2.<.ctor>b__0()
at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
User canceled out of save dialog (Exception from HRESULT: 0x8004000C (OLE_E_PROMPTSAVECANCELLED))
In visual studio, going to SQL menu, Transact-SQL Editor, New Query... It gives you a dialog about the tools not working with the server installed. Installing SQL Server Data Tools - December 2012 update (http://msdn.microsoft.com/en-us/jj650015) fixed the problem.
The dialog should provide you a link to the SQL Server Data Tools.

TFSBuild / Release Manager: The directory name is invalid

I have a continuous integration build that used to run fine, but began giving me the following exception:
This exception is from the build agent,
Process each ConfigurationsToRelease
Release the build
Run the Release Management build Process for the current configuration:
Exception:
Exception Message: The directory name is invalid (type Win32Exception)
Exception Stack Trace:
Server stack trace:
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Microsoft.TeamFoundation.Build.Workflow.Activities.InvokeProcess.ProcessWrapper.Start()
at Microsoft.TeamFoundation.Build.Workflow.Activities.InvokeProcess.InvokeProcessInternal.RunCommand (AsyncState state)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[]
args, Object server, Object[]& outArgs
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg,
IMessageSink replySink)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at System.Func`2.EndInvoke(IAsyncResult result)
at System.Activities.AsyncCodeActivity`1.System.Activities.IAsyncCodeActivity.FinishExecution
(AsyncCodeActivityContext context, IAsyncResult result)
at
System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
This is using the default build template and it seemed to have started randomly. The release never actually hits the Release Management and never throws an exception or Roll Back there. It seems to die as it should be hitting Release Management.
I've checked the drop folder and everything is there as it should be. Permissions are still correct. I don't know what folder it's looking for.
Has anyone had any experience with this or any ideas of where to begin looking?
Install the RM Client on the build server.
Somehow, the RM Client had gotten removed from the build server in between releases. Going to have a talk with IT about that.
Thank you #Daniel Mann for catching that.
Update:
After upgrading to Release Management 2015, I received the same error. The ReleaseTfvcTemplate.12.xaml was updated. Make sure to copy the new template to your BuildProcessTemplates (or update your custom templates) from "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Release Management\Client\bin"
After upgrading to RM 2015 I had to update my build templates as described in the comment above by abest.
The only changes are the version number in the registry paths.

Razor Host installation error in dotnetnuke

I upgraded my IIS to .NET v4.0 successfully but on installing Razor Host, It shows the error like
*Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Access to the path 'C:\inetpub\wwwroot\dotnetnuke\Install\Temp\ajynte0h' is denied. ---> System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\dotnetnuke\Install\Temp\ajynte0h' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj) at System.IO.DirectoryInfo.Create() at DotNetNuke.Services.Installer.Util.WriteStream(Stream sourceStream, String destFileName) at DotNetNuke.Services.Installer.InstallFile.ReadZip(ZipInputStream unzip, ZipEntry entry) at DotNetNuke.Services.Installer.InstallerInfo.ReadZipStream(Stream inputStream, Boolean isEmbeddedZip) at DotNetNuke.Services.Installer.InstallerInfo..ctor(Stream inputStream, String sitePath) at DotNetNuke.Services.Installer.Installer..ctor(Stream inputStream, String physicalSitePath, Boolean loadManifest, Boolean deleteTemp) at DotNetNuke.Modules.Admin.Extensions.Install.LoadPackage(String package) at DotNetNuke.Modules.Admin.Extensions.Install.Initialize() at DotNetNuke.Modules.A*dmin.Extensions.Install.OnLoad(EventArgs e) --- End of inner exception stack trace ---
help me to solve this error?????
How did you udpgrade to 4.0? Did you change the app pool? or did you change the framework for the app pool, and kept the identity the same? If the first: Have you checked that you app identity has sufficient rights on the application?
If the second: Try to re-install the razor module.

DotNetNuke (dnn) - error on creating pages using version 5.6.3

I have installed DNN version 5.6.3 according to install instructions.
create new folder and copy downloaded content in
set permission for asp user and network service to full permissions on this folder
created a new db in sql server with a login for it as dbo
set the folder containing the site as an application in iis
amended the web.config file to have the correct db connection information in two places
Firstly I tried to install it with the typical settings but this never went any further than updating db (stayed on this for hours).
Therefore I installed it with the auto settings and this went through successfully as I can see.
Now on my new portal I can log in successfully and change my password on the host and admin user but I cannot do anything else, like creating new pages etc.
The error I am getting is this:
Method: System.Net.WebPermission.IsSubsetOf
StackTrace:
Message: System.Web.HttpParseException: Could not load file or assembly 'DotNetOpenId, Version=2.4.2.8248, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies.
Operation is not supported. (Exception from HRESULT: 0x80131515)
---> System.Web.HttpParseException: Could not load file or assembly 'DotNetOpenId, Version=2.4.2.8248, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
---> System.IO.FileLoadException: Could not load file or assembly 'DotNetOpenId, Version=2.4.2.8248, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) File name: 'DotNetOpenId, Version=2.4.2.8248, Culture=neutral, PublicKeyToken=2780ccd10d57b246'
---> System.NotSupportedException: Cannot subset Regex. Only support if both patterns are identical. at
System.Net.WebPermission.IsSubsetOf(IPermission target) at
System.Security.PermissionSet.IsSubsetOfHelper(PermissionSet target, IsSubsetOfType type, IPermission& firstPermThatFailed, Boolean ignoreNonCas) at
System.Security.PermissionSet.IsSubsetOf(PermissionSet target) at
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) at
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) at
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at
System.Reflection.Assembly.Load(String assemblyString) at System.Web.Configuration.CompilationSection.LoadAssembly(String assemblyName, Boolean throwOnFail) at
System.Web.UI.TemplateParser.LoadAssembly(String assemblyName, Boolean throwOnFail) at
...
I had this (a previous version of dnn) installed on the same sever for a different client a couple years back and it worked fine, but I can't seem to make it work this time. I compared all the settings and nothing is different.
Has anyone got any experience with this version and an idea how I could progress?
From what I have found Googling, it sounds like it could be a permissioning problem on the server, but not sure where to start since I've given the NETWORKUSER full access to the directory already. Other suggestions seem to point towards .net 3.5 not being available to the website but I already have the framework installed.
Did you install the OpenID Authentication provider? You might need to delete that, or remove any reference to it from the web.config file.
You should also be sure, when you unzip the package for DNN, that Windows isn't blocking any of the files in the ZIP file. Right click on the ZIP file, and choose properties. If you see an "unblock" option do that, then extract the contents and try your installation again.

Resources