Error importing template builder created template

Posted by Community Admin on 03-Aug-2018 02:34

Error importing template builder created template

All Replies

Posted by Community Admin on 03-Oct-2011 00:00

Hi

When I try to import the template zip file using the Template Importer SDK utility I get below error.

What can I do to fix this?

Thanks

Regards


The given path's format is not supported.

 

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.NotSupportedException: The given path's format is not supported.

Source Error:

Line 133:            finally
Line 134:            
Line 135: File.Delete(fileToExtract);Line 136:                DeleteTemporaryFolder(templateExtractionFolder);
Line 137:

Source File: c:\Documents and Settings\ABC\Local Settings\Application Data\Telerik.Sitefinity.SDK\TemplateImporter_7CDE2DA9\TemplateImporter\TemplateImporter.cs    Line: 135

Stack Trace:

[NotSupportedException: The given path's format is not supported.]
   System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) +9361264
   System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) +254
   System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +85
   System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath) +43
   System.IO.File.Delete(String path) +99
   TemplateImporter.TemplateImporter.Import() in c:\Documents and Settings\Administrator\Local Settings\Application Data\Telerik.Sitefinity.SDK\TemplateImporter_7CDE2DA9\TemplateImporter\TemplateImporter.cs:135
   TemplateImporter.TemplateImporterServerControl.UploadButton_Click(Object sender, EventArgs e) in c:\Documents and Settings\Administrator\Local Settings\Application Data\Telerik.Sitefinity.SDK\TemplateImporter_7CDE2DA9\TemplateImporter\TemplateImporterServerControl.cs:66
   Telerik.Web.UI.RadButton.OnClick(ButtonClickEventArgs e) +96
   Telerik.Web.UI.RadButton.RaisePostBackEvent(String eventArgument) +230
   Telerik.Web.UI.RadButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225

Posted by Community Admin on 05-Oct-2011 00:00

Hello John,

 Can you tell us what browser you are using? If it is IE, please try firefox or chrome for the import, as there used to be a similar problem in the past with IE.

Kind regards,
Svetoslav Petsov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 06-Oct-2011 00:00

I had the same issue.

in chrome it worked fine.

It doesn't work with IE 8.0.7601.17514
update version 0

Regards,

Posted by Community Admin on 06-Oct-2011 00:00

Hi guys,

 We are aware of this bug (it only applies to IE) and we are working on fixing it for our future releases. Please excuse us for the discomfort. 
Let me know if there is something else I can help you with.

Best wishes,
Svetoslav Petsov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 09-Oct-2011 00:00

Hi

I am getting below in Chrome.

Thanks

Regards


Could not load file or assembly 'Telerik.Sitefinity, Version=4.2.1650.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

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.IO.FileLoadException: Could not load file or assembly 'Telerik.Sitefinity, Version=4.2.1650.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error: 

Line 31:                 SampleUtilities.RegisterModule<TemplateImporterModule>("Template Importer");
Line 32:             
Line 33:         
Line 34: 
Line 35:         protected void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs args)

Source File: c:\Documents and Settings\abc\Local Settings\Application Data\Telerik.Sitefinity.SDK\TemplateImporter_7CDE2DA9\SitefinityWebApp\Global.asax.cs    Line: 33 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Sitefinity, Version=4.2.1650.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace: 

[FileLoadException: Could not load file or assembly 'Telerik.Sitefinity, Version=4.2.1650.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   SitefinityWebApp.Global.Bootstrapper_Initializing(Object sender, ExecutingEventArgs e) in c:\Documents and Settings\Administrator\Local Settings\Application Data\Telerik.Sitefinity.SDK\TemplateImporter_7CDE2DA9\SitefinityWebApp\Global.asax.cs:33
   Telerik.Sitefinity.Abstractions.Bootstrapper.OnInitializing(Object sender, ExecutingEventArgs args) +27
   Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +137
   Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +115
   System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +10
   System.Web.HttpApplication.InitModulesCommon() +172
   System.Web.HttpApplication.InitModules() +43
   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225

Posted by Community Admin on 12-Oct-2011 00:00

Hello John,

 This is probably caused because you upgraded your project to 4.2 SP1 (1733) but your SDK is still the one from 4.2.1650 and the builder is trying to find the old assemblies with no avail. A simple decision would be to install the new SDK for SP1.

Kind regards,
Svetoslav Petsov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 09-Nov-2011 00:00

Hi

I uninstalled SDK 1733, deleted SDK folder and reinstalled Sitefinity_SDK_4.2.1733.4.msi. Still getting this error (below).

Thanks

Regards


Server Error in '/' Application.

Could not load file or assembly 'Telerik.Sitefinity, Version=4.2.1650.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

 

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.IO.FileLoadException: Could not load file or assembly 'Telerik.Sitefinity, Version=4.2.1650.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error: 

Line 31:                 SampleUtilities.RegisterModule<TemplateImporterModule>("Template Importer");
Line 32:             
Line 33: Line 34: 
Line 35:         protected void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs args)

Source File: c:\Documents and Settings\Administrator\Local Settings\Application Data\Telerik.Sitefinity.SDK\TemplateImporter_7CDE2DA9\SitefinityWebApp\Global.asax.cs    Line: 33 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Sitefinity, Version=4.2.1650.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace: 

[FileLoadException: Could not load file or assembly 'Telerik.Sitefinity, Version=4.2.1650.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   SitefinityWebApp.Global.Bootstrapper_Initializing(Object sender, ExecutingEventArgs e) in c:\Documents and Settings\Administrator\Local Settings\Application Data\Telerik.Sitefinity.SDK\TemplateImporter_7CDE2DA9\SitefinityWebApp\Global.asax.cs:33
   Telerik.Sitefinity.Abstractions.Bootstrapper.OnInitializing(Object sender, ExecutingEventArgs args) +27
   Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +137
   Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +115
   System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +10
   System.Web.HttpApplication.InitModulesCommon() +172
   System.Web.HttpApplication.InitModules() +43
   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327

 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225

 

Posted by Community Admin on 09-Nov-2011 00:00

Hi

Please build Template Importer inside SF so we don’t have to go through any of this.

Thanks

Regards

Posted by Community Admin on 11-Nov-2011 00:00

Hello John,

 Can you give us information exactly what version of Sitefinity and SDK have you tried using together and has the project been upgraded from previous version. Also, please double-check if the assembly references are not the old ones and if so, update them. 
Also, please try reproducing this on an empty project and send us the exact steps for reproduction, because we tried reproducing this bug with different Sitefinity - SDK combination of versions and no issue appeared.

Best wishes,
Svetoslav Petsov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 14-Nov-2011 00:00

HI

I deleted C:\Documents and Settings\ABC\Local Settings\Application Data\Telerik.Sitefinity.SDK\ folder in case it had cached older version of dll and then reinstalled SDK. It worked.
Thanks
Regards

 

Posted by Community Admin on 14-Nov-2011 00:00

Hi John,

 I'm glad you solved your issue. Let me know if the problem reappears or if you have any other issues.

All the best,
Svetoslav Petsov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed