Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Microsoft Web Developer 2008 Express edition and ASP.NETconfiguration tool

Reply
Thread Tools

Microsoft Web Developer 2008 Express edition and ASP.NETconfiguration tool

 
 
Andrea Raimondi
Guest
Posts: n/a
 
      04-03-2008
Hello,

I'm working on an XP Pro machine, running dotNET 1.1, 2.0 and 3.5 .
I have downloaded the Club starter kit and VWD asked me to upgrade the
target framework version to 3.5 .
Since it also stated I would however be able to compile against 2.0 by
switching platform, I said oh ok.

Now, I'm trying to run the ASP.NET configuration but - although it
does run the integrated webserver - it does *NOT* connect to SQLServer
2005.

My SQLServer instance name is INFINITE-LTD\SQLEXPRESS and after
numerous attempts to run the webpage, when I eventually made it the
only message I get is the following: "An error was encountered. Please
return to the previous page and try again." .

I've tried to look in this group for that error but I didn't seem to
find anything helpful - or if there was something it definitely
slipped through my eyes cause I've been looking closely not just
skimming but reading.

Since I'm all new to this ASP.NET 2.0 stuff I'd love if someone would
point me in the correct direction in order to solve the problem.

Thank you for your time reading this,

Andrew
 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      04-03-2008
First, make sure you are able to connect with SQL Server Express. In
general, I would recommend a protocol other than shared memory and turning
on the SQL Browser service, which is off by default. Then try again.

If that does not work:
Set up the database (using the SQL script or the aspnet_regsql utility) and
the connection string first, in the config file, and then try again. You can
google Membership, Personalization, etc. and web.config to see examples.
That is where the app looks to hook up to the database.

Since you have SQL Express in what looks like a default setup, it is
probably the first suggestion that will work.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"Andrea Raimondi" <> wrote in message
news:11ee4bb8-590e-4440-b072-...
> Hello,
>
> I'm working on an XP Pro machine, running dotNET 1.1, 2.0 and 3.5 .
> I have downloaded the Club starter kit and VWD asked me to upgrade the
> target framework version to 3.5 .
> Since it also stated I would however be able to compile against 2.0 by
> switching platform, I said oh ok.
>
> Now, I'm trying to run the ASP.NET configuration but - although it
> does run the integrated webserver - it does *NOT* connect to SQLServer
> 2005.
>
> My SQLServer instance name is INFINITE-LTD\SQLEXPRESS and after
> numerous attempts to run the webpage, when I eventually made it the
> only message I get is the following: "An error was encountered. Please
> return to the previous page and try again." .
>
> I've tried to look in this group for that error but I didn't seem to
> find anything helpful - or if there was something it definitely
> slipped through my eyes cause I've been looking closely not just
> skimming but reading.
>
> Since I'm all new to this ASP.NET 2.0 stuff I'd love if someone would
> point me in the correct direction in order to solve the problem.
>
> Thank you for your time reading this,
>
> Andrew



 
Reply With Quote
 
 
 
 
Juan T. Llibre
Guest
Posts: n/a
 
      04-03-2008
re:
!> Now, I'm trying to run the ASP.NET configuration but - although it does
!> run the integrated webserver - it does *NOT* connect to SQLServer 2005

Are you using a trusted connection or a specific database user account ?

If you use the VS test webserver, it will run as the machine's administrator account
and that will require for that account to have access to SQL Server 2005.

If you use a specific database user, that user needs a login to SQL Server 2005.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaņol : http://asp.net.do/foros/
======================================
"Andrea Raimondi" <> wrote in message
news:11ee4bb8-590e-4440-b072-...
> Hello,
>
> I'm working on an XP Pro machine, running dotNET 1.1, 2.0 and 3.5 .
> I have downloaded the Club starter kit and VWD asked me to upgrade the
> target framework version to 3.5 .
> Since it also stated I would however be able to compile against 2.0 by
> switching platform, I said oh ok.
>
> Now, I'm trying to run the ASP.NET configuration but - although it
> does run the integrated webserver - it does *NOT* connect to SQLServer
> 2005.
>
> My SQLServer instance name is INFINITE-LTD\SQLEXPRESS and after
> numerous attempts to run the webpage, when I eventually made it the
> only message I get is the following: "An error was encountered. Please
> return to the previous page and try again." .
>
> I've tried to look in this group for that error but I didn't seem to
> find anything helpful - or if there was something it definitely
> slipped through my eyes cause I've been looking closely not just
> skimming but reading.
>
> Since I'm all new to this ASP.NET 2.0 stuff I'd love if someone would
> point me in the correct direction in order to solve the problem.
>
> Thank you for your time reading this,
>
> Andrew



 
Reply With Quote
 
Andrea Raimondi
Guest
Posts: n/a
 
      04-04-2008
Hello again,

I thought I would notify about my progresses(or better, lack of ).

I read through both replies which were interesting, I enabled
SQLBrowser service and added a TCP/IP protocol.
This is my connection string so far:
Data Source=LUCALAPTOP\SQLEXPRESS;Initial Catalog=BlogThis;Integrated
Security=True

I should probably be using LOCALHOST instead of LUCALAPTOP
\SQLEXPRESS ?

I also followed the advice of googling fot membership examples, so
this is my membership section below system.web node:

<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add
name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="BlogThisConnectionString"
applicationName="BlogThis"
enablePasswordRetrieval="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Hashed" />
</providers>
</membership>

I noticed, however, that in the example an "authorization" node is
placed just before the membership one,
maybe I should add that as well? The following URL, however, doesn't
seem to hint at that as important:
http://msdn2.microsoft.com/en-us/library/6e9y4s5t.aspx
This is where I adapted my own membership node from.

I'm unsure about Juan advice actually, cause I am using a default
setup with an administrative user account, so I
really wonder if there's anything I am missing.

As you may have understood by my prologue, it doesn't however work,
so... what am I doing wrong?

Thank you for your time helping me,

Andrew
 
Reply With Quote
 
Andrea Raimondi
Guest
Posts: n/a
 
      04-04-2008
Oh and as a side note to all this, I'm unable to find this "asp_regsql.exe"
tool which is apparently
required to make everything work.

Any hints?

I can't find the 3.5 framework directory on the computer either!

Andrew

 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      04-05-2008
re:
!> I'm unable to find this "asp_regsql.exe" tool

That should be aspnet_regsql.exe, not asp_regsql.exe.
It should be in the WINDOWS\Microsoft.NET\Framework\v2.0.50727 directory.

re:
!> I can't find the 3.5 framework directory on the computer either!

It should be at WINDOWS\Microsoft.NET\Framework\v3.5
If it's not there, it's not installed.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaņol : http://asp.net.do/foros/
======================================
"Andrea Raimondi" <> wrote in message news:%23$...
> Oh and as a side note to all this, I'm unable to find this "asp_regsql.exe" tool which is apparently
> required to make everything work.
>
> Any hints?
>
> I can't find the 3.5 framework directory on the computer either!
>
> Andrew



 
Reply With Quote
 
Andrea Raimondi
Guest
Posts: n/a
 
      04-05-2008
"Juan T. Llibre" <> ha scritto nel messaggio
> That should be aspnet_regsql.exe, not asp_regsql.exe.
> It should be in the WINDOWS\Microsoft.NET\Framework\v2.0.50727 directory.


Found and run.

> It should be at WINDOWS\Microsoft.NET\Framework\v3.5
> If it's not there, it's not installed.


It's there! Phew! ^_^

Anyway, running it and then running the ASP.NET configuration tool doesn't
seem to do any
good whatsoever. I tried on a web project with memberships setup in
web.config following the
example I found online.

On the desktop computer, however, where nothing was added to the webconfig,
now the configuration
tool starts, so... I shall try doing the same(i.e. undoing the web.config
changes) on the laptop as well to see if
situation improves.

If I manage to start it, then I'll switch to aspnet.security group for
further details on login components,
where I assume it's more appropriate to ask for informations.

Thank you in advance for your time!

Andrew

 
Reply With Quote
 
Andrea Raimondi
Guest
Posts: n/a
 
      04-05-2008
"Andrea Raimondi" <> ha scritto nel messaggio
> I shall try doing the same(i.e. undoing the web.config changes) on the
> laptop as well to see if
> situation improves.


Unfortunately, it does not!

I've got no clue why it doesn't. I undid the changes and all, it's
"membership free" now and since
membership is activated by default, it should modify the web.config file
appropriately by itself.

I also noticed that the web.config on the desktop doesn't seem to contain a
membership node as
otherwise stated by the msdn documentation file URLed in a previous post.

Any clues?

Andrew

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouseover Imagebutton. Visual Web Developer 2008 Express edition Propp General Computer Support 0 06-06-2010 07:27 PM
Visual Web Developer 2008 express edition Anthony ASP .Net Web Services 1 05-18-2009 03:27 PM
Microsoft Visual Web Developer 2008 Express brockuswade@yahoo.com ASP .Net 1 02-29-2008 11:32 PM
ASP.NET Web Site Administration tool from Visual Web Developer 2005 Express Edition zaurska@btinternet.com ASP .Net 4 10-02-2007 10:06 PM
BUG: Microsoft Visual Web Developer 2005 Express Edition Andre ASP .Net 3 12-06-2005 04:12 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57