Completed
Last Updated: 31 Aug 2021 16:03 by ADMIN
Paul
Created on: 02 Jun 2021 13:51
Category: Installer and VS Extensions
Type: Bug Report
0
System.IO.FileNotFoundException: Could not find file

After upgrading my Telerik Ajax version from 2020.3.915.45 to the latest 2021.2.511.45 version, I am now receiving this error, in my solution. The error occurred right after I tried to upgrade Telerik from inside Visual Studio. BTW, I do not have this file: web.config.transform I am also getting a similar error when I go to this:
Configure Telerik section in Visual Studio (see screenshot).

Failed to execute command.

System.IO.FileNotFoundException: Could not find file 'C:\Git\nedwneappdev\Web-Online_Offline_Modems\web.config.transform'.
File name: 'C:\Git\nedwneappdev\Web-Online_Offline_Modems\web.config.transform'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
   at System.Threading.CompressedStack.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
   at System.Xml.XmlTextReaderImpl.OpenUrl()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at Telerik.VSX.Web.Helpers.ExistingWebConfig.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(String filename)
   at Telerik.VSX.Web.Helpers.ExistingWebConfig.Load(String filename)
   at Telerik.VSX.Web.Helpers.TelerikConfiguredWebConfig.Retrieve(IProjectWrap project, Boolean create, String relativeProjectPath)
   at Telerik.VSX.Web.Helpers.TelerikConfiguredWebConfig.Retrieve(IProjectWrap project, Boolean create)
   at Telerik.Web.UI.VSX.Helpers.ProjectSettingsReader..ctor(IProjectWrapUIComponents project)
   at Telerik.Web.UI.VSX.ProjectConfigurators.ProjectConfigurationTypeSelector.GetProjectSettingsReader()
   at Telerik.Web.UI.VSX.ProjectConfigurators.ProjectConfigurationTypeSelector.GetProjectConfigurationPreWizardData(IScenarioDef template)
   at Telerik.Web.UI.VSX.ProjectConfigurators.ProjectConfigurationTypeSelector.ProjectConfiguration()
   at Telerik.Web.UI.VSX.ProjectConfigurators.StreamlinedProjectConfiguration.StartConfigureWizard()
   at Telerik.Web.UI.VSPackage.CommandExecutor.Execute(UInt32 commandId)
   at Telerik.VSX.VSPackage.PackageBase.CommandCallback(Object sender, EventArgs e)
3 comments
ADMIN
Nikola
Posted on: 10 Jun 2021 12:16

Hi Paul,

I am glad to hear you were able to work around the issue. I fix for this is already been done and is currently pending and should go live with the next release of our Visual Studio Extensions.

That said I ask for your patience and if you have any other questions do not hesitate to get back to us.

Regards,
Nikola
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Paul
Posted on: 08 Jun 2021 13:58

Yes indeed - I manually added the web.config.transform file and all is working fine now. You may want to modify your code so that it doesn't error if that file doesn't exist. We are all set now.

Thanks,

Paul

ADMIN
Nikola
Posted on: 08 Jun 2021 13:55

Hi Paul,

I am sorry to hear of the difficulties you faced using our product.

The web.config transforms are used to modify the configuration file when building in a different configuration or when deploying your project. When we configure a project we change parts of the configuration file if needed for example if the theme changes or CDN settings change and when upgrading we again modify the file this time only the parts where the product version is mentioned. 

We have received just one previous ticket describing this behaviour and the client reported that the project was upgraded successfully despite the error being shown and that he had to add the file manually for the error to disappear. With that said could you please confirm whether the project configuration/upgrade was successful? 

Our wizards try to locate the configuration file through the project items of the current project, so could you please double-check that there is no such file in your project folder or mentioned in the project file. 

I am looking forward to your reply.

Regards,
Nikola
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.