Hello, i am having this problem. The exact error message is:
"Unable to generate code for a value of type 'System.Web.UI. Page'. This
error occurred while trying to generate the property value for Page."
After a lot of googling, all i can find that this applies to is when trying
to use enum-type datatypes as bit-vector flags, or when use designers to
make an expandable property in the property tool-window. However, NEITHer of
these cases apply to my page. This is only happening on one page in the
project. But the stack trace of the error (included at the end) gives me no
hint of where to even start looking to fix it, of WHAt exactly might be
wrong with the page.
Thanks in advance,
- Arthur Dent.
=============== =============== =============== ======
<stackTrace>
[HttpException (0x80004005): Unable to generate code for a value of type
'System.Web.UI. Page'. This error occurred while trying to generate the
property value for Page.]
System.Web.Comp ilation.CodeDom Utility.Generat eExpressionForV alue(PropertyIn fo
propertyInfo, Object value, Type valueType) +2369
System.Web.Comp ilation.Templat eControlCompile r.BuildBuildMet hod(ControlBuil der
builder, Boolean fTemplate, PropertySetterE ntry pse) +2545
System.Web.Comp ilation.Templat eControlCompile r.BuildSourceDa taTreeFromBuild er(ControlBuild er
builder, Boolean fInTemplate, PropertySetterE ntry pse) +794
System.Web.Comp ilation.Templat eControlCompile r.BuildSourceDa taTreeFromBuild er(ControlBuild er
builder, Boolean fInTemplate, PropertySetterE ntry pse) +352
System.Web.Comp ilation.Templat eControlCompile r.BuildSourceDa taTreeFromBuild er(ControlBuild er
builder, Boolean fInTemplate, PropertySetterE ntry pse) +352
System.Web.Comp ilation.Templat eControlCompile r.BuildSourceDa taTreeFromBuild er(ControlBuild er
builder, Boolean fInTemplate, PropertySetterE ntry pse) +352
System.Web.Comp ilation.Templat eControlCompile r.BuildMiscClas sMembers()
+51
System.Web.Comp ilation.PageCom piler.BuildMisc ClassMembers() +9
System.Web.Comp ilation.BaseCom piler.BuildSour ceDataTree() +1279
System.Web.Comp ilation.BaseCom piler.GetCompil edType() +129
System.Web.UI.P ageParser.Compi leIntoType() +59
System.Web.UI.T emplateParser.G etParserCacheIt emThroughCompil ation() +126
[HttpException (0x80004005): Unable to generate code for a value of type
'System.Web.UI. Page'. This error occurred while trying to generate the
property value for Page.]
System.Web.UI.T emplateParser.G etParserCacheIt emInternal(Bool ean
fCreateIfNotFou nd) +692
System.Web.UI.T emplateParser.G etParserCacheIt emWithNewConfig Path() +125
System.Web.UI.T emplateParser.G etParserCacheIt em() +88
System.Web.UI.T emplateControlP arser.CompileAn dGetParserCache Item(String
virtualPath, String inputFile, HttpContext context) +116
System.Web.UI.T emplateControlP arser.GetCompil edInstance(Stri ng
virtualPath, String inputFile, HttpContext context) +36
System.Web.UI.P ageParser.GetCo mpiledPageInsta nceInternal(Str ing
virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.P ageHandlerFacto ry.GetHandler(H ttpContext context, String
requestType, String url, String path) +44
System.Web.Http Application.Map HttpHandler(Htt pContext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) +699
System.Web.MapH andlerExecution Step.System.Web .HttpApplicatio n+IExecutionSte p.Execute()
+95
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously) +173
</stackTrace> 1 2324
Well, i finally figured it out, after a day of piece-by-piece rebuilding my
page.
I had a TD tag in my html code which i set to runat="server". I then added
on an attribute named "page" where i was going to keep track of the custom
page my grid was on (im paging by alpha-filters instead of numeric page
numbers). When the page tried to render this control though, it was now an
HtmlTableCell object, which has a Page property (derived from Control
class). It thought i was trying to set that property = "" and it got all
confused. By simply changing the name of my custom attribute from "page" to
"pageindex" , it works again. Apparently on a runat=server HTML tag, the
framework will try to interpret any attributes specified as .NET Properties
first, and if there isnt one by that name, then it treats them as HTML
Attributes.
CheerZ.
"A Traveler" <hi************ *********@yahoo .com> wrote in message
news:uE******** ******@TK2MSFTN GP09.phx.gbl... Hello, i am having this problem. The exact error message is:
"Unable to generate code for a value of type 'System.Web.UI. Page'. This error occurred while trying to generate the property value for Page."
After a lot of googling, all i can find that this applies to is when trying to use enum-type datatypes as bit-vector flags, or when use designers to make an expandable property in the property tool-window. However, NEITHer of these cases apply to my page. This is only happening on one page in the project. But the stack trace of the error (included at the end) gives me no hint of where to even start looking to fix it, of WHAt exactly might be wrong with the page.
Thanks in advance, - Arthur Dent.
=============== =============== =============== ======
<stackTrace> [HttpException (0x80004005): Unable to generate code for a value of type 'System.Web.UI. Page'. This error occurred while trying to generate the property value for Page.]
System.Web.Comp ilation.CodeDom Utility.Generat eExpressionForV alue(PropertyIn fo propertyInfo, Object value, Type valueType) +2369
System.Web.Comp ilation.Templat eControlCompile r.BuildBuildMet hod(ControlBuil der builder, Boolean fTemplate, PropertySetterE ntry pse) +2545
System.Web.Comp ilation.Templat eControlCompile r.BuildSourceDa taTreeFromBuild er(ControlBuild er builder, Boolean fInTemplate, PropertySetterE ntry pse) +794
System.Web.Comp ilation.Templat eControlCompile r.BuildSourceDa taTreeFromBuild er(ControlBuild er builder, Boolean fInTemplate, PropertySetterE ntry pse) +352
System.Web.Comp ilation.Templat eControlCompile r.BuildSourceDa taTreeFromBuild er(ControlBuild er builder, Boolean fInTemplate, PropertySetterE ntry pse) +352
System.Web.Comp ilation.Templat eControlCompile r.BuildSourceDa taTreeFromBuild er(ControlBuild er builder, Boolean fInTemplate, PropertySetterE ntry pse) +352 System.Web.Comp ilation.Templat eControlCompile r.BuildMiscClas sMembers() +51 System.Web.Comp ilation.PageCom piler.BuildMisc ClassMembers() +9 System.Web.Comp ilation.BaseCom piler.BuildSour ceDataTree() +1279 System.Web.Comp ilation.BaseCom piler.GetCompil edType() +129 System.Web.UI.P ageParser.Compi leIntoType() +59 System.Web.UI.T emplateParser.G etParserCacheIt emThroughCompil ation() +126
[HttpException (0x80004005): Unable to generate code for a value of type 'System.Web.UI. Page'. This error occurred while trying to generate the property value for Page.] System.Web.UI.T emplateParser.G etParserCacheIt emInternal(Bool ean fCreateIfNotFou nd) +692 System.Web.UI.T emplateParser.G etParserCacheIt emWithNewConfig Path() +125 System.Web.UI.T emplateParser.G etParserCacheIt em() +88 System.Web.UI.T emplateControlP arser.CompileAn dGetParserCache Item(String virtualPath, String inputFile, HttpContext context) +116 System.Web.UI.T emplateControlP arser.GetCompil edInstance(Stri ng virtualPath, String inputFile, HttpContext context) +36 System.Web.UI.P ageParser.GetCo mpiledPageInsta nceInternal(Str ing virtualPath, String inputFile, HttpContext context) +43 System.Web.UI.P ageHandlerFacto ry.GetHandler(H ttpContext context, String requestType, String url, String path) +44 System.Web.Http Application.Map HttpHandler(Htt pContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +699
System.Web.MapH andlerExecution Step.System.Web .HttpApplicatio n+IExecutionSte p.Execute() +95 System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean& completedSynchr onously) +173 </stackTrace> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jtsree |
last post by:
i am using Visual Studio.net professional 2003 (VisualBasic.net).I am
building a very very simple project where i need to connect to Microsoft
access database through OledbDataAdapter in design mode by Dragging the
OledbDataAdapter Control from the Data tab on the ToolBox and then generate
the DataSet.
I am able to connect to MS ACCESS and test connection is succedded.Now when
i try to generate the Dataset by Right Clicking The Data...
|
by: jtsree |
last post by:
I am Using (Windows XP) Visual Studio.net 2003 professional edition working
on VB.net language.
I am bulding a very very simple project in VB.net where i connect to Access
Database by dragging OledbDataAdapter tool from the Data tab of the Toolbox.
When OledbDataAdapter has been added to the Component tray i am able to
generate a connection to Access database and generate Connection object and
also the Test Connection has Succeeded.
Now...
|
by: Chris Bower |
last post by:
Reposted from aspnet.buildingcontrols:
Ok, I've got a bunch of derived controls that all have a property Rights of
type Rights (Rights is an Enumerator). I wrote a custom TypeConverter so
that I can use comma separated values in design-time. The TypeConverter
works great in design-time. It converts to and from just fine... However,
when I try to load any page in the site now I get the following error
(Following the error is code for the...
|
by: Prashant Bhuptani |
last post by:
Hi Guys,
I am trying to use a C++ dll in VB.NET code.
I have imported the dll in the following manner:
<code>
Imports System.Runtime.InteropServices
|
by: kent.anderson |
last post by:
I am getting the following error when attempting to generate C# proxy
code with the wsdl.exe tool:
Error: Unable to import binding 'XtractSoapBinding' from namespace
'http://xtrac
t.ca/2003/xtract'.
- Unable to import operation 'GetLists'.
- The element 'http://xtract.ca/2003/xtract:protocolVersion' is
missing.
I get the same error when trying to add the web service as a web
reference to my C# project.
| |
by: kent.anderson |
last post by:
I am getting the following error when attempting to generate C# proxy
code with the wsdl.exe tool:
Error: Unable to import binding '...' from namespace
'...'.
- Unable to import operation '...'.
- The element '...' is missing.
* I have removed the name of the web service, operation and element for
privacy reasons.
|
by: Abi |
last post by:
We able to generate this error in our test environment and were able to
research this enough to understand that the issue is NOT with an abject that
needs to be serialized but rather as the stack trace suggests that the
server (in the web farm) ran out of memory while attempting to stream data
to an ASP Session State database (SQL Server 2000) .
Our test environment consists of:
- 3 web servers Load Balanced
- SQL Server 2000 Database...
|
by: UJ |
last post by:
I've got a web service that is giving me back this error message. The
directory is Windows\Temp and I have given everybody complete access to this
directory and am still getting the error.
Any suggestions?
TIA - Jeff
|
by: =?Utf-8?B?RGFuTQ==?= |
last post by:
Can someone help with the following problem. I am sending an encrypted SOAP
message to a .NET 2.0 + WSE 3.0 web service. When .NET attempts to decrypt
the message it cannot read the private key of the X509 token it requires (or
so it says). I have followed the instructions in the error message and given
the userid full access to the certificate. I have also tried running .NET
under my administrators userid which was used to create the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |