Massimo Prota's BLog

Nothin' but .NET
posts - 46, comments - 53, trackbacks - 10

My Links

News

View Massimo Prota's profile on LinkedIn

Archives

Post Categories

Blogs

Links

Intellisense nel web.config - l'anti feature

Come appena riportato da Giorgio e già riportato su LadyBug ci si può trovare a non avere una delle nuove feature offerte da Visual Studio 2005: quello di cui parlo è l'intellisense modificando il file web.config di una web application.
La causa di questa anti-feature è l'attributo xmlns che viene inserito sull'elemento configuration del file

<configuration xmlns = " http://schemas.microsoft.com/.NetConfiguration/v2.0 " >

che vi ridurrà le scelte dell'intellisense a questi elementi

eliminando questo attributo invece

Il problema è che il Web Site Administration Tool va ad aggiungere nuovamente questo attributo ogni volta che viene lanciato per la nostra applicazione, costringendoci ogni volta a doverlo rimuovere manualmente. Per risolvere questo problema (baco??) possiamo andare ad agire sui sorgenti del tool, visto che ci sono resi disponibili e si trovano all'interno della cartella %windir%\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles
Il punto incriminato si trova all'interno del metodo SaveConfig nel file WebAdminPage.cs contenuto nella cartella App_Code.Qui ci sarà sufficiente modificare la seconda riga del metodo cambiando banalmente la riga

config.NamespaceDeclared = true;    //errato

con

config.NamespaceDeclared = false ;   //corretto

Per chi è pigro (e si fida) qui può trovare il file già corretto da sostituire nella cartella %windir%\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles\App_Code

Print | posted on mercoledì 23 novembre 2005 2.23 |

Feedback

Gravatar

# re: Intellisense nel web.config - l'anti feature

Bravo, mi hai preceduto nella ricerca di una patch :)
ciao!
23/11/2005 14.22 | Giorgio Sardo
Gravatar

# re: Intellisense nel web.config - l'anti feature

bravo!
23/02/2007 11.24 | Pozycjonowanie
Gravatar

# re: Intellisense nel web.config - l'anti feature

your tip worked excellent! I saw it on Scott Gu's blog, you seem to be the only smart one there! Thanks again!
14/05/2007 3.37 | KC-USA
Gravatar

# re: Intellisense nel web.config - l'anti feature

Grande! grazie mille mi hai salvato uno sbattimento!
14/05/2007 17.10 | Gio
Gravatar

# re: Intellisense nel web.config - l'anti feature

n lo so
26/07/2007 4.56 | boh
Gravatar

# re: Intellisense nel web.config - l'anti feature

It’s very good article. Great site with very good look and perfect information.
01/09/2007 22.43 | Pendrive
Gravatar

# re: Intellisense nel web.config - l'anti feature

your tip worked excellent
09/09/2007 16.02 | Sd card
Gravatar

# re: Intellisense nel web.config - l'anti feature

Worked out great for me, thank you ver much!
04/10/2007 21.15 | Tom
Gravatar

# re: Intellisense nel web.config - l'anti feature

Very nice!
04/12/2007 17.24 | emo
Gravatar

# re: Intellisense nel web.config - l'anti feature

Interesting article!
Thanks
08/12/2007 14.52 | Programy
Gravatar

# re: Intellisense nel web.config - l'anti feature

Great site with very good look and perfect information.
13/01/2008 11.19 | automotive repair manual
Gravatar

# re: Intellisense nel web.config - l'anti feature

Thanks for the article
14/01/2008 21.35 | kral oyun
Gravatar

# # re: Intellisense nel web.config - l'anti feature

great post and discussion!!!
22/01/2008 10.39 | alveo
Gravatar

# re: Intellisense nel web.config - l'anti feature

Interesting article!
Thanks...
19/03/2008 21.20 | Opony
Gravatar

# re: Intellisense nel web.config - l'anti feature

Keep up the good work.
24/03/2008 15.45 | Gry
Gravatar

# re: Intellisense nel web.config - l'anti feature

muchas gracias
22/04/2008 6.56 | ventrilo hosting
Gravatar

# re: Intellisense nel web.config - l'anti feature

Hello
Very nice!
24/07/2008 14.10 | Prezenty
Gravatar

# re: Intellisense nel web.config - l'anti feature

Bravo, mi hai preceduto nella ricerca di una patch!! :)
14/09/2008 2.45 | Oyun
Gravatar

# re: Intellisense nel web.config - l'anti feature

I'm guessing the only way to do this in Javascript would be to use the onresize event, and then using the resizeTo method to attempt to keep the window at the size you want?
16/11/2008 17.25 | Estetik
Gravatar

# re: Intellisense nel web.config - l'anti feature

For those of you thinking that if they implement this it will eliminate some of the waiting and lines…
23/11/2008 5.35 | Estetik
Gravatar

# Abilitare l'intellisense sulle custom section | hilpers

Abilitare l'intellisense sulle custom section | hilpers
23/01/2009 6.54 | Pingback/TrackBack
Gravatar

# re: Intellisense nel web.config - l'anti feature

Thanks a lot for writing it.

27/05/2009 21.58 | sohbet
Gravatar

# re: Intellisense nel web.config - l'anti feature

thanks for post.
27/05/2009 22.17 | sohbet
Gravatar

# Cialis forum.

Cialis fedex. Online pharmacy buy cialis. Cialis 20mg. Cialis how it works. Cialis.
03/06/2009 23.55 | Buy cialis.
Gravatar

# Vicodin.

Overseas vicodin.
Gravatar

# re: Intellisense nel web.config - l'anti feature

I like very much the writings and pictures and explanations in your adress so I look forward to see your next writings. I congratulate you.
05/06/2009 17.22 | sohbet
Gravatar

# re: Intellisense nel web.config - l'anti feature

I’m really very useful to follow a long-time see this as a blog here Thank you for your valuable information.
09/06/2009 15.35 | sohbet
Gravatar

# re: Intellisense nel web.config - l'anti feature

Thanks for the theme. I will just still have to get a different header image.

12/06/2009 21.09 | sohbet
Gravatar

# re: Intellisense nel web.config - l'anti feature

Thank you. You have helped someone more than you could know.
24/06/2009 15.21 | sohbet
Gravatar

# re: Intellisense nel web.config - l'anti feature

Thank you .
02/07/2009 18.50 | tolga

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 1 and 5 and type the answer here:

Powered by: