网络在visual studio中运行良好,但在部署时它不起作用 [英] The web work well in visual studio, but when deploy it is not work

查看:75
本文介绍了网络在visual studio中运行良好,但在部署时它不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello,

The web work well in visual studio, But when deploy it or work it in localhost without visual studio , i faced this error, please help me i spent a lot of time about this issue.

Thank you

Source Error:

Line 19:   <system.web>
Line 20:     <compilation targetFramework="4.5"><assemblies>
Line 21:         <add assembly="Telerik.OpenAccess, Version=2015.3.926.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342" />
Line 22:       </assemblies></compilation>
Line 23:     <httpRuntime targetFramework="4.5" />
Source File: C:\inetpub\wwwroot\1\web.config    Line: 21 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.OpenAccess, Version=2015.3.926.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = Telerik.OpenAccess, Version=2015.3.926.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342
 (Fully-specified)
LOG: Appbase = file:///C:/inetpub/wwwroot/
LOG: Initial PrivatePath = C:\inetpub\wwwroot\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\inetpub\wwwroot\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Telerik.OpenAccess, Version=2015.3.926.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/e22c2559/92c7e946/Telerik.OpenAccess.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/e22c2559/92c7e946/Telerik.OpenAccess/Telerik.OpenAccess.DLL.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/bin/Telerik.OpenAccess.DLL.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/bin/Telerik.OpenAccess/Telerik.OpenAccess.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/e22c2559/92c7e946/Telerik.OpenAccess.EXE.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/e22c2559/92c7e946/Telerik.OpenAccess/Telerik.OpenAccess.EXE.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/bin/Telerik.OpenAccess.EXE.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/bin/Telerik.OpenAccess/Telerik.OpenAccess.EXE.





我尝试了什么:



我尝试过使用localhost并遇到问题



What I have tried:

I tried use localhost and faced problem

推荐答案

localhost中缺少Telerik程序集。当您使用Visual Studio时,Telerik程序集在添加Telerik库和扩展时可用。

但是当您在localhost中编译和发布时,您需要在应用程序中复制这些Telerik库,指定他的路径。执行以下操作,



打开Telerik和Telerik扩展库的属性,并将Copy Local设置为True 。这可能会解决问题。



查看以下参考资料:

Telerik发布 [ ^ ]
The Telerik assemblies are missing in localhost. When you are working on Visual studio, the Telerik assemblies are available when you add the Telerik libraries and extensions.
But when you compile and publish in localhost, you need to copy these Telerik libraries inside your application and specify he path. Do the following,

Open the properties of the Telerik and Telerik extensions libraries and set the "Copy Local" to True. This might solve the issue.

Check these references:
Telerik publish [^]


这篇关于网络在visual studio中运行良好,但在部署时它不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆