Showing posts with label microsoft. Show all posts
Showing posts with label microsoft. Show all posts

Saturday, March 31, 2012

The ASP.NET FAQ...

Welcome to the ASP.NET FAQ.
Thank you for reading this FAQ!
Use it to improve your online experience.
The Microsoft Public Newsgroups allow users of Microsoft products to exchang
e technical
information and expertise. Please avoid personal attacks, slurs and profanit
y in your posts.
A FAQ is a list of Frequently Answered Questions;
This is a guide to using this newsgroup intelligently in order to find answe
rs to your ASP.NET questions.
The kind of answer you get to your questions depends on the way
you ask the questions as well as on the difficulty of writing the answer.
This FAQ will show you how to ask questions in a way that is likely to get y
ou the answer you want to get : the right answer.
You have to do your part, too, if this is going to work out in such a way
that you *learn* what you need to learn, instead of getting ready-made answe
rs
which you will promptly forget and need to ask for them again.
With that in mind, the first FAQ recommendation is that you use search engin
es
to find out if the question you intend to ask has been already answered in n
ewsgroups.
Use resources like :
Google Groups Advanced Search ( http://groups.google.com/advanced_g...://www.msn.com/ )
to search for the text of the problem which is stumping you,
and save everybody the waste of time that asking a FAQ entails.
Remember : thousands of programmers will read your post. Be considerate of t
heir time.
1. General ASP.NET Questions
1.1 What is ASP.NET?
ASP.NET is a technology for creating dynamic Web pages which uses the ..Net
Framework.
You can author applications in any .NET compatible language, including Visua
l Basic .NET,
C#, and JScript .NET, and many others listed at http://www.dotnetpowered.com/langu
ages.aspx .
1.2 Where can I get ASP.NET?
You can get ASP.NET by installing the Microsoft .NET Framework on a computer
which has IIS installed.
The .NET Framework is available in either a redistributable or SDK format.
ASP.NET 2.0, currently in Beta, will be released the first w in November,
2005.
1.3 I've installed the .NET Framework, but ASP.NET doesn't seem to work.
What can I do to fix it?
You must install IIS before you install the .NET Framework.
If you install IIS after you install the .NET Framework,
you must then register the ASP.NET extensions with IIS.
You can do this by running the aspnet_regiis executable from:
%windows root directory%\Microsoft.NET\Framework\%version of the .NET Framew
ork%\aspnet_regiis -i
Where %windows root directory% is the directory Windows is installed to
(normally c:\windows or c:\winnt) and %version of the .NET Framework%
is the version of the .NET Framework you have installed.
The directory for .NET 1.0 is v1.0.3705 ; for 1.1 it's v1.1.4322 and for Bet
a 2, it's v2.0.50215.
It's always a good idea to try to find the answer to your question by readin
g the documentation.
Yes, Read The Manual! The ASP.NET Quickstarts have many answers and samples.
You can install a local copy of the QuickStarts by installing the ASP.NET SD
K.
The ASP.NET 1.1 SDK is available at :
http://www.microsoft.com/downloads/...&displaylang=en
The ASP.NET 2.0 SDK comes with the VS.NET Beta :
http://lab.msdn.microsoft.com/vs2005/
If you can't install local copies of the ASP.NET QuickStart,
the ASP.NET 1.1 QuickStart is available online at :
http://www.asp.net/Tutorials/quickstart.aspx
The ASP.NET 1.1 Starter Kits are available at :
http://www.asp.net/Default.aspx?tabindex=8&tabid=47
The ASP.NET 2.0 QuickStart is available online at :
http://beta.asp.net/quickstart/aspnet/Default.aspx
The ASP.NET Beta 2 Starter Kits are available at :
http://www.asp.net/vwd/starterkits...ndex=4&tabId=46
Always try to find an answer by experimenting with the code.
The .NET Framework Class Browser is of great assistance to help you do this.
The .NET Framework 1.1 Class Browser is available at :
http://www.dotnetjunkies.com/sample...assBrowser.aspx
and also at :
http://www.csharpfriends.com/quicks...
er.aspx
The .NET Framework 2.0 Class Browser is available at :
http://beta.asp.net/quickstart/util/classbrowser.aspx
MSDN has all the ASP.NET documentation and Knowledge Base articles online.
Search MSDN for ASP.NET and .Net Framework questions at: http://msdn.microsoft.com
/netframework/
Search the MSDN Visual Studio Beta 2 documentation at: http://msdn2.microsoft.com/
library/default.aspx
2. Newsgroup Questions
2.1 What subjects are appropriate in this newsgroup?
Any subject which relates to programming, installing or configuring ASP.NET.
Please don't post questions unrelated to ASP.NET.
ASP.NET is not the same as ASP. If you have questions relating to "Classic A
SP",
post them in the ASP newsgroups, e.g. microsoft.public.inetserver.asp.genera
l.
We encourage the posting of links to free ASP.NET controls/assemblies you ha
ve developed,
but request that commercial product availabilities be sent to :
microsoft.public.dotnet.framework.aspnet.announcements
Otherwise, your post will be deleted as SPAM.
2.2 How to write your post
a. Make the "Subject" a short, relevant summary of your problem
b. Make sure you describe your problem accurately.
Please post the exact code which is failing/generating your error.
That will help others find the solution to your problem.
c. Deal with one problem at a time.
If you have more than one problem, post it separately.
d. Make sure you include the version of ASP.NET and the
operating system you are using. This *really* helps others help you!
If the problem is a browser-related problem, include the relevant
browser identity and operating system information.
e. If you are getting an error message, include the error number and its tex
t.
f. Tell us what you have already tried to do to solve the problem.
2.3 How not to write your post
a. Avoid cross-posting, unless your problem applies to more than one newsgro
up.
b. Never post identical messages with different subjects.
This is a sure way to get your posts ignored.
c. Don't post your message in ALL CAPITALS. It's very hard to read.
This is another sure way to get your posts ignored.
d. Don't use unclear subject lines which don't summarize a problem, like the
se:
HEEEELLLLPPP!!!!!
Need help please.
Any experts here?
This is yet another sure way to get your posts ignored.
e. Don't ask for an email reply. The basis for peer-to-peer help newsgroups
like this one is for *everybody* to be helped by the answers provided.
f. Don't flame anyone, period. Nobody needs that in technical newsgroups.
If something, or someone, irks you, ignore the post.
Please treat all participants with respect, valuing divergent views and cont
rary opinions.
Be polite. Share your perspectives to question ideas and stimulate interesti
ng discussions.
g. The ASP.NET newsgroups, like all Microsoft public ng's, are unmoderated.
From time to time, there will be totally off-topic posts from trolls, spamme
rs,
pornographers, etc. Please don't reply to these posts, as it's a waste of ti
me.
Instead, killfile the poster if the post bothers you.
Microsoft has an anti-spam program in effect, and spam messages
are eliminated by a community program, but it's difficult to detect
some SPAM messages. Have patience and don't reply to any SPAM message.
We will get to it, and delete it.
2.4 Dealing with replies to your post
a. Trim unnecessary text from the replies to your posts, leaving just enough
to
get the context of the reply and the original problem. This is greatly
appreciated by the people who are trying to help you, since it saves them ti
me.
b. Analyze the suggestion you were given, and test to see whether it solves
the problem.
c. If the problem isn't solved by the suggestion, explain why in a follow-up
reply.
2.5 After you get your answer...
a. Confirm whether the proposed solution worked or not.
b. Thank the poster who gave you the answer to your question.
For people who spend their free time, unpaid, helping others in
peer-to-peer newsgroups, there's nothing better than to get a "Thank you".
ASP.NET links :
Learning ASP.NET : http://msdn.microsoft.com/asp.net/learn/
ASP.NET Developer Center : http://msdn.microsoft.com/asp.net/
ASP.NET Developer Center Archive : http://msdn.microsoft.com/asp.net/a...
lt.aspx
ASP.NET Forums : http://forums.asp.net/ ( Online ASP.NET Forum )
ASP.NET 1.1 Support Center : http://support.microsoft.com/ph/6351
ASP.NET Security Practices : http://msdn.microsoft.com/library/e...actices0001.asp
ASP.NET Security How Tos : http://msdn.microsoft.com/library/e...HowTosIndex.asp
ADO.NET Support Center : http://support.microsoft.com/adonet
SQL Server Developer Center : http://msdn.microsoft.com/SQL/
IIS Tips and Hints : http://www.asp.net/Default.aspx?tabindex=9&tabid=48
Please ask VS2005 questions at http://forums.microsoft.com/msdn/ , and not i
n this ASP.NET newsgroup.
ASP.NET 2.0 questions can be posted either here or at : http://forums.asp.net/defa
u...ForumGroupID=26
Official FAQs and Developer Resources :
ASP.NET Beta 2 FAQ : http://msdn.microsoft.com/asp.net/b...m/netframework/
VB Developer Center : http://msdn.microsoft.com/vbasic/
C# Developer Center : http://msdn.microsoft.com/vcsharp/
J# Developer Center : http://msdn.microsoft.com/vjsharp/
New ASP.NET Developer? See : http://msdn.microsoft.com/asp.net/l...opm
ent/
Free Learning Courses from Microsoft : http://lab.msdn.microsoft.com/vs2005/learni
ng/
Selected MSDN Technical Articles on ASP.NET : http://msdn.microsoft.com/asp.net/a...es/default.aspx
Full Index to MSDN ASP.NET articles : http://msdn.microsoft.com/asp.net/a... />
fault.aspx
Free Online Book : Improving .Net Application Performance and Scalability:
http://msdn.microsoft.com/library/e...ml/scalenet.asp
Dedicated ASP.NET newsgroups at msnews.microsoft.com ( Microsoft's public nn
tp server ):
microsoft.public.dotnet.framework.aspnet
microsoft.public.dotnet.framework.aspnet.security
microsoft.public.dotnet.framework.aspnet.caching
microsoft.public.dotnet.framework.aspnet.webservices
microsoft.public.dotnet.framework.aspnet.buildingcontrols
microsoft.public.dotnet.framework.aspnet.webcontrols
microsoft.public.dotnet.framework.aspnet.datagridcontrol
microsoft.public.dotnet.framework.aspnet.announcements
The general .NET Framework newsgroup is : microsoft.public.dotnet.framework
The ADO.Net newsgroup is : microsoft.public.dotnet.framework.adonet
The newsgroups for SQL Server and MSDE are :
microsoft.public.sqlserver.server and microsoft.public.sqlserver.msde
If you have a question which would fit better at one of the
above newsgroups, consider posting it in the appropiate one(s).
You can also use the HTML interface to the Microsoft Discussion Groups :
http://www.microsoft.com/communitie...us/default.aspx
Other FAQs and Developer Resources :
Connection Strings : http://www.connectionstrings.com/
SQL Server Forums : http://www.webservertalk.com/
DotNetJunkies : http://www.dotnetjunkies.com/
W3Schools ASP.NET Tutorial : http://www.w3schools.com/aspnet/default.asp
Egghead Cafe : http://www.eggheadcafe.com/default.asp
.Net Framework FAQ : http://www.andymcm.com/dotnetfaq.htm
C# FAQ : http://www.andymcm.com/csharpfaq.htm
Free eBook : VB.NET Fundamentals, Sheriff and Getz :
http://platform.innerworkings.com/p...undamentals.msi
ASP.NET Version Switcher : http://www.denisbauer.com/NETTools/...e
r.aspx
We are working on a FAQ for specific programming questions.
When it's ready, we will include a link to it in this FAQ.
The online version of this FAQ is at http://asp.net.do/faq/Good article! will this be reposted regularly (so that new readers will see
it also?)
An addition to 2.5 b:
It's not only nice to get a "thank you", it is also helpful to others readin
g
about this problem: they see that the solution *did* work.
Other C# articles + newsgroup FAQ: http://www.yoda.arachsys.com/csharp/
Hans Kesting
re:
> Good article!
Thank you. I've been working ( a lot ) on it... ;-)
re:
> will this be reposted regularly (so that new readers will see it also?)
Yes!
I will post it again in about 15 days,
and then plan to post it once a month.
Thank you for your suggestions.
The C# + FAQ link is very good.
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================
"Hans Kesting" <news.2.hansdk@dotnet.itags.org.spamgourmet.com> wrote in message
news:uSzwbfWrFHA.3720@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
> Good article! will this be reposted regularly (so that new readers will se
e it also?)
> An addition to 2.5 b:
> It's not only nice to get a "thank you", it is also helpful to others read
ing
> about this problem: they see that the solution *did* work.
> Other C# articles + newsgroup FAQ: http://www.yoda.arachsys.com/csharp/
> Hans Kesting

The ASP.NET FAQ...

Welcome to the ASP.NET FAQ.

Thank you for reading this FAQ!
Use it to improve your online experience.

The Microsoft Public Newsgroups allow users of Microsoft products to exchange technical
information and expertise. Please avoid personal attacks, slurs and profanity in your posts.

A FAQ is a list of Frequently Answered Questions;
This is a guide to using this newsgroup intelligently in order to find answers to your ASP.NET questions.

The kind of answer you get to your questions depends on the way
you ask the questions as well as on the difficulty of writing the answer.

This FAQ will show you how to ask questions in a way that is likely to get you the answer you want to get : the right answer.

You have to do your part, too, if this is going to work out in such a way
that you *learn* what you need to learn, instead of getting ready-made answers
which you will promptly forget and need to ask for them again.

With that in mind, the first FAQ recommendation is that you use search engines
to find out if the question you intend to ask has been already answered in newsgroups.

Use resources like :

Google Groups Advanced Search ( http://groups.google.com/advanced_group_search )
MSN Search ( http://www.msn.com/ )

to search for the text of the problem which is stumping you,
and save everybody the waste of time that asking a FAQ entails.

Remember : thousands of programmers will read your post. Be considerate of their time.

1. General ASP.NET Questions

1.1 What is ASP.NET?

ASP.NET is a technology for creating dynamic Web pages which uses the ..Net Framework.

You can author applications in any .NET compatible language, including Visual Basic .NET,
C#, and JScript .NET, and many others listed at http://www.dotnetpowered.com/languages.aspx .

1.2 Where can I get ASP.NET?

You can get ASP.NET by installing the Microsoft .NET Framework on a computer which has IIS installed.
The .NET Framework is available in either a redistributable or SDK format.

ASP.NET 2.0, currently in Beta, will be released the first week in November, 2005.

1.3 I've installed the .NET Framework, but ASP.NET doesn't seem to work.
What can I do to fix it?

You must install IIS before you install the .NET Framework.

If you install IIS after you install the .NET Framework,
you must then register the ASP.NET extensions with IIS.

You can do this by running the aspnet_regiis executable from:
%windows root directory%\Microsoft.NET\Framework\%version of the .NET Framework%\aspnet_regiis -i

Where %windows root directory% is the directory Windows is installed to
(normally c:\windows or c:\winnt) and %version of the .NET Framework%
is the version of the .NET Framework you have installed.

The directory for .NET 1.0 is v1.0.3705 ; for 1.1 it's v1.1.4322 and for Beta 2, it's v2.0.50215.

It's always a good idea to try to find the answer to your question by reading the documentation.
Yes, Read The Manual! The ASP.NET Quickstarts have many answers and samples.

You can install a local copy of the QuickStarts by installing the ASP.NET SDK.

The ASP.NET 1.1 SDK is available at :
http://www.microsoft.com/downloads/...&displaylang=en

The ASP.NET 2.0 SDK comes with the VS.NET Beta :
http://lab.msdn.microsoft.com/vs2005/

If you can't install local copies of the ASP.NET QuickStart,

the ASP.NET 1.1 QuickStart is available online at :
http://www.asp.net/Tutorials/quickstart.aspx

The ASP.NET 1.1 Starter Kits are available at :
http://www.asp.net/Default.aspx?tabindex=8&tabid=47

The ASP.NET 2.0 QuickStart is available online at :
http://beta.asp.net/quickstart/aspnet/Default.aspx

The ASP.NET Beta 2 Starter Kits are available at :
http://www.asp.net/vwd/starterkits...ndex=4&tabId=46

Always try to find an answer by experimenting with the code.
The .NET Framework Class Browser is of great assistance to help you do this.

The .NET Framework 1.1 Class Browser is available at :
http://www.dotnetjunkies.com/sample...assBrowser.aspx
and also at :
http://www.csharpfriends.com/quicks...assbrowser.aspx

The .NET Framework 2.0 Class Browser is available at :
http://beta.asp.net/quickstart/util/classbrowser.aspx

MSDN has all the ASP.NET documentation and Knowledge Base articles online.

Search MSDN for ASP.NET and .Net Framework questions at: http://msdn.microsoft.com/netframework/

Search the MSDN Visual Studio Beta 2 documentation at: http://msdn2.microsoft.com/library/default.aspx

2. Newsgroup Questions

2.1 What subjects are appropriate in this newsgroup?

Any subject which relates to programming, installing or configuring ASP.NET.
Please don't post questions unrelated to ASP.NET.

ASP.NET is not the same as ASP. If you have questions relating to "Classic ASP",
post them in the ASP newsgroups, e.g. microsoft.public.inetserver.asp.general.

We encourage the posting of links to free ASP.NET controls/assemblies you have developed,
but request that commercial product availabilities be sent to :

microsoft.public.dotnet.framework.aspnet.announcem ents

Otherwise, your post will be deleted as SPAM.

2.2 How to write your post

a. Make the "Subject" a short, relevant summary of your problem

b. Make sure you describe your problem accurately.
Please post the exact code which is failing/generating your error.
That will help others find the solution to your problem.

c. Deal with one problem at a time.
If you have more than one problem, post it separately.

d. Make sure you include the version of ASP.NET and the
operating system you are using. This *really* helps others help you!

If the problem is a browser-related problem, include the relevant
browser identity and operating system information.

e. If you are getting an error message, include the error number and its text.

f. Tell us what you have already tried to do to solve the problem.

2.3 How not to write your post

a. Avoid cross-posting, unless your problem applies to more than one newsgroup.

b. Never post identical messages with different subjects.
This is a sure way to get your posts ignored.

c. Don't post your message in ALL CAPITALS. It's very hard to read.
This is another sure way to get your posts ignored.

d. Don't use unclear subject lines which don't summarize a problem, like these:

HEEEELLLLPPP!!!!!
Need help please.
Any experts here?

This is yet another sure way to get your posts ignored.

e. Don't ask for an email reply. The basis for peer-to-peer help newsgroups
like this one is for *everybody* to be helped by the answers provided.

f. Don't flame anyone, period. Nobody needs that in technical newsgroups.
If something, or someone, irks you, ignore the post.

Please treat all participants with respect, valuing divergent views and contrary opinions.
Be polite. Share your perspectives to question ideas and stimulate interesting discussions.

g. The ASP.NET newsgroups, like all Microsoft public ng's, are unmoderated.

From time to time, there will be totally off-topic posts from trolls, spammers,
pornographers, etc. Please don't reply to these posts, as it's a waste of time.

Instead, killfile the poster if the post bothers you.

Microsoft has an anti-spam program in effect, and spam messages
are eliminated by a community program, but it's difficult to detect
some SPAM messages. Have patience and don't reply to any SPAM message.

We will get to it, and delete it.

2.4 Dealing with replies to your post

a. Trim unnecessary text from the replies to your posts, leaving just enough to
get the context of the reply and the original problem. This is greatly
appreciated by the people who are trying to help you, since it saves them time.

b. Analyze the suggestion you were given, and test to see whether it solves the problem.

c. If the problem isn't solved by the suggestion, explain why in a follow-up reply.

2.5 After you get your answer...

a. Confirm whether the proposed solution worked or not.

b. Thank the poster who gave you the answer to your question.

For people who spend their free time, unpaid, helping others in
peer-to-peer newsgroups, there's nothing better than to get a "Thank you".

ASP.NET links :

Learning ASP.NET : http://msdn.microsoft.com/asp.net/learn/

ASP.NET Developer Center : http://msdn.microsoft.com/asp.net/

ASP.NET Developer Center Archive : http://msdn.microsoft.com/asp.net/archive/default.aspx

ASP.NET Forums : http://forums.asp.net/ ( Online ASP.NET Forum )

ASP.NET 1.1 Support Center : http://support.microsoft.com/ph/6351

ASP.NET Security Practices : http://msdn.microsoft.com/library/e...actices0001.asp

ASP.NET Security How Tos : http://msdn.microsoft.com/library/e...HowTosIndex.asp

ADO.NET Support Center : http://support.microsoft.com/adonet

SQL Server Developer Center : http://msdn.microsoft.com/SQL/

IIS Tips and Hints : http://www.asp.net/Default.aspx?tabindex=9&tabid=48

Please ask VS2005 questions at http://forums.microsoft.com/msdn/ , and not in this ASP.NET newsgroup.

ASP.NET 2.0 questions can be posted either here or at : http://forums.asp.net/default.aspx?ForumGroupID=26

Official FAQs and Developer Resources :

ASP.NET Beta 2 FAQ : http://msdn.microsoft.com/asp.net/b...aq/default.aspx

..NEt Framework Developer Center : http://msdn.microsoft.com/netframework/

VB Developer Center : http://msdn.microsoft.com/vbasic/

C# Developer Center : http://msdn.microsoft.com/vcsharp/

J# Developer Center : http://msdn.microsoft.com/vjsharp/

New ASP.NET Developer? See : http://msdn.microsoft.com/asp.net/l...wtodevelopment/

Free Learning Courses from Microsoft : http://lab.msdn.microsoft.com/vs2005/learning/

Selected MSDN Technical Articles on ASP.NET : http://msdn.microsoft.com/asp.net/articles/default.aspx

Full Index to MSDN ASP.NET articles : http://msdn.microsoft.com/asp.net/archive/default.aspx

Free Online Book : Improving .Net Application Performance and Scalability:
http://msdn.microsoft.com/library/e...ml/scalenet.asp

Dedicated ASP.NET newsgroups at msnews.microsoft.com ( Microsoft's public nntp server ):

microsoft.public.dotnet.framework.aspnet
microsoft.public.dotnet.framework.aspnet.security
microsoft.public.dotnet.framework.aspnet.caching
microsoft.public.dotnet.framework.aspnet.webservic es
microsoft.public.dotnet.framework.aspnet.buildingc ontrols
microsoft.public.dotnet.framework.aspnet.webcontro ls
microsoft.public.dotnet.framework.aspnet.datagridc ontrol
microsoft.public.dotnet.framework.aspnet.announcem ents

The general .NET Framework newsgroup is : microsoft.public.dotnet.framework

The ADO.Net newsgroup is : microsoft.public.dotnet.framework.adonet

The newsgroups for SQL Server and MSDE are :
microsoft.public.sqlserver.server and microsoft.public.sqlserver.msde

If you have a question which would fit better at one of the
above newsgroups, consider posting it in the appropiate one(s).

You can also use the HTML interface to the Microsoft Discussion Groups :
http://www.microsoft.com/communitie...us/default.aspx

Other FAQs and Developer Resources :

Connection Strings : http://www.connectionstrings.com/

SQL Server Forums : http://www.sqlmonster.com/

DotNetJunkies : http://www.dotnetjunkies.com/

W3Schools ASP.NET Tutorial : http://www.w3schools.com/aspnet/default.asp

Egghead Cafe : http://www.eggheadcafe.com/default.asp

..Net Framework FAQ : http://www.andymcm.com/dotnetfaq.htm

C# FAQ : http://www.andymcm.com/csharpfaq.htm

Free eBook : VB.NET Fundamentals, Sheriff and Getz :
http://platform.innerworkings.com/p...undamentals.msi

ASP.NET Version Switcher : http://www.denisbauer.com/NETTools/...onSwitcher.aspx

We are working on a FAQ for specific programming questions.
When it's ready, we will include a link to it in this FAQ.

The online version of this FAQ is at http://asp.net.do/faq/Good article! will this be reposted regularly (so that new readers will see it also?)

An addition to 2.5 b:
It's not only nice to get a "thank you", it is also helpful to others reading
about this problem: they see that the solution *did* work.

Other C# articles + newsgroup FAQ: http://www.yoda.arachsys.com/csharp/

Hans Kesting
re:
> Good article!

Thank you. I've been working ( a lot ) on it... ;-)

re:
> will this be reposted regularly (so that new readers will see it also?)

Yes!

I will post it again in about 15 days,
and then plan to post it once a month.

Thank you for your suggestions.
The C# + FAQ link is very good.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================

"Hans Kesting" <news.2.hansdk@dotnet.itags.org.spamgourmet.com> wrote in message
news:uSzwbfWrFHA.3720@dotnet.itags.org.TK2MSFTNGP14.phx.gbl...
> Good article! will this be reposted regularly (so that new readers will see it also?)
> An addition to 2.5 b:
> It's not only nice to get a "thank you", it is also helpful to others reading
> about this problem: they see that the solution *did* work.
> Other C# articles + newsgroup FAQ: http://www.yoda.arachsys.com/csharp/
> Hans Kesting

The bass class System.Web.UI.Page cannot be designed.

Help!!

I am now getting the following error concerning the Microsoft Development Environment in .NET:

=========================================================
The file failed to load in the Web Form designer. Please correct the following error, then load it again: The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file:

contactbroker -- The base class 'System.Web.UI.Page' cannot be designed.
=========================================================

What do I need to do. This happens with all of my .aspx pages not just the one listed in the error message. Is there another reference I need to load into my solution. I currently have the following reference listed:

Microsoft.Web.UI.WebControls
MSHTML
stdole
System
System.Data
System.Drawing
System.Security
System.Web
System.Web.ReqularExpressions
System.Web.Services
System.Windows.Forms
System.XML
tabDlg

I hope this is enought info to help you figure out what my problem is, other than be too ignorant to figure it out for myself...

Thanks

ArtAre you trying to build a page class in a usercontrol?
I guess I don't even know enough to understand your question. Can you help me out a little further? Thanks
Yeah, that was a bad response on my part. Basically, are you trying to do things in an ascx file that should are meant for aspx. If you are working in an aspx page, you can use the system.web.ui.page, but if you are in a usercontrol (ascx) you must make use of system.web.ui.usercontrol or whatever. Also remember (Just a heads up, not releated to your current problem), a page can only have one form tag and your ascx files cannot have a form tag because this is used in the page which those usercontrols will sit inside of.
Here is my situation. I installed .NET Framework 1.1 yesterday. I already had .NET Framework 1.0 installed. I installed 1.1 because I wanted to take advantage of the HasRows Property when check to see if a dataReader had returned any rows. After I installed 1.1 I got an error on the HasRows property. I then removed the version 1.0 System.Data, System.Drawing, System.Security, System.Web, System.Web.RegularExpressions, System.WebServices, and System.XML references and replaced them all with 1.1 version. Well the HasRows problem went away but now, every time I try to open one of my .aspx pages I get the error that is the subject of this post. Additoinally I can no longer get into the design mode for any of these forms.

I haven't changed any of the code, or added any additional references to the project.
What version of Visual Studio are you using?
Microsoft Development Environment 2002 Version 7.0.94466

Thursday, March 22, 2012

The format of the file Microsoft.Practices.EnterpriseLibrary.Data is invalid

I got this error when I moved my application to a new Windows 2003
server. I installed and recompiled the
'Microsoft.Practices.EnterpriseLibrary - June 2005" then added these
assemblies to the development machine's Assembly Cache. The assemblies
version appears to be 1.1.0.0. I changed the project reference to the
newly compiled EnterpriseLibrary DLLs. The Web.Config of my
application root, I also have the following <configSections>. I don't
know why at runtime it is still asking for
Microsoft.Practices.EnterpriseLibrary.Data, Version=1.0.0.0. Please
help. Thanks.

======================== My Web.Config (partial)
==========================
<configSections>
<section name="enterpriselibrary.configurationSettings"
type="Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManagerSectionHandler,

Microsoft.Practices.EnterpriseLibrary.Configuratio n,
Version=1.1.0.0,
Culture=neutral,
PublicKeyToken=60c24972b7c20af7" />
</configSections
<enterpriselibrary.configurationSettings
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
applicationName="DMS_ASPX"
xmlns="http://www.microsoft.com/practices/enterpriselibrary/08-31-2004/configuration">
<configurationSections>
<configurationSection xsi:type="ReadOnlyConfigurationSectionData"
name="dataConfiguration" encrypt="false">
<storageProvider xsi:type="XmlFileStorageProviderData"
name="XML File Storage Provider" path="dataConfiguration.config" />
<dataTransformer xsi:type="XmlSerializerTransformerData"
name="Xml Serializer Transformer">
<includeTypes />
</dataTransformer>
</configurationSection>
</configurationSections>
<keyAlgorithmStorageProvider xsi:nil="true" />
<includeTypes />
</enterpriselibrary.configurationSettings
========================= Runtime Error =========================
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: The format of the
file 'Microsoft.Practices.EnterpriseLibrary.Data' is invalid.

Source Error:

[No relevant source lines]

Source File: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary
ASP.NET Files\root\88f31b66\ffb9ac8b\x-56vhi4.0.cs Line: 0

Assembly Load Trace: The following information can be helpful to
determine why the assembly 'Microsoft.Practices.EnterpriseLibrary.Data'
could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Practices.EnterpriseLibrary.Data,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=60c24972b7c20af7
(Fully-specified)
LOG: Appbase = file:///C:/Inetpub/DMS_Net
LOG: Initial PrivatePath = bin
Calling assembly : DMS_ASPX, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null.
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(c:\windows\microsoft.net\framework\v1.1.4322\aspn et.config).
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g\machine.config.
LOG: Post-policy reference: Microsoft.Practices.EnterpriseLibrary.Data,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=60c24972b7c20af7
LOG: Attempting download of new URL
file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET
Files/root/88f31b66/ffb9ac8b/Microsoft.Practices.EnterpriseLibrary.Data.DLL.
LOG: Attempting download of new URL
file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET
Files/root/88f31b66/ffb9ac8b/Microsoft.Practices.EnterpriseLibrary.Data/Microsoft.Practices.EnterpriseLibrary.Data.DLL.
LOG: Attempting download of new URL
file:///C:/Inetpub/DMS_Net/bin/Microsoft.Practices.EnterpriseLibrary.Data.DLL.

Stack Trace:

[BadImageFormatException: The format of the file
'Microsoft.Practices.EnterpriseLibrary.Data' is invalid.]
DMS_ASPX.Helper.DataBroker..ctor() +0
DMS_ASPX.form.main..ctor() +53
ASP.main_aspx..ctor() in
c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET
Files\root\88f31b66\ffb9ac8b\x-56vhi4.0.cs:0

[TargetInvocationException: Exception has been thrown by the target of
an invocation.]
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0
System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
virtualPath, String inputFile, HttpContext context) +164

[HttpException (0x80004005): Failed to create page of type
'ASP.main_aspx'.]
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
virtualPath, String inputFile, HttpContext context) +341
System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context,
String requestType, String url, String path) +44
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context,
String requestType, String path, String pathTranslated, Boolean
useAppConfig) +699

System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep.Execute()
+95
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +173

------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300;
ASP.NET Version:1.1.4322.2300Ok. I solved this problem myself. It turns out that the Enterprise
Library Configuration utility created two .config files in the
application root:

web.config
dataconfiguration.config

I changed the reference version in both of the config file to the
correct version.
Ok. I solved this problem myself. It turns out that the Enterprise
Library Configuration utility created two .config files in the
application root:

web.config
dataconfiguration.config

I changed the reference version in both of the config file to the
correct version.

Tuesday, March 13, 2012

The language behind www.microsoft.com

The index http://www.microsoft.com/en/us/default.aspx has .aspx
extension, but it does not look like ASP.NET webpage. It does not have
__VIEWSTATE, it doesn't have <form> in the body... Just tones of
JavaScript.
Anyone any idea what is the language behind it?BTW it is the same with MSN.com. It is even XHTML Strict, which is
strange for Microsoft...
On 20 Mar 2007 11:35:25 -0700, georgi.ivanov@.gmail.com wrote:

> The index http://www.microsoft.com/en/us/default.aspx has .aspx
> extension, but it does not look like ASP.NET webpage. It does not have
> __VIEWSTATE, it doesn't have <form> in the body... Just tones of
> JavaScript.
> Anyone any idea what is the language behind it?
The aspx extension does not necessarily mean asp.net. For all we know they
may be using ruby on rails but mapped the .aspx extension to ruby!!! :)
--
Bits.Bytes
http://bytes.thinkersroom.com
On Mar 20, 7:35 pm, "georgi.iva...@.gmail.com"
<georgi.iva...@.gmail.com> wrote:
> The indexhttp://www.microsoft.com/en/us/default.aspxhas .aspx
> extension, but it does not look like ASP.NET webpage. It does not have
> __VIEWSTATE, it doesn't have <form> in the body... Just tones of
> JavaScript.
> Anyone any idea what is the language behind it?
it's not a language, it's Microsoft Office SharePoint Server 2007

The language behind www.microsoft.com

The index http://www.microsoft.com/en/us/default.aspx has .aspx
extension, but it does not look like ASP.NET webpage. It does not have
__VIEWSTATE, it doesn't have <formin the body... Just tones of
JavaScript.

Anyone any idea what is the language behind it?BTW it is the same with MSN.com. It is even XHTML Strict, which is
strange for Microsoft...
On 20 Mar 2007 11:35:25 -0700, georgi.ivanov@.gmail.com wrote:

Quote:

Originally Posted by

The index http://www.microsoft.com/en/us/default.aspx has .aspx
extension, but it does not look like ASP.NET webpage. It does not have
__VIEWSTATE, it doesn't have <formin the body... Just tones of
JavaScript.
>
Anyone any idea what is the language behind it?


The aspx extension does not necessarily mean asp.net. For all we know they
may be using ruby on rails but mapped the .aspx extension to ruby!!! :)
--
Bits.Bytes
http://bytes.thinkersroom.com
On Mar 20, 7:35 pm, "georgi.iva...@.gmail.com"
<georgi.iva...@.gmail.comwrote:

Quote:

Originally Posted by

The indexhttp://www.microsoft.com/en/us/default.aspxhas .aspx
extension, but it does not look like ASP.NET webpage. It does not have
__VIEWSTATE, it doesn't have <formin the body... Just tones of
JavaScript.
>
Anyone any idea what is the language behind it?


it's not a language, it's Microsoft Office SharePoint Server 2007

The MasterPageFile attribute is not supported by the page directive.

While just copying and pasting the standard master page example from the microsoft website: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/masterpages.asp

I'm constantly receiving the following error, what am I doing wrong here?

-------

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The 'MasterPageFile' attribute is not supported by the 'page' directive.

Source Error:

Line 1: <%@dotnet.itags.org. Page MasterPageFile="~/Simple.master" %>
Line 2: <asp:Content
Line 3: ID="Content1"

-------
Thanks!Are you using the .NET 2.0 Framework? It's still in beta and not released to the "masses" just yet, that's why I ask.
well damn :( it's a asp.net v2.0 feature :(
Yea I have a MSDN member ship and have been using 2.0 for a few months now. It is simply wonderful. There are a ton of changes that will make developing pages a lot faster. Productivity is much improved!
I really can't WAIT, just the masterpagefile thingy rocks!