c# - 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' -
i want access root url of web application windows forms application.
string rooturl = billing_xml_webtracking.webform1.rooturl; string url = rooturl + "/webform1.aspx"; webbrowser1.navigate(url);
so have added below code web.config of web application :
<assemblies> <add assembly="system.runtime, version=4.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a"/> </assemblies>
and final code of web.config file is
<configuration> <system.web> <compilation debug="true" targetframework="4.0"> <assemblies> <add assembly="system.runtime, version=4.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a"/> </assemblies> </compilation> <pages controlrenderingcompatibilityversion="3.5" clientidmode="autoid"/> </system.web> </configuration>
but while building solution, giving below error type 'system.web.ui.page' defined in assembly not referenced. must add reference assembly 'system.web, version=4.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a'.
please me out.thanks
in references
must add system.web.dll
Comments
Post a Comment