CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 11/6/2006 4:12:04 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 16 Views: 17 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
17 Items, 1 Pages 1 |< << Go >> >|
thejuan
Asp.Net User
Designer generates invalid signature11/6/2006 4:12:04 AM

0/0

My wording of this question has not turned up any search results, so forgive me if this has been covered.

The auto-generated aspx.designer.cs generates fields for our user controls as type usercontrol instead of the correct concrete type.

ie

 protected ...UserControl ctrlMyControl;

instead of

protected ...MyControl ctrlMyControl;

I think it is because we declare our tag prefixes in the web.config like so:

<

pages>
<
controls>
<add src="~/UserControls/MyControl.ascx" tagName="MyControl" tagPrefix="CompanyY"/>

 instead of in every page. Is this by design? ie is the not supported?

 

Thanks 

 

albertpascual
Asp.Net User
Re: Designer generates invalid signature11/6/2006 4:49:28 AM

0/0

Drag and drop the control into the designer not the source and will work, will add the tags as well.

I don't know why does not work when you are in source, something that an MVP can answer for us!


Cheers
Al

My Blog
Please click on 'Mark as Answer' if this post answered your question!
thejuan
Asp.Net User
Re: Designer generates invalid signature11/7/2006 1:20:56 AM

0/0

It doesn't just happen when the control is added.
Anytime I modify the source, the designer class gets regenerated and it get's messed up.

albertpascual
Asp.Net User
Re: Designer generates invalid signature11/7/2006 1:28:57 AM

0/0

Wow, something very wrong in your set up. Hope somebody can shine some light in this problem, but you should report that as a bug
Cheers
Al

My Blog
Please click on 'Mark as Answer' if this post answered your question!
thejuan
Asp.Net User
Re: Designer generates invalid signature11/8/2006 3:01:47 AM

0/0

I set up a quick test to ensure it was nothing else.
New Web Application Project (not web site)
drop a Usercontrol in default.aspx, (goes in fine as it drops in a register tag instruction)
delete the instruction
modify the web.config to add that tag prefix

Modify default.aspx and the problem occurs.

My question now is where is the generator that gens the desginer code?
How do i go about raising issues with it?

albertpascual
Asp.Net User
Re: Designer generates invalid signature11/8/2006 3:15:55 AM

0/0

Why are you registering the tag on the web.config if you don't mind asking?
Cheers
Al

My Blog
Please click on 'Mark as Answer' if this post answered your question!
thejuan
Asp.Net User
Re: Designer generates invalid signature11/9/2006 12:36:21 AM

0/0

Easier maintenance. We have a number of UserControl libraries that get merged into different applications.
If we reshuffle namespaces or location of the controls changing the declaration in a centralised place is much more enjoyable. :)

That said... we don't so much as we recently found out you could and are starting to. :)

albertpascual
Asp.Net User
Re: Designer generates invalid signature11/9/2006 2:05:29 AM

0/0

 

That said... we don't so much as we recently found out you could and are starting to. :)

Makes sense Smile


Cheers
Al

My Blog
Please click on 'Mark as Answer' if this post answered your question!
nfox
Asp.Net User
Re: Designer generates invalid signature11/9/2006 7:27:51 PM

0/0

I'm having the same issue. 

 Unfortunately, if you add the register tag to the page along with the entry in the web.config then updates to the page do not show up in the page.Designer.vb file at all.  If I remove the entry from web.config and keep the register of the control in the page then the generated control variable is typed as desired.  Having the types remain UserControl is unworkable.  I'm thinking I might create a readonly property in the class which casts the control to the proper type, but this would be a bit of a bummer to always have to do.  I can't think of a better way around this.


thejuan
Asp.Net User
Re: Designer generates invalid signature11/15/2006 10:59:23 PM

0/0

<Bump>

I'd like to raise this as a bug but not sure whether it is to do with the Web Project Extension or VS itself?
I imagine it is in the Code Generator but not sure which component that ships with?

ScottGu
Asp.Net User
Re: Designer generates invalid signature11/27/2006 4:29:43 AM

0/0

There are cases when the designer can't infer the base class of a user-control with VS 2005 Web Application Projects - in which case it just generates a field declaration in the code-behind of the page as type "UserControl".

To get a strongly-typed declaration of the user-control with it registered in the web.config file, you can manually add the declaration to your code-behind class (not the .designer class) of the type you want (which is typically the UserControl code-behind class name).  For example (in C#) add this to your code-behind class (and not the .designer.cs file):

    protected MyControl ctrlMyControl;

Once you do this the designer will pick this up and use it as the field declaration and you'll get full intellisense. 

Hope this helps,

Scott

thejuan
Asp.Net User
Re: Designer generates invalid signature11/27/2006 4:49:01 AM

0/0

Thanks, that will make life easier. :)

Can you shed any light on why the designer can't infer the base type?
What sort of things can cause this behaviour?

ScottGu
Asp.Net User
Re: Designer generates invalid signature11/27/2006 4:56:45 AM

0/0

It depends -- sometimes it can happen if the site isn't in a buildable state at the time you add the controls (this primarily happens if the controls are themselves part of the project - and not in a separate assembly which has already been built). 

The tip I gave above, though, works regardless of whether the site is buildable or not. :-)

Thanks,

Scott

albertpascual
Asp.Net User
Re: Designer generates invalid signature11/27/2006 4:04:18 PM

0/0

Scott,

Would this bug be fixed on SP1?


Cheers
Al

My Blog
Please click on 'Mark as Answer' if this post answered your question!
ScottGu
Asp.Net User
Re: Designer generates invalid signature11/27/2006 8:56:12 PM

0/0

Hi Albert,

I actually just checked with the feature team, and it looks like they did specifically fix an issue in SP1 related to this.  It should make it much less likely for you to need to add the typed controls to the code-behind file.

Hope this helps,

Scott

albertpascual
Asp.Net User
Re: Designer generates invalid signature11/27/2006 9:03:30 PM

0/0

Thank you sir for taking the time to answer my question. I'll be looking forward that change. I did download the Beta version of the SP1 and didn't fix the problem, there is any new release soon?

Again, thanks so much for your time, and sorry I missed you in Vegas!

 


Cheers
Al

My Blog
Please click on 'Mark as Answer' if this post answered your question!
timmcb
Asp.Net User
Re: Designer generates invalid signature11/28/2006 6:52:03 PM

0/0

This is correct.  I put a fix in the SP1 beta that addresses this exact problem.  If that doesn't fix it, I would guess there is an additional problem resolving the virtual path in web.config to the physical path of the .ascx file.  It would be interesting to know the following:

1) What is the physical root of the WAP?
2) Where is the physical location of the user control .ascx file?
3) Have any virtual directories been added to access the user control?
4) What is the virtual path used in web.config?
5) Are you using the vs web server or or iis?  (Only under IIS can we correctly navigate virtual directories to locate .ascx files)


Tim McBride

This posting is provided "AS IS" with no warranties, and confers no rights.
17 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Information Security: 5th International Conference, ISC 2002, Sao Paulo, Brazil, September 30-October 2, 2002 : Proceedings Authors: Agnes Hui Chan, Virgil D. Gligor, Pages: 502, Published: 2002
Applied Cryptography and Network Security: First International Conference, ACNS 2003, Kunming, China, October 16-19, 2003 : Proceedings Authors: Jianying Zhou, Moti Yung, Yongfei Han, Pages: 436, Published: 2003
Computational Science and Its Applications, ICCSA 2003: International Conference, Montreal, Canada, May 18-21, 2003 : Proceedings Authors: Vipin Kumar, Pages: 942, Published: 2003
Proceedings, 1988 IEEE Symposium on Security and Privacy: April 18-21, 1988, Oakland, California Authors: IEEE Symposium on Security, IEEE Computer Society Technical Committee on Security and Privacy, IEEE Computer Society, Privacy, International Association for Cryptologic Research, Technical Committee on Security and Privacy, IEEE Computer Society..Technical Committee on Security, International Association for Cryptologic Research., Pages: 257, Published: 1988
Financial Cryptography: 7th International Conference, FC 2003, Guadeloupe, French West Indies, January 27-30, 2003 : Revised Papers Authors: Rebecca N. Wright, Pages: 320, Published: 2003
Wireless Mesh Networks: Architectures and Protocols Authors: Ekram Hossain, Kin Leung, Pages: 333, Published: 2008
Information Security Applications: 8th International Workshop, WISA 2007, Jeju Island, Korea, August 27-29, 2007, Revised Selected Papers Authors: Sehun Kim, Moti Yung, Hyung-Woo Lee, Pages: 388, Published: 2007
Systems Troubleshooting Handbook Authors: Luces M. Faulkenberry, Pages: 415, Published: 1986
Non-Cooperative Byzantine Failures: A New Framework for the Design of Efficient Fault Tolerance Protocols Authors: Asif Masum, Pages: 220, Published: 2000
Formal Aspects of Security: First International Conference, FASec 2002 : London, UK, December 16-18, 2002 : Revised Papers Authors: Ali E. Abdallah, Peter Ryan, Steve A. Schneider, Pages: 238, Published: 2002

Web:
generatersasigcode | Channel 9 Apr 30, 2008 ... Generate an RSA signature of a given message (C#) .... Perhaps the single most important design consideration in a secure communication .... for MSG%3a the quick brown dog jumped over the lazy fox Invalid signature. ...
Non-interactive Designated Confirmer Signature with Specific Verifier tempts have been made to design efficient and secure DCS. schemes [11,17–19,24, 25]. Such scheme provides several .... the signer can generate a valid DCSSV signature. Security .... of accepting it as valid (invalid) signature with non- ...
'Re: [PyKDE] pyuic4 generates invalid code for showDropIndicator ... [next in thread] List: pykde Subject: Re: [PyKDE] pyuic4 generates invalid code ... to true for a QTreeView in Qt > Designer, pyuic4 generates the code > self. ... get the actual buddy yet ["signature.asc" (application/pgp-signature)] ...
Assignment #3 generated certificate with the invalid signature ... as B that ϵ-breaks DDH in G . (your goal is to design algorithm A for DDH in G that ...
Information Sciences : Security reconsideration of the Huang–Wang ... Meanwhile he cannot deny any signature that he has generated, ... theoretical interest, but it also affects the design of applications in many aspects. .... Note that the invalid signature is not able to be confirmed by the nominee to ...
.NET csharp Property assignment causes strange designer-generated code These are the compiletime errors: Error 1 Invalid Resx file. ... These errors appeared because of this designer-generated statement in MainForm. ... constructor with a signature constructor(SerializationInfo information, ...
Scan tests tolerant to indeterminate states when employing ... The signature generator generates a test signature representative of the scan ... into an invalid state, consequently rendering the scan chain signature ...
Programming With the Java XML Digital Signature API « Codebackup’s ... This API allows you to generate and validate XML signatures. ..... The code in Code Sample 6 determines the cause of an invalid signature as one of two possibilities: .... Common Web Design Mistakes Prevent Google From Indexing ...
Czech cryptologists discover bug in OpenPGP format Mar 27, 2001 ... It is obvious that every file with an invalid signature has to be ... They strongly appeal for very careful design of cryptographic systems. ...
S/MIME WG Sean Turner, IECA Internet Draft Jim Schaad, Soaring ... Mar 11, 2008 ... In the following scenario: a signer generates a SignedData with two ... of the ' strong' algorithm results in an invalid signature. See section 5 for further processing. 2.1. Attribute Design Requirements The attribute will have the ... Multiple Signature Indication The multiple-signatures attribute ...




Search This Site:










bug: not all depencies honor "copy local"

newbie help with structuring web application project

what's the different of web application projects and web deployment projects ?

chose 2005 or 2003 project model

publish rebuild is missing projects in solution

studio automatically converting wap to web site

how to convert a standard vs 2005 project into a web application project

compilation error - [no relevant source lines]

adding custom webcontrol adds assembly to web.config

vs2005 web project error

multithreading in asp.net large application with remoting

erro : login failed for user '(null)'. reason: not associated with a trusted sql server connection

startup performance of wap project

adding wap project's "primary output" to web setup project.

eaccessviolation error on my web application

multiple app_data folders under 1 web, vs2005 doesnt see them

web application project/web site project

problem creating wap after sp1 installed

another (little) masterpage problem

web form dilemma

adding content while debugging

why are event handlers wired up in the aspx/ascx page?

debugging madness with multiple sites

set thelocation of solution

copy web site tool blunder !!!

webapp project and webresource.axd issue

wap (web application project) and resources

list box and ajax flyout menu

relatedfiles for webapp project

problem after renaming aspnetdb

  Privacy | Contact Us
All Times Are GMT