Saturday, March 31, 2012

VS2005/C#/ASP.NEt 2.0 error : "You must choose a publish location that is not a sub-folder

Hi over there,
I suddenly started to get the below error when I try to publish my websites,
in any of them !

I tried to google it but not much info.

Any help very much appreciated,

thanks in advance,

Genc Ymeri.
PS:
OS: 2003 server

PS:

--------
Microsoft Visual Studio
--------
You must choose a publish location that is not a sub-folder of the source
Web site.
--------
OK
--------as the message say, the dir you publish your site to must not be a subfolder
of the development site. under projet propeties, msbuild options, pick a new
directory.

-- bruce (sqlwork.com)

"genc_ymeri" <genc_ymeri@.hotmail.comwrote in message
news:nLmdnRm7UZNdw7fYnZ2dnUVZ_vKdnZ2d@.adelphia.com ...

Quote:

Originally Posted by

Hi over there,
I suddenly started to get the below error when I try to publish my
websites, in any of them !
>
I tried to google it but not much info.
>
Any help very much appreciated,
>
thanks in advance,
>
Genc Ymeri.
PS:
OS: 2003 server
>
PS:
>
--------
Microsoft Visual Studio
--------
You must choose a publish location that is not a sub-folder of the source
Web site.
--------
OK
--------
>
>


as the message say, the dir you publish your site to must not be a subfolder
of the development site...>

It's not ! I publish the projects in C:\Intepub\www\XXXX while the dev
directory is C:\Projects\VS2005\xxxxxx

"bruce barker (sqlwork.com)" <b_r_u_c_e_removeunderscores@.sqlwork.comwrote
in message news:%23ssppc76GHA.4568@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

as the message say, the dir you publish your site to must not be a
subfolder of the development site. under projet propeties, msbuild
options, pick a new directory.
>
-- bruce (sqlwork.com)
>
"genc_ymeri" <genc_ymeri@.hotmail.comwrote in message
news:nLmdnRm7UZNdw7fYnZ2dnUVZ_vKdnZ2d@.adelphia.com ...

Quote:

Originally Posted by

>Hi over there,
>I suddenly started to get the below error when I try to publish my
>websites, in any of them !
>>
>I tried to google it but not much info.
>>
>Any help very much appreciated,
>>
>thanks in advance,
>>
>Genc Ymeri.
>PS:
>OS: 2003 server
>>
>PS:
>>
>--------
>Microsoft Visual Studio
>--------
>You must choose a publish location that is not a sub-folder of the source
>Web site.
>--------
>OK
>--------
>>
>>


>
>

VS2005/IIS and Debugging a Web Application

I am trying to configure a web application named "mytestweb.com" and get the
error:

"Unable to start debugging on the web server. The web server is not
configured correctly. See help for common configuration errors. Running the
web page outside the debugger may provide further information."

When I try to navigate directly to
http://localhost/mytestweb.com/default.aspx, I receive a HTTP 403.1 error:
Execute Access Forbidden. "You have attempted to execute a CGI, ISAPI, or
other executable program from a directory that does not allow programs to be
executed."

I have verified that the virtual directory is created and has the same
permissions as another web application created the same way with one
exception: the one that works does NOT have an extension. It is simply
called "mytestweb".

I thought IE might be viewing this as an internet site, so I added
http://localhost as a trusted site - still the same problem, same error.

What do I need to do to be able to run and debug web applications with
extensions in the name?

Thanks!re:

Quote:

Originally Posted by

>I am trying to configure a web application named "mytestweb.com" and get the
error:


In general, it's not a good idea to have subwebs with somename.com in the name.
The server will think you are trying to run an executable file.

Try changing the name from :

Quote:

Originally Posted by

http://localhost/mytestweb.com/


to http://localhost/mytestweb/
It's OK if the dot-name is the domain name, i.e. :
http://mytestweb.com/ ( you'll need to have a registered domain for that to work )
but using application names which end in .com brings all sorts of problems with it.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Karch" <nospam@.absotutely.comwrote in message news:%23XBfaEY3GHA.4024@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

>I am trying to configure a web application named "mytestweb.com" and get the
error:
>
"Unable to start debugging on the web server. The web server is not
configured correctly. See help for common configuration errors. Running the
web page outside the debugger may provide further information."
>
When I try to navigate directly to
http://localhost/mytestweb.com/default.aspx, I receive a HTTP 403.1 error:
Execute Access Forbidden. "You have attempted to execute a CGI, ISAPI, or
other executable program from a directory that does not allow programs to be
executed."
>
I have verified that the virtual directory is created and has the same
permissions as another web application created the same way with one
exception: the one that works does NOT have an extension. It is simply
called "mytestweb".
>
I thought IE might be viewing this as an internet site, so I added
http://localhost as a trusted site - still the same problem, same error.
>
What do I need to do to be able to run and debug web applications with
extensions in the name?
>
Thanks!
>
>


you probably need to check to properties in IIS to be sure that you are
pointing to the correct .Net Framework. You can specify 1.1 or 2.0 in the
properties of the web site.
--
Chris Davoli

"Karch" wrote:

Quote:

Originally Posted by

I am trying to configure a web application named "mytestweb.com" and get the
error:
>
"Unable to start debugging on the web server. The web server is not
configured correctly. See help for common configuration errors. Running the
web page outside the debugger may provide further information."
>
When I try to navigate directly to
http://localhost/mytestweb.com/default.aspx, I receive a HTTP 403.1 error:
Execute Access Forbidden. "You have attempted to execute a CGI, ISAPI, or
other executable program from a directory that does not allow programs to be
executed."
>
I have verified that the virtual directory is created and has the same
permissions as another web application created the same way with one
exception: the one that works does NOT have an extension. It is simply
called "mytestweb".
>
I thought IE might be viewing this as an internet site, so I added
http://localhost as a trusted site - still the same problem, same error.
>
What do I need to do to be able to run and debug web applications with
extensions in the name?
>
Thanks!
>
>
>

VS2005: Cannot run the website from IIS (database problem)

Hi,
I have developed a website from the model "Starter kits Classified". Well,
the application works good, no problem in my development environment. It
uses a SqlServer 2005 express database (using *.MDF files).
But, when i try to copy it to a IIS website, it dosent work.
- I created a website called "MyApp" under IIS (windows xp pro)
- I copied all the files from my "Visual Studio Express 2005 Web dev" to the
IIS/Default website/MyApp (files in c:\inetpub\wwwroot\MyApp)
- I setup ASP.NET config : ASPNET v2.0, default page = Default.aspx, Runtime
login = ASPNET (without admin rights), Windows integrated authentification
activated.
Results : the login page (login.aspx) works, but it doesnt connect.
It seems that the ASPNET user cannot connect to the Sql server database.
For me it's a mater of access rights to SqlServer 2005 from IIS.
Any ideas to help me please?
Thank you !As long as SQL Express is also installed on the machine, then you are
probably right that it is a access problem (I say that rather than access
rights as there is a prime reason for failure that is not "rights" based).
Check and make sure you have a protocol other than in memory (configuration
tool). That will cure most problems. In some instances, you also have to
turn on SQL Browser. That cures another group. In some instances, you will
also have to add users to SQL Server and give rights to the database, as
well.
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com/
****************************************
*********
Think Outside the Box!
****************************************
*********
"TTT" <no@.no.no> wrote in message
news:4528ff57$0$17549$426a74cc@.news.free.fr...
> Hi,
> I have developed a website from the model "Starter kits Classified". Well,
> the application works good, no problem in my development environment. It
> uses a SqlServer 2005 express database (using *.MDF files).
> But, when i try to copy it to a IIS website, it dosent work.
> - I created a website called "MyApp" under IIS (windows xp pro)
> - I copied all the files from my "Visual Studio Express 2005 Web dev" to
> the IIS/Default website/MyApp (files in c:\inetpub\wwwroot\MyApp)
> - I setup ASP.NET config : ASPNET v2.0, default page = Default.aspx,
> Runtime login = ASPNET (without admin rights), Windows integrated
> authentification activated.
> Results : the login page (login.aspx) works, but it doesnt connect.
> It seems that the ASPNET user cannot connect to the Sql server database.
> For me it's a mater of access rights to SqlServer 2005 from IIS.
> Any ideas to help me please?
> Thank you !
>
> As long as SQL Express is also installed on the machine, then you are
> probably right that it is a access problem (I say that rather than access
> rights as there is a prime reason for failure that is not "rights" based).
> Check and make sure you have a protocol other than in memory
> (configuration tool). That will cure most problems.
I dit it

> In some instances, you also have to turn on SQL Browser. That cures
> another group.
I did it also..

> In some instances, you will also have to add users to SQL Server and give
> rights to the database, as well.
How to do it?

>

VS2005: ASP.net forms designer: Intellisense

I have created an inherited control based upon the GridView control, however
when I use this control within the VS2005 ASP.net form designer I can no
longer access the intellisense for the base control (technically it is now
in a new namespace instead of the original "asp").

I know I can create my own intellisense XML for the new properties that I
have added, but is there a way to tell VS that the other properties should
be taken from the asp:GridView or do I have to redo all properties within my
own XML?Hi,

Intellisense should work automatically if you just have the derived GirdView
and it's related objects (fields etc) in the same namespace. So if you have
derived from GridView, and have this subclass in your own namespace, for
Intellisense to work, you'd need to subclass also possible field classes
etc. and have them in this same namespace with the GridView

http://aspadvice.com/blogs/joteke/a...1/27/14886.aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"Martin Robins" <martin dot robins at technicaldirect dot co dot uk> wrote
in message news:eMaACCMVGHA.5588@.TK2MSFTNGP09.phx.gbl...
>I have created an inherited control based upon the GridView control,
>however when I use this control within the VS2005 ASP.net form designer I
>can no longer access the intellisense for the base control (technically it
>is now in a new namespace instead of the original "asp").
> I know I can create my own intellisense XML for the new properties that I
> have added, but is there a way to tell VS that the other properties should
> be taken from the asp:GridView or do I have to redo all properties within
> my own XML?

VS2005: Code "gramatically" correct..

Hi all,

Ok - I've used the word gramatically - which I'm sure is incorect, however I
mean when VS2005 lists "warnings" like this one:

Warning 1 Variable 'Command' is used before it has been assigned a value. A
null reference exception could result at runtime.
Warning 2 Variable 'Connection' is used before it has been assigned a value.
A null reference exception could result at runtime.
Warning 3 Variable 'Command' is used before it has been assigned a value. A
null reference exception could result at runtime.
Warning 4 Variable 'Connection' is used before it has been assigned a value.
A null reference exception could result at runtime.

Now, in my code I often do this within the "catch" part of a try..catch if
I've used a database connection/command in the "Try" section;

' tidy up
If Command Is Nothing <> False Then
Command.Dispose()
Command = Nothing
End If

If Connection Is Nothing <> False Then
Connection.Close()
Connection = Nothing
End If

The reason I do this, I believe is for tidyness, its quite possible that if
an exception was caused I may have already created my connection object,
and/or my Command object, therefore I test to see if they are "something",
and if so deal with them appropriately..

Of course, now with its new gadgets VS reports problems because I've not
"something'd" them in the "Catch" although I have in the "Try"...

Any suggestions - is my coding bad? Is there a better way? Any info
appreciated, I'm trying to go for good coding practices you see :o)

RobOne comment, is that when you are testing that the result of a boolean
expression is not equal to false - that is really confusing to read. A more
readable way is:

If Command Is Nothing = True Then

And, better yet:

If Command Is Nothing Then

Which is the most readable out of all of them.

Now, in all of the cases above, your If statement will execute, which is not
what you want, since you will get a nullreferenceexception.

Which proves my point as to just how confusing writing code like that is.

Now, the compiler can only do so much in figuring out your code. It may be,
that your code is written in such a way, that an object is always assigned
before you use it. If you want to get rid of the warning, always assign the
variable, even if it is to nothing.

And lastly, you do not need to set the variables to Nothing. That was
something you had to do in VB6.

"Rob Meade" <ten.bewdoowsgnik@.edaem.bbor> wrote in message
news:0avaf.229$Lw5.110@.text.news.blueyonder.co.uk. ..
> Hi all,
> Ok - I've used the word gramatically - which I'm sure is incorect, however
> I mean when VS2005 lists "warnings" like this one:
> Warning 1 Variable 'Command' is used before it has been assigned a value.
> A null reference exception could result at runtime.
> Warning 2 Variable 'Connection' is used before it has been assigned a
> value. A null reference exception could result at runtime.
> Warning 3 Variable 'Command' is used before it has been assigned a value.
> A null reference exception could result at runtime.
> Warning 4 Variable 'Connection' is used before it has been assigned a
> value. A null reference exception could result at runtime.
> Now, in my code I often do this within the "catch" part of a try..catch if
> I've used a database connection/command in the "Try" section;
> ' tidy up
> If Command Is Nothing <> False Then
> Command.Dispose()
> Command = Nothing
> End If
> If Connection Is Nothing <> False Then
> Connection.Close()
> Connection = Nothing
> End If
> The reason I do this, I believe is for tidyness, its quite possible that
> if an exception was caused I may have already created my connection
> object, and/or my Command object, therefore I test to see if they are
> "something", and if so deal with them appropriately..
> Of course, now with its new gadgets VS reports problems because I've not
> "something'd" them in the "Catch" although I have in the "Try"...
> Any suggestions - is my coding bad? Is there a better way? Any info
> appreciated, I'm trying to go for good coding practices you see :o)
> Rob
You have a few options:

1. You can ignore warnings which you are certain are not going to cause a
problem. Not a bad idea. After all, a warning is not a show-stopper, but it
does bring your attention to a potential problem.
2. You can turn off certain types of warnings in Tools|Options.
3. You can write code that the IDE prefers you to write. Not a bad idea.
There are good reasons why these warnings are raised, and adapting good
coding practices is always a help.
4. Some combination of the above which suits your specific personality
and/or needs.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.

"Rob Meade" <ten.bewdoowsgnik@.edaem.bbor> wrote in message
news:0avaf.229$Lw5.110@.text.news.blueyonder.co.uk. ..
> Hi all,
> Ok - I've used the word gramatically - which I'm sure is incorect, however
> I mean when VS2005 lists "warnings" like this one:
> Warning 1 Variable 'Command' is used before it has been assigned a value.
> A null reference exception could result at runtime.
> Warning 2 Variable 'Connection' is used before it has been assigned a
> value. A null reference exception could result at runtime.
> Warning 3 Variable 'Command' is used before it has been assigned a value.
> A null reference exception could result at runtime.
> Warning 4 Variable 'Connection' is used before it has been assigned a
> value. A null reference exception could result at runtime.
> Now, in my code I often do this within the "catch" part of a try..catch if
> I've used a database connection/command in the "Try" section;
> ' tidy up
> If Command Is Nothing <> False Then
> Command.Dispose()
> Command = Nothing
> End If
> If Connection Is Nothing <> False Then
> Connection.Close()
> Connection = Nothing
> End If
> The reason I do this, I believe is for tidyness, its quite possible that
> if an exception was caused I may have already created my connection
> object, and/or my Command object, therefore I test to see if they are
> "something", and if so deal with them appropriately..
> Of course, now with its new gadgets VS reports problems because I've not
> "something'd" them in the "Catch" although I have in the "Try"...
> Any suggestions - is my coding bad? Is there a better way? Any info
> appreciated, I'm trying to go for good coding practices you see :o)
> Rob
"Marina" wrote ...

> One comment, is that when you are testing that the result of a boolean
> expression is not equal to false - that is really confusing to read. A
> more readable way is:
> If Command Is Nothing = True Then
> And, better yet:
> If Command Is Nothing Then

Hi Marina,

I understand what you are saying, and thank you for the reply, however, in
my example:

If Command Is Nothing <> False Then
Command.Dispose()
Command = Nothing
End If

I would then have do add more code, ie,

If Command Is Nothing Then
' do nothing
Else
Command.Dispose
Command = Nothing
End If

Easier to read - but more code...

> Now, in all of the cases above, your If statement will execute, which is
> not what you want, since you will get a nullreferenceexception.

But this is why I'm testing it? Am I not saying in the test, if the object
is "something" then kill it off? ie, if its "nothing" (null?) then dont
worry...skip right past...

> Which proves my point as to just how confusing writing code like that is.

I'm obviously missing something, it makes sense to me - is what I've replied
with above here wrong then?

> Now, the compiler can only do so much in figuring out your code. It may
> be, that your code is written in such a way, that an object is always
> assigned before you use it. If you want to get rid of the warning, always
> assign the variable, even if it is to nothing.

The full chunk is as follows:

Public Function TruncateDatabase() As Boolean

' declare variables
Dim Connection As SqlConnection
Dim Command As SqlCommand
Dim Result As Boolean

' exception handling
Try

' create and open our database connection
Connection = New
SqlConnection(ConfigurationManager.AppSettings("Webmasters"))
Connection.Open()

' create and define our command object
Command = New SqlCommand
Command.Connection = Connection
Command.CommandType = CommandType.Text
Command.CommandText = "TRUNCATE TABLE Webmasters"

' execute
Command.ExecuteNonQuery()

' tidy up
Command.Dispose()
Command = Nothing
Connection.Close()
Connection = Nothing

' set result
Result = True

Catch ex As Exception

' TODO: Error handling

' tidy up
If Command Is Nothing <> False Then

Command.Dispose()
Command = Nothing

End If

If Connection Is Nothing <> False Then

Connection.Close()
Connection = Nothing

End If

' set flag
Result = False

End Try

' return result
Return Result

End Function

As per my initial post, I only actually set a value to those objects in the
"Try" block, hence the warning...as you suggested, setting them to nothing
at the top outside of Try would obviously clear these up.

> And lastly, you do not need to set the variables to Nothing. That was
> something you had to do in VB6.

I do that for completeness, I read/heard about .net clearing up after itself
as and when it deems appropriate, I just like to save it the trouble :)

Rob
"Kevin Spencer" wrote...

> 1. You can ignore warnings which you are certain are not going to cause a
> problem. Not a bad idea. After all, a warning is not a show-stopper, but
> it does bring your attention to a potential problem.

I love 'em - I think its one of my favourite things thus far between
2003/2005 - I've always been very task orientated, so for me this is dead
handy, oh look a long list of stuff to sort out :o)

> 2. You can turn off certain types of warnings in Tools|Options.

nah..

> 3. You can write code that the IDE prefers you to write. Not a bad idea.
> There are good reasons why these warnings are raised, and adapting good
> coding practices is always a help.

Sounds like a good idea.

> 4. Some combination of the above which suits your specific personality
> and/or needs.

3 for me I think :o)

Cheers Kevin,

Rob
re:
> I understand what you are saying, and thank you for the reply, however, in my example:
> If Command Is Nothing <> False Then
> Command.Dispose()
> Command = Nothing
> End If
> I would then have do add more code, ie,

Wouldn't :

If Command Then
Command.Dispose()
Command = Nothing
End If

work better ?

In C#, that works, too :

if (Command) {
Command.Dispose();
Command = null;
}

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"Rob Meade" <ten.bewdoowsgnik@.edaem.bbor> wrote in message
news:BTvaf.269$Lw5.66@.text.news.blueyonder.co.uk.. .
> "Marina" wrote ...
>> One comment, is that when you are testing that the result of a boolean expression is
>> not equal to false - that is really confusing to read. A more readable way is:
>>
>> If Command Is Nothing = True Then
>>
>> And, better yet:
>>
>> If Command Is Nothing Then
> Hi Marina,
> I understand what you are saying, and thank you for the reply, however, in my example:
> If Command Is Nothing <> False Then
> Command.Dispose()
> Command = Nothing
> End If
> I would then have do add more code, ie,
> If Command Is Nothing Then
> ' do nothing
> Else
> Command.Dispose
> Command = Nothing
> End If
> Easier to read - but more code...
>> Now, in all of the cases above, your If statement will execute, which is not what you
>> want, since you will get a nullreferenceexception.
> But this is why I'm testing it? Am I not saying in the test, if the object is
> "something" then kill it off? ie, if its "nothing" (null?) then dont worry...skip right
> past...
>> Which proves my point as to just how confusing writing code like that is.
> I'm obviously missing something, it makes sense to me - is what I've replied with above
> here wrong then?
>> Now, the compiler can only do so much in figuring out your code. It may be, that your
>> code is written in such a way, that an object is always assigned before you use it. If
>> you want to get rid of the warning, always assign the variable, even if it is to
>> nothing.
> The full chunk is as follows:
> Public Function TruncateDatabase() As Boolean
> ' declare variables
> Dim Connection As SqlConnection
> Dim Command As SqlCommand
> Dim Result As Boolean
> ' exception handling
> Try
> ' create and open our database connection
> Connection = New SqlConnection(ConfigurationManager.AppSettings("Webmasters"))
> Connection.Open()
> ' create and define our command object
> Command = New SqlCommand
> Command.Connection = Connection
> Command.CommandType = CommandType.Text
> Command.CommandText = "TRUNCATE TABLE Webmasters"
> ' execute
> Command.ExecuteNonQuery()
> ' tidy up
> Command.Dispose()
> Command = Nothing
> Connection.Close()
> Connection = Nothing
> ' set result
> Result = True
> Catch ex As Exception
> ' TODO: Error handling
> ' tidy up
> If Command Is Nothing <> False Then
> Command.Dispose()
> Command = Nothing
> End If
> If Connection Is Nothing <> False Then
> Connection.Close()
> Connection = Nothing
> End If
> ' set flag
> Result = False
> End Try
> ' return result
> Return Result
> End Function
> As per my initial post, I only actually set a value to those objects in the "Try" block,
> hence the warning...as you suggested, setting them to nothing at the top outside of Try
> would obviously clear these up.
>> And lastly, you do not need to set the variables to Nothing. That was something you had
>> to do in VB6.
> I do that for completeness, I read/heard about .net clearing up after itself as and when
> it deems appropriate, I just like to save it the trouble :)
> Rob
The same for Connection, btw :

If Connection Then
Connection.Close()
Connection = Nothing
End If

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:OdQOG1M4FHA.2352@.TK2MSFTNGP12.phx.gbl...
> re:
>> I understand what you are saying, and thank you for the reply, however, in my example:
>>
>> If Command Is Nothing <> False Then
>> Command.Dispose()
>> Command = Nothing
>> End If
>>
>> I would then have do add more code, ie,
> Wouldn't :
> If Command Then
> Command.Dispose()
> Command = Nothing
> End If
> work better ?
> In C#, that works, too :
> if (Command) {
> Command.Dispose();
> Command = null;
> }
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "Rob Meade" <ten.bewdoowsgnik@.edaem.bbor> wrote in message
> news:BTvaf.269$Lw5.66@.text.news.blueyonder.co.uk.. .
>> "Marina" wrote ...
>>
>>> One comment, is that when you are testing that the result of a boolean expression is
>>> not equal to false - that is really confusing to read. A more readable way is:
>>>
>>> If Command Is Nothing = True Then
>>>
>>> And, better yet:
>>>
>>> If Command Is Nothing Then
>>
>> Hi Marina,
>>
>> I understand what you are saying, and thank you for the reply, however, in my example:
>>
>> If Command Is Nothing <> False Then
>> Command.Dispose()
>> Command = Nothing
>> End If
>>
>> I would then have do add more code, ie,
>>
>> If Command Is Nothing Then
>> ' do nothing
>> Else
>> Command.Dispose
>> Command = Nothing
>> End If
>>
>> Easier to read - but more code...
>>
>>> Now, in all of the cases above, your If statement will execute, which is not what you
>>> want, since you will get a nullreferenceexception.
>>
>> But this is why I'm testing it? Am I not saying in the test, if the object is
>> "something" then kill it off? ie, if its "nothing" (null?) then dont worry...skip
>> right past...
>>
>>> Which proves my point as to just how confusing writing code like that is.
>>
>> I'm obviously missing something, it makes sense to me - is what I've replied with above
>> here wrong then?
>>
>>> Now, the compiler can only do so much in figuring out your code. It may be, that your
>>> code is written in such a way, that an object is always assigned before you use it.
>>> If you want to get rid of the warning, always assign the variable, even if it is to
>>> nothing.
>>
>> The full chunk is as follows:
>>
>> Public Function TruncateDatabase() As Boolean
>>
>> ' declare variables
>> Dim Connection As SqlConnection
>> Dim Command As SqlCommand
>> Dim Result As Boolean
>>
>> ' exception handling
>> Try
>>
>> ' create and open our database connection
>> Connection = New SqlConnection(ConfigurationManager.AppSettings("Webmasters"))
>> Connection.Open()
>>
>> ' create and define our command object
>> Command = New SqlCommand
>> Command.Connection = Connection
>> Command.CommandType = CommandType.Text
>> Command.CommandText = "TRUNCATE TABLE Webmasters"
>>
>> ' execute
>> Command.ExecuteNonQuery()
>>
>> ' tidy up
>> Command.Dispose()
>> Command = Nothing
>> Connection.Close()
>> Connection = Nothing
>>
>> ' set result
>> Result = True
>>
>> Catch ex As Exception
>>
>> ' TODO: Error handling
>>
>> ' tidy up
>> If Command Is Nothing <> False Then
>>
>> Command.Dispose()
>> Command = Nothing
>>
>> End If
>>
>> If Connection Is Nothing <> False Then
>>
>> Connection.Close()
>> Connection = Nothing
>>
>> End If
>>
>> ' set flag
>> Result = False
>>
>> End Try
>>
>> ' return result
>> Return Result
>>
>> End Function
>>
>> As per my initial post, I only actually set a value to those objects in the "Try"
>> block, hence the warning...as you suggested, setting them to nothing at the top outside
>> of Try would obviously clear these up.
>>
>>> And lastly, you do not need to set the variables to Nothing. That was something you
>>> had to do in VB6.
>>
>> I do that for completeness, I read/heard about .net clearing up after itself as and
>> when it deems appropriate, I just like to save it the trouble :)
>>
>> Rob
>>

VS2005: Cannot run the website from IIS (database problem)

Hi,

I have developed a website from the model "Starter kits Classified". Well,
the application works good, no problem in my development environment. It
uses a SqlServer 2005 express database (using *.MDF files).

But, when i try to copy it to a IIS website, it dosent work.
- I created a website called "MyApp" under IIS (windows xp pro)
- I copied all the files from my "Visual Studio Express 2005 Web dev" to the
IIS/Default website/MyApp (files in c:\inetpub\wwwroot\MyApp)
- I setup ASP.NET config : ASPNET v2.0, default page = Default.aspx, Runtime
login = ASPNET (without admin rights), Windows integrated authentification
activated.

Results : the login page (login.aspx) works, but it doesnt connect.
It seems that the ASPNET user cannot connect to the Sql server database.
For me it's a mater of access rights to SqlServer 2005 from IIS.

Any ideas to help me please?
Thank you !As long as SQL Express is also installed on the machine, then you are
probably right that it is a access problem (I say that rather than access
rights as there is a prime reason for failure that is not "rights" based).

Check and make sure you have a protocol other than in memory (configuration
tool). That will cure most problems. In some instances, you also have to
turn on SQL Browser. That cures another group. In some instances, you will
also have to add users to SQL Server and give rights to the database, as
well.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com/
*************************************************
Think Outside the Box!
*************************************************
"TTT" <no@.no.nowrote in message
news:4528ff57$0$17549$426a74cc@.news.free.fr...

Quote:

Originally Posted by

Hi,
>
I have developed a website from the model "Starter kits Classified". Well,
the application works good, no problem in my development environment. It
uses a SqlServer 2005 express database (using *.MDF files).
>
But, when i try to copy it to a IIS website, it dosent work.
- I created a website called "MyApp" under IIS (windows xp pro)
- I copied all the files from my "Visual Studio Express 2005 Web dev" to
the IIS/Default website/MyApp (files in c:\inetpub\wwwroot\MyApp)
- I setup ASP.NET config : ASPNET v2.0, default page = Default.aspx,
Runtime login = ASPNET (without admin rights), Windows integrated
authentification activated.
>
Results : the login page (login.aspx) works, but it doesnt connect.
It seems that the ASPNET user cannot connect to the Sql server database.
For me it's a mater of access rights to SqlServer 2005 from IIS.
>
Any ideas to help me please?
Thank you !
>


As long as SQL Express is also installed on the machine, then you are

Quote:

Originally Posted by

probably right that it is a access problem (I say that rather than access
rights as there is a prime reason for failure that is not "rights" based).
>
Check and make sure you have a protocol other than in memory
(configuration tool). That will cure most problems.


I dit it

Quote:

Originally Posted by

In some instances, you also have to turn on SQL Browser. That cures
another group.


I did it also..

Quote:

Originally Posted by

In some instances, you will also have to add users to SQL Server and give
rights to the database, as well.


How to do it?

Quote:

Originally Posted by

Quote:

Originally Posted by

>Hi,
>>
>I have developed a website from the model "Starter kits Classified".
>Well, the application works good, no problem in my development
>environment. It uses a SqlServer 2005 express database (using *.MDF
>files).
>>
>But, when i try to copy it to a IIS website, it dosent work.
>- I created a website called "MyApp" under IIS (windows xp pro)
>- I copied all the files from my "Visual Studio Express 2005 Web dev" to
>the IIS/Default website/MyApp (files in c:\inetpub\wwwroot\MyApp)
>- I setup ASP.NET config : ASPNET v2.0, default page = Default.aspx,
>Runtime login = ASPNET (without admin rights), Windows integrated
>authentification activated.
>>
>Results : the login page (login.aspx) works, but it doesnt connect.
>It seems that the ASPNET user cannot connect to the Sql server database.
>For me it's a mater of access rights to SqlServer 2005 from IIS.
>>
>Any ideas to help me please?
>Thank you !
>>


>
>

vs2005: domain trust relationship problem

Hi guys
I've got the following error on a project which is running locally on a
vs2005 machine (built in webserver), trying to connect to my win2k3 server
active directory.
the error is...
System.SystemException: The trust relationship between this workstation and
the primary domain failed.
How can I fix this? Also, my app is supposed to use integrated windows
authentication - how do I set this up on the vs2005 webserver thingy?!
Cheers
DanHi Dan,
From the error message, this seems a domain trust issue, is your webserver
hosting the asp.net web application in the domain other than the domain
you're going to access and retrieve info from? If so, are the two domain
establishing trust relation between each other? When accessing cross
domain's info such as performing windows authentication cross domain ,
there need trust relation between two domains ... You can try checking
this to see whether it is the case...
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
| Thread-Topic: vs2005: domain trust relationship problem
| thread-index: AcYXxO9Pl0NZ6Kb+T+KJhr9DjtZjtg==
| X-WBNR-Posting-Host: 172.203.227.195
| From: "examnotes" <musoswire@.community.nospam>
| Subject: vs2005: domain trust relationship problem
| Date: Thu, 12 Jan 2006 14:10:02 -0800
| Lines: 18
| Message-ID: <97D922B0-3178-4EF5-B773-B4F0AA6E6195@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:370467
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi guys
|
| I've got the following error on a project which is running locally on a
| vs2005 machine (built in webserver), trying to connect to my win2k3
server
| active directory.
|
| the error is...
|
| System.SystemException: The trust relationship between this workstation
and
| the primary domain failed.
|
| How can I fix this? Also, my app is supposed to use integrated windows
| authentication - how do I set this up on the vs2005 webserver thingy?!
|
| Cheers
|
|
| Dan
|
Hi Steven
Thanks for the reply...
I've actually got round this problem now by using managing to get UNC based
development working, so I don't need to do this now.
However, I'm only using one domain - the one that AD is set up with on my
Win2k3 server, one of the reasons I couldn't understand why I was getting th
e
error. Can you shed any light on why this didn't work? Be useful to know for
future reference :)
Cheers
Dan
"Steven Cheng[MSFT]" wrote:

> Hi Dan,
> From the error message, this seems a domain trust issue, is your webserver
> hosting the asp.net web application in the domain other than the domain
> you're going to access and retrieve info from? If so, are the two domain
> establishing trust relation between each other? When accessing cross
> domain's info such as performing windows authentication cross domain ,
> there need trust relation between two domains ... You can try checking
> this to see whether it is the case...
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> --
> | Thread-Topic: vs2005: domain trust relationship problem
> | thread-index: AcYXxO9Pl0NZ6Kb+T+KJhr9DjtZjtg==
> | X-WBNR-Posting-Host: 172.203.227.195
> | From: "examnotes" <musoswire@.community.nospam>
> | Subject: vs2005: domain trust relationship problem
> | Date: Thu, 12 Jan 2006 14:10:02 -0800
> | Lines: 18
> | Message-ID: <97D922B0-3178-4EF5-B773-B4F0AA6E6195@.microsoft.com>
> | MIME-Version: 1.0
> | Content-Type: text/plain;
> | charset="Utf-8"
> | Content-Transfer-Encoding: 7bit
> | X-Newsreader: Microsoft CDO for Windows 2000
> | Content-Class: urn:content-classes:message
> | Importance: normal
> | Priority: normal
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> | Newsgroups: microsoft.public.dotnet.framework.aspnet
> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
> | Xref: TK2MSFTNGXA02.phx.gbl
> microsoft.public.dotnet.framework.aspnet:370467
> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> |
> | Hi guys
> |
> | I've got the following error on a project which is running locally on a
> | vs2005 machine (built in webserver), trying to connect to my win2k3
> server
> | active directory.
> |
> | the error is...
> |
> | System.SystemException: The trust relationship between this workstation
> and
> | the primary domain failed.
> |
> | How can I fix this? Also, my app is supposed to use integrated windows
> | authentication - how do I set this up on the vs2005 webserver thingy?!
> |
> | Cheers
> |
> |
> | Dan
> |
>
It's hard to say Dan,
Can you reproduce behavior through some other security permission related
operations? e.g impersonate the client user and access some certain
resources on server which is granted access to only specific domain users?
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
| Thread-Topic: vs2005: domain trust relationship problem
| thread-index: AcYYL/KGu3aQ+vdwTmOlwFqvQnnymQ==
| X-WBNR-Posting-Host: 172.203.227.195
| From: "examnotes" <musoswire@.community.nospam>
| References: <97D922B0-3178-4EF5-B773-B4F0AA6E6195@.microsoft.com>
<NrWfmnCGGHA.1236@.TK2MSFTNGXA02.phx.gbl>
| Subject: RE: vs2005: domain trust relationship problem
| Date: Fri, 13 Jan 2006 02:56:03 -0800
| Lines: 87
| Message-ID: <61411B83-FDFE-4939-9DB3-7BDF8491F845@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:370584
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi Steven
|
| Thanks for the reply...
|
| I've actually got round this problem now by using managing to get UNC
based
| development working, so I don't need to do this now.
|
| However, I'm only using one domain - the one that AD is set up with on my
| Win2k3 server, one of the reasons I couldn't understand why I was getting
the
| error. Can you shed any light on why this didn't work? Be useful to know
for
| future reference :)
|
| Cheers
|
|
| Dan
|
| "Steven Cheng[MSFT]" wrote:
|
| > Hi Dan,
| >
| > From the error message, this seems a domain trust issue, is your
webserver
| > hosting the asp.net web application in the domain other than the domain
| > you're going to access and retrieve info from? If so, are the two
domain
| > establishing trust relation between each other? When accessing cross
| > domain's info such as performing windows authentication cross domain ,
| > there need trust relation between two domains ... You can try checking
| > this to see whether it is the case...
| >
| > Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| > --
| > | Thread-Topic: vs2005: domain trust relationship problem
| > | thread-index: AcYXxO9Pl0NZ6Kb+T+KJhr9DjtZjtg==
| > | X-WBNR-Posting-Host: 172.203.227.195
| > | From: "examnotes" <musoswire@.community.nospam>
| > | Subject: vs2005: domain trust relationship problem
| > | Date: Thu, 12 Jan 2006 14:10:02 -0800
| > | Lines: 18
| > | Message-ID: <97D922B0-3178-4EF5-B773-B4F0AA6E6195@.microsoft.com>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:370467
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Hi guys
| > |
| > | I've got the following error on a project which is running locally on
a
| > | vs2005 machine (built in webserver), trying to connect to my win2k3
| > server
| > | active directory.
| > |
| > | the error is...
| > |
| > | System.SystemException: The trust relationship between this
workstation
| > and
| > | the primary domain failed.
| > |
| > | How can I fix this? Also, my app is supposed to use integrated
windows
| > | authentication - how do I set this up on the vs2005 webserver thingy?!
| > |
| > | Cheers
| > |
| > |
| > | Dan
| > |
| >
| >
|

vs2005: domain trust relationship problem

Hi guys

I've got the following error on a project which is running locally on a
vs2005 machine (built in webserver), trying to connect to my win2k3 server
active directory.

the error is...

System.SystemException: The trust relationship between this workstation and
the primary domain failed.

How can I fix this? Also, my app is supposed to use integrated windows
authentication - how do I set this up on the vs2005 webserver thingy?!

Cheers

DanHi Dan,

From the error message, this seems a domain trust issue, is your webserver
hosting the asp.net web application in the domain other than the domain
you're going to access and retrieve info from? If so, are the two domain
establishing trust relation between each other? When accessing cross
domain's info such as performing windows authentication cross domain ,
there need trust relation between two domains ... You can try checking
this to see whether it is the case...

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

-------
| Thread-Topic: vs2005: domain trust relationship problem
| thread-index: AcYXxO9Pl0NZ6Kb+T+KJhr9DjtZjtg==
| X-WBNR-Posting-Host: 172.203.227.195
| From: "=?Utf-8?B?bXVzb3NkZXY=?=" <musoswire@.community.nospam>
| Subject: vs2005: domain trust relationship problem
| Date: Thu, 12 Jan 2006 14:10:02 -0800
| Lines: 18
| Message-ID: <97D922B0-3178-4EF5-B773-B4F0AA6E6195@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSF TNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:370467
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi guys
|
| I've got the following error on a project which is running locally on a
| vs2005 machine (built in webserver), trying to connect to my win2k3
server
| active directory.
|
| the error is...
|
| System.SystemException: The trust relationship between this workstation
and
| the primary domain failed.
|
| How can I fix this? Also, my app is supposed to use integrated windows
| authentication - how do I set this up on the vs2005 webserver thingy?!
|
| Cheers
|
|
| Dan
|
Hi Steven

Thanks for the reply...

I've actually got round this problem now by using managing to get UNC based
development working, so I don't need to do this now.

However, I'm only using one domain - the one that AD is set up with on my
Win2k3 server, one of the reasons I couldn't understand why I was getting the
error. Can you shed any light on why this didn't work? Be useful to know for
future reference :)

Cheers

Dan

"Steven Cheng[MSFT]" wrote:

> Hi Dan,
> From the error message, this seems a domain trust issue, is your webserver
> hosting the asp.net web application in the domain other than the domain
> you're going to access and retrieve info from? If so, are the two domain
> establishing trust relation between each other? When accessing cross
> domain's info such as performing windows authentication cross domain ,
> there need trust relation between two domains ... You can try checking
> this to see whether it is the case...
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> -------
> | Thread-Topic: vs2005: domain trust relationship problem
> | thread-index: AcYXxO9Pl0NZ6Kb+T+KJhr9DjtZjtg==
> | X-WBNR-Posting-Host: 172.203.227.195
> | From: "=?Utf-8?B?bXVzb3NkZXY=?=" <musoswire@.community.nospam>
> | Subject: vs2005: domain trust relationship problem
> | Date: Thu, 12 Jan 2006 14:10:02 -0800
> | Lines: 18
> | Message-ID: <97D922B0-3178-4EF5-B773-B4F0AA6E6195@.microsoft.com>
> | MIME-Version: 1.0
> | Content-Type: text/plain;
> | charset="Utf-8"
> | Content-Transfer-Encoding: 7bit
> | X-Newsreader: Microsoft CDO for Windows 2000
> | Content-Class: urn:content-classes:message
> | Importance: normal
> | Priority: normal
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> | Newsgroups: microsoft.public.dotnet.framework.aspnet
> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSF TNGXA03.phx.gbl
> | Xref: TK2MSFTNGXA02.phx.gbl
> microsoft.public.dotnet.framework.aspnet:370467
> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> |
> | Hi guys
> |
> | I've got the following error on a project which is running locally on a
> | vs2005 machine (built in webserver), trying to connect to my win2k3
> server
> | active directory.
> |
> | the error is...
> |
> | System.SystemException: The trust relationship between this workstation
> and
> | the primary domain failed.
> |
> | How can I fix this? Also, my app is supposed to use integrated windows
> | authentication - how do I set this up on the vs2005 webserver thingy?!
> |
> | Cheers
> |
> |
> | Dan
> |
>
It's hard to say Dan,

Can you reproduce behavior through some other security permission related
operations? e.g impersonate the client user and access some certain
resources on server which is granted access to only specific domain users?

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

-------
| Thread-Topic: vs2005: domain trust relationship problem
| thread-index: AcYYL/KGu3aQ+vdwTmOlwFqvQnnymQ==
| X-WBNR-Posting-Host: 172.203.227.195
| From: "=?Utf-8?B?bXVzb3NkZXY=?=" <musoswire@.community.nospam>
| References: <97D922B0-3178-4EF5-B773-B4F0AA6E6195@.microsoft.com>
<NrWfmnCGGHA.1236@.TK2MSFTNGXA02.phx.gbl>
| Subject: RE: vs2005: domain trust relationship problem
| Date: Fri, 13 Jan 2006 02:56:03 -0800
| Lines: 87
| Message-ID: <61411B83-FDFE-4939-9DB3-7BDF8491F845@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:370584
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi Steven
|
| Thanks for the reply...
|
| I've actually got round this problem now by using managing to get UNC
based
| development working, so I don't need to do this now.
|
| However, I'm only using one domain - the one that AD is set up with on my
| Win2k3 server, one of the reasons I couldn't understand why I was getting
the
| error. Can you shed any light on why this didn't work? Be useful to know
for
| future reference :)
|
| Cheers
|
|
| Dan
|
| "Steven Cheng[MSFT]" wrote:
|
| > Hi Dan,
| >
| > From the error message, this seems a domain trust issue, is your
webserver
| > hosting the asp.net web application in the domain other than the domain

| > you're going to access and retrieve info from? If so, are the two
domain
| > establishing trust relation between each other? When accessing cross
| > domain's info such as performing windows authentication cross domain ,
| > there need trust relation between two domains ... You can try checking
| > this to see whether it is the case...
| >
| > Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| > -------
| > | Thread-Topic: vs2005: domain trust relationship problem
| > | thread-index: AcYXxO9Pl0NZ6Kb+T+KJhr9DjtZjtg==
| > | X-WBNR-Posting-Host: 172.203.227.195
| > | From: "=?Utf-8?B?bXVzb3NkZXY=?=" <musoswire@.community.nospam>
| > | Subject: vs2005: domain trust relationship problem
| > | Date: Thu, 12 Jan 2006 14:10:02 -0800
| > | Lines: 18
| > | Message-ID: <97D922B0-3178-4EF5-B773-B4F0AA6E6195@.microsoft.com>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSF TNGXA03.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:370467
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Hi guys
| > |
| > | I've got the following error on a project which is running locally on
a
| > | vs2005 machine (built in webserver), trying to connect to my win2k3
| > server
| > | active directory.
| > |
| > | the error is...
| > |
| > | System.SystemException: The trust relationship between this
workstation
| > and
| > | the primary domain failed.
| > |
| > | How can I fix this? Also, my app is supposed to use integrated
windows
| > | authentication - how do I set this up on the vs2005 webserver thingy?!
| > |
| > | Cheers
| > |
| > |
| > | Dan
| > |
| >
| >
|

VS2005: Debug - no symbols?

Hi all,
I'm trying to debug my application - my main page works correctly, in that I
can add break points etc, but I have a second page which is loaded when a
link is clicked on the main page.
When I add breakpoints to that page they change to a grey outline of a
circle (instead of the red dot) and a yellow warning icon is placed over the
top, the text reads:
"The breakpoint will not currently be hit. No symbols have been loaded for
this document."
I've tried searching online and I got one result but the conversation wasn't
easy to follow and it didn't help me. It mentioned something about .pdb
files but to be honest I cant find any of these or indeed the .dll for my
own app when its built.
Does anyone have any ideas what the problem might be? I've had this before
but often a rebuild or a closing of VS2005 and then reopening it would
resolve the problem - I've tried all of that and even a reboot and nothing
has so far resolved the problem.
Any help would be REALLY appreciated.
Regards
Robcheck your page, make sure for that page it is being built in debug mode.
that will (usually) add a .pdb file in the debug/bin folder
Regards,
Alvin Bruney
---
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"Rob Meade" <ku.shn.tsews.thbu@.edaem.bor> wrote in message
news:O37Q6ItwHHA.560@.TK2MSFTNGP03.phx.gbl...
> Hi all,
> I'm trying to debug my application - my main page works correctly, in that
> I can add break points etc, but I have a second page which is loaded when
> a link is clicked on the main page.
> When I add breakpoints to that page they change to a grey outline of a
> circle (instead of the red dot) and a yellow warning icon is placed over
> the top, the text reads:
> "The breakpoint will not currently be hit. No symbols have been loaded
> for this document."
> I've tried searching online and I got one result but the conversation
> wasn't easy to follow and it didn't help me. It mentioned something about
> .pdb files but to be honest I cant find any of these or indeed the .dll
> for my own app when its built.
> Does anyone have any ideas what the problem might be? I've had this
> before but often a rebuild or a closing of VS2005 and then reopening it
> would resolve the problem - I've tried all of that and even a reboot and
> nothing has so far resolved the problem.
> Any help would be REALLY appreciated.
> Regards
> Rob
>
"Alvin Bruney [MVP]" ...

> check your page, make sure for that page it is being built in debug mode.
> that will (usually) add a .pdb file in the debug/bin folder
Hi Alvin, thanks for the reply.
The whole project was being built in debug mode.
There seem to be quite a lot of people posting online about these problems -
I resolved mine by removing the "start page" information - if I choose
anything other than "Current Page" I am unable to debug pages other than the
one in the "Start Page" field...
Rob

VS2005ImageLibrary users.ico appears different when displayed in web page

I am displaying some of the VS2005ImageLibrary icons in a treeview control. However, the users.ico file appears different when viewed in the web page in comparison to opening the file in an image editor. In the web page the image is displayed with different people and also with a key. Can anyone explain this?

Does it depend on the OS? I'm using Windows 2000. Maybe it is different and displays as in the image editor when displayed in XP?

VS2008 - how deploy a site?

What is the best way to deploy a website created with VS 2008? (Now that
web deployment projects are delayed.)
I want to be able to modify the web.config file on the website.
Thanks!How about keeping this to one thread?
--Original Message--
From: Cirene [mailto:test@.test.com]
Posted At: Monday, November 26, 2007 4:21 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: VS2008 - how deploy a site?
Subject: VS2008 - how deploy a site?
What is the best way to deploy a website created with VS 2008? (Now
that
web deployment projects are delayed.)
I want to be able to modify the web.config file on the website.
Thanks!
Sorry. But, I think this is a new thread. I am wondering the best (or
standard/recommended) way to deploy a NEW website using VS 2008? (The other
thread had to do with existing VS 2005 websites that are already deployed.)
Thanks!
"Dave Bush" <davembush@.dmbcllc.com> wrote in message
news:ABC18C3293BA4B3085C0F5FD372594D9@.Of
ficeVista...
> How about keeping this to one thread?
> --Original Message--
> From: Cirene [mailto:test@.test.com]
> Posted At: Monday, November 26, 2007 4:21 PM
> Posted To: microsoft.public.dotnet.framework.aspnet
> Conversation: VS2008 - how deploy a site?
> Subject: VS2008 - how deploy a site?
> What is the best way to deploy a website created with VS 2008? (Now
> that
> web deployment projects are delayed.)
> I want to be able to modify the web.config file on the website.
> Thanks!
>
For right now, you'll have to settle for old fashion xcopy/ftp or the
"Build > Publish" menu item. Other than that, wait a w or so while
they get the deploy project working for us again.
--Original Message--
From: Cirene [mailto:test@.test.com]
Posted At: Monday, November 26, 2007 5:08 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: VS2008 - how deploy a site?
Subject: Re: VS2008 - how deploy a site?
Sorry. But, I think this is a new thread. I am wondering the best (or
standard/recommended) way to deploy a NEW website using VS 2008? (The
other
thread had to do with existing VS 2005 websites that are already
deployed.)
Thanks!
"Dave Bush" <davembush@.dmbcllc.com> wrote in message
news:ABC18C3293BA4B3085C0F5FD372594D9@.Of
ficeVista...
> How about keeping this to one thread?
> --Original Message--
> From: Cirene [mailto:test@.test.com]
> Posted At: Monday, November 26, 2007 4:21 PM
> Posted To: microsoft.public.dotnet.framework.aspnet
> Conversation: VS2008 - how deploy a site?
> Subject: VS2008 - how deploy a site?
> What is the best way to deploy a website created with VS 2008? (Now
> that
> web deployment projects are delayed.)
> I want to be able to modify the web.config file on the website.
> Thanks!
>
Thanks alot Dave!
"Dave Bush" <davembush@.dmbcllc.com> wrote in message
news:2A1C4EA9272545B4BBFE40D0A6047D75@.Of
ficeVista...
> For right now, you'll have to settle for old fashion xcopy/ftp or the
> "Build > Publish" menu item. Other than that, wait a w or so while
> they get the deploy project working for us again.
> --Original Message--
> From: Cirene [mailto:test@.test.com]
> Posted At: Monday, November 26, 2007 5:08 PM
> Posted To: microsoft.public.dotnet.framework.aspnet
> Conversation: VS2008 - how deploy a site?
> Subject: Re: VS2008 - how deploy a site?
> Sorry. But, I think this is a new thread. I am wondering the best (or
> standard/recommended) way to deploy a NEW website using VS 2008? (The
> other
> thread had to do with existing VS 2005 websites that are already
> deployed.)
> Thanks!
> "Dave Bush" <davembush@.dmbcllc.com> wrote in message
> news:ABC18C3293BA4B3085C0F5FD372594D9@.Of
ficeVista...
>

VS2008

Is there any possible downside of completely replacing VS2005 with VS2008
willy-nilly? Shouldn't it work with all of my 2.0 projects and websites?
(I have MSDN vs2008 DVD (disk 4400))
Thanks,
Garythe only downside is the 2.0 projects will be converted to vs2008 format, an
d
will be unusable from vs2005. if the whole team (or your solo) has vs2008,
no problem.
also if you use addin's there may not be a vs2008 version yet.
-- bruce (sqlwork.com)
"GaryDean" wrote:

> Is there any possible downside of completely replacing VS2005 with VS2008
> willy-nilly? Shouldn't it work with all of my 2.0 projects and websites?
> (I have MSDN vs2008 DVD (disk 4400))
> Thanks,
> Gary
>
>
Install it side-by-side and see if you are happy. There is a known problem
with the VS2008 HTML designer. Some developers consider it as a showstopper
and reverse to 2005. See http://forums.asp.net/t/1194031.aspx for details.
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"GaryDean" <GaryDean@.newsgroups.nospam> wrote in message
news:e%23Jp6C5VIHA.4684@.TK2MSFTNGP06.phx.gbl...
> Is there any possible downside of completely replacing VS2005 with VS2008
> willy-nilly? Shouldn't it work with all of my 2.0 projects and websites?
> (I have MSDN vs2008 DVD (disk 4400))
> Thanks,
> Gary
>
Eliyahu,

> There is a known problem with the VS2008 HTML designer. Some developers
> consider it as a showstopper and reverse to 2005. See
> http://forums.asp.net/t/1194031.aspx for details.
Heh, that's nothing. Vista routinely hangs for up to a minute for me, so I
wouldn't even notice something like this. :-)
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

VS2008 AJAX and .Net 2.0

I am using VS2008 release and am trying to create a AJAX web site targetted
to .Net 2.0. however, there is no AJAX template and the default.aspx page an
d
web.config that is created has no AJAX 2.0 references. Is this supported
under VS2008 or must I downgrade to VS2005?
Thanks in advance,
MikeAjax is supported in VS 2008, but creating a standard web form and adding
Ajax controls to it from the Toolbox.
Ajax is not a part of .NET 2.0, it's a part of the 3.x Framework. You can
develop the application using VS 2008, but your server will need the 3.x
Framework installed. The 3.5 Framework has just recently been released.
"Mike" <Mike@.discussions.microsoft.com> wrote in message
news:1BB22721-BAFB-4EFD-BBA9-1B3D148B9764@.microsoft.com...
>I am using VS2008 release and am trying to create a AJAX web site targetted
> to .Net 2.0. however, there is no AJAX template and the default.aspx page
> and
> web.config that is created has no AJAX 2.0 references. Is this supported
> under VS2008 or must I downgrade to VS2005?
> Thanks in advance,
> Mike
"by" creating a standard...
"Scott M." <smar@.nospam.nospam> wrote in message
news:%23nWjDXDPIHA.4948@.TK2MSFTNGP02.phx.gbl...
> Ajax is supported in VS 2008, but creating a standard web form and adding
> Ajax controls to it from the Toolbox.
> Ajax is not a part of .NET 2.0, it's a part of the 3.x Framework. You can
> develop the application using VS 2008, but your server will need the 3.x
> Framework installed. The 3.5 Framework has just recently been released.
>
> "Mike" <Mike@.discussions.microsoft.com> wrote in message
> news:1BB22721-BAFB-4EFD-BBA9-1B3D148B9764@.microsoft.com...
>
there currently is no template for 2.0, but if ajax is installed, update the
web.config as specified in the docs, and it will work.
-- bruce (sqlwork.com)
"Mike" wrote:

> I am using VS2008 release and am trying to create a AJAX web site targette
d
> to .Net 2.0. however, there is no AJAX template and the default.aspx page
and
> web.config that is created has no AJAX 2.0 references. Is this supported
> under VS2008 or must I downgrade to VS2005?
> Thanks in advance,
> Mike
Scott,
Thanks. I guess I'll just have to wire 1.0 by hand as my company is not yet
willing to put 3.5 in production.
Regards,
Mike
"Scott M." wrote:

> "by" creating a standard...
>
> "Scott M." <smar@.nospam.nospam> wrote in message
> news:%23nWjDXDPIHA.4948@.TK2MSFTNGP02.phx.gbl...
>
>
Bruce,
That's what I figured. Can you point me to the appropriate docs? I added the
references and handlers manually and got the page to render with scripting
properly, I'm just not sure if I missed anything (probably the stuff related
to WS callbacks).
Regards,
Mike
"bruce barker" wrote:
> there currently is no template for 2.0, but if ajax is installed, update t
he
> web.config as specified in the docs, and it will work.
> -- bruce (sqlwork.com)
>
> "Mike" wrote:
>
http://asp.net/AJAX/Documentation/L...ASPNETAJAX.aspx
-- bruce (sqlwork.com)
"Mike" wrote:
> Bruce,
> That's what I figured. Can you point me to the appropriate docs? I added t
he
> references and handlers manually and got the page to render with scripting
> properly, I'm just not sure if I missed anything (probably the stuff relat
ed
> to WS callbacks).
> Regards,
> Mike
> "bruce barker" wrote:
>
see there how to config it manually
http://asp.net/ajax/documentation/l...ASPNETAJAX.aspx
take into account that u need refer to ajax from .NET 2.0, not from 3.5
version of FW
--
WBR, Michael Nemtsev [.NET/C# MVP].
Blog: http://spaces.live.com/laflour
"Mike" wrote:
> Bruce,
> That's what I figured. Can you point me to the appropriate docs? I added t
he
> references and handlers manually and got the page to render with scripting
> properly, I'm just not sure if I missed anything (probably the stuff relat
ed
> to WS callbacks).
> Regards,
> Mike
> "bruce barker" wrote:
>
Thanks. And I assume switching between 3.5 and 2.0 target will overwrite the
changes
"Michael Nemtsev" wrote:
> see there how to config it manually
> http://asp.net/ajax/documentation/l...ASPNETAJAX.aspx
> take into account that u need refer to ajax from .NET 2.0, not from 3.5
> version of FW
> --
> WBR, Michael Nemtsev [.NET/C# MVP].
> Blog: http://spaces.live.com/laflour
>
> "Mike" wrote:
>
Thanks.
"bruce barker" wrote:
> http://asp.net/AJAX/Documentation/L...ASPNETAJAX.aspx
> -- bruce (sqlwork.com)
>
> "Mike" wrote:
>

VS2008 AJAX and .Net 2.0

I am using VS2008 release and am trying to create a AJAX web site targetted
to .Net 2.0. however, there is no AJAX template and the default.aspx page and
web.config that is created has no AJAX 2.0 references. Is this supported
under VS2008 or must I downgrade to VS2005?

Thanks in advance,

MikeAjax is supported in VS 2008, but creating a standard web form and adding
Ajax controls to it from the Toolbox.

Ajax is not a part of .NET 2.0, it's a part of the 3.x Framework. You can
develop the application using VS 2008, but your server will need the 3.x
Framework installed. The 3.5 Framework has just recently been released.

"Mike" <Mike@.discussions.microsoft.comwrote in message
news:1BB22721-BAFB-4EFD-BBA9-1B3D148B9764@.microsoft.com...

Quote:

Originally Posted by

>I am using VS2008 release and am trying to create a AJAX web site targetted
to .Net 2.0. however, there is no AJAX template and the default.aspx page
and
web.config that is created has no AJAX 2.0 references. Is this supported
under VS2008 or must I downgrade to VS2005?
>
Thanks in advance,
>
Mike


"by" creating a standard...

"Scott M." <smar@.nospam.nospamwrote in message
news:%23nWjDXDPIHA.4948@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

Ajax is supported in VS 2008, but creating a standard web form and adding
Ajax controls to it from the Toolbox.
>
Ajax is not a part of .NET 2.0, it's a part of the 3.x Framework. You can
develop the application using VS 2008, but your server will need the 3.x
Framework installed. The 3.5 Framework has just recently been released.
>
>
"Mike" <Mike@.discussions.microsoft.comwrote in message
news:1BB22721-BAFB-4EFD-BBA9-1B3D148B9764@.microsoft.com...

Quote:

Originally Posted by

>>I am using VS2008 release and am trying to create a AJAX web site
>>targetted
>to .Net 2.0. however, there is no AJAX template and the default.aspx page
>and
>web.config that is created has no AJAX 2.0 references. Is this supported
>under VS2008 or must I downgrade to VS2005?
>>
>Thanks in advance,
>>
>Mike


>
>


there currently is no template for 2.0, but if ajax is installed, update the
web.config as specified in the docs, and it will work.

-- bruce (sqlwork.com)

"Mike" wrote:

Quote:

Originally Posted by

I am using VS2008 release and am trying to create a AJAX web site targetted
to .Net 2.0. however, there is no AJAX template and the default.aspx page and
web.config that is created has no AJAX 2.0 references. Is this supported
under VS2008 or must I downgrade to VS2005?
>
Thanks in advance,
>
Mike


Scott,

Thanks. I guess I'll just have to wire 1.0 by hand as my company is not yet
willing to put 3.5 in production.

Regards,

Mike

"Scott M." wrote:

Quote:

Originally Posted by

"by" creating a standard...
>
>
"Scott M." <smar@.nospam.nospamwrote in message
news:%23nWjDXDPIHA.4948@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

Ajax is supported in VS 2008, but creating a standard web form and adding
Ajax controls to it from the Toolbox.

Ajax is not a part of .NET 2.0, it's a part of the 3.x Framework. You can
develop the application using VS 2008, but your server will need the 3.x
Framework installed. The 3.5 Framework has just recently been released.

"Mike" <Mike@.discussions.microsoft.comwrote in message
news:1BB22721-BAFB-4EFD-BBA9-1B3D148B9764@.microsoft.com...

Quote:

Originally Posted by

>I am using VS2008 release and am trying to create a AJAX web site
>targetted
to .Net 2.0. however, there is no AJAX template and the default.aspx page
and
web.config that is created has no AJAX 2.0 references. Is this supported
under VS2008 or must I downgrade to VS2005?
>
Thanks in advance,
>
Mike



>
>
>


Bruce,

That's what I figured. Can you point me to the appropriate docs? I added the
references and handlers manually and got the page to render with scripting
properly, I'm just not sure if I missed anything (probably the stuff related
to WS callbacks).

Regards,

Mike

"bruce barker" wrote:

Quote:

Originally Posted by

there currently is no template for 2.0, but if ajax is installed, update the
web.config as specified in the docs, and it will work.
>
-- bruce (sqlwork.com)
>
>
"Mike" wrote:
>

Quote:

Originally Posted by

I am using VS2008 release and am trying to create a AJAX web site targetted
to .Net 2.0. however, there is no AJAX template and the default.aspx page and
web.config that is created has no AJAX 2.0 references. Is this supported
under VS2008 or must I downgrade to VS2005?

Thanks in advance,

Mike

VS2008 .NET 3.5 AJAX ContentTemplate display width w/master page

In VS Studio, the ContentTemplate within the UpdatePanel insists on
rendering as a smallish box. Anything I put inside wraps to the
boundaries of this box, and I can't get any feel for what my page will
look like. I think this is related to a DIV problem, but I've set all
DIVs I can find to "width:100%", and I still have this annoying small
box. I was able to grab it once and drag, but then it said the height
of some DIV to something I didn't want and the width to 537%. I would
appreciate any ideas. When I test the page in a regular browser, it
looks fine. I'm also using a Master Page. I'm kind of sick of the VS
Studio designer having problems with images, CSS, and display in
general. I had hoped VS 2008 would have cleaned up a lot of those
issues. Thank you.On Feb 26, 4:21 pm, JM_newsgroups <jm_newsgro...@.yahoo.com> wrote:
> In VS Studio, the ContentTemplate within the UpdatePanel insists on
> rendering as a smallish box. Anything I put inside wraps to the
> boundaries of this box, and I can't get any feel for what my page will
> look like. I think this is related to a DIV problem, but I've set all
> DIVs I can find to "width:100%", and I still have this annoying small
> box. I was able to grab it once and drag, but then it said the height
> of some DIV to something I didn't want and the width to 537%. I would
> appreciate any ideas. When I test the page in a regular browser, it
> looks fine. I'm also using a Master Page. I'm kind of sick of the VS
> Studio designer having problems with images, CSS, and display in
> general. I had hoped VS 2008 would have cleaned up a lot of those
> issues. Thank you.
I got it to clear up like this:
Master page:
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div style="text-align:left; width:100%">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</form>
Child page:
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
runat="Server">
<div style="text-align:left; width:100%">
</div>
</asp:Content>
I still hate how the master page recognizes the CSS/Images in design
view "sometimes" but not always. I guess I'll put up with it as long
as the result in the browser looks right.

VS2008 - how deploy a site?

What is the best way to deploy a website created with VS 2008? (Now that
web deployment projects are delayed.)

I want to be able to modify the web.config file on the website.

Thanks!How about keeping this to one thread?

--Original Message--
From: Cirene [mailto:test@.test.com]
Posted At: Monday, November 26, 2007 4:21 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: VS2008 - how deploy a site?
Subject: VS2008 - how deploy a site?

What is the best way to deploy a website created with VS 2008? (Now
that
web deployment projects are delayed.)

I want to be able to modify the web.config file on the website.

Thanks!
Sorry. But, I think this is a new thread. I am wondering the best (or
standard/recommended) way to deploy a NEW website using VS 2008? (The other
thread had to do with existing VS 2005 websites that are already deployed.)

Thanks!

"Dave Bush" <davembush@.dmbcllc.comwrote in message
news:ABC18C3293BA4B3085C0F5FD372594D9@.OfficeVista. ..

Quote:

Originally Posted by

How about keeping this to one thread?
>
--Original Message--
From: Cirene [mailto:test@.test.com]
Posted At: Monday, November 26, 2007 4:21 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: VS2008 - how deploy a site?
Subject: VS2008 - how deploy a site?
>
What is the best way to deploy a website created with VS 2008? (Now
that
web deployment projects are delayed.)
>
I want to be able to modify the web.config file on the website.
>
Thanks!
>
>


For right now, you'll have to settle for old fashion xcopy/ftp or the
"Build Publish" menu item. Other than that, wait a week or so while
they get the deploy project working for us again.

--Original Message--
From: Cirene [mailto:test@.test.com]
Posted At: Monday, November 26, 2007 5:08 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: VS2008 - how deploy a site?
Subject: Re: VS2008 - how deploy a site?

Sorry. But, I think this is a new thread. I am wondering the best (or
standard/recommended) way to deploy a NEW website using VS 2008? (The
other
thread had to do with existing VS 2005 websites that are already
deployed.)

Thanks!

"Dave Bush" <davembush@.dmbcllc.comwrote in message
news:ABC18C3293BA4B3085C0F5FD372594D9@.OfficeVista. ..

Quote:

Originally Posted by

How about keeping this to one thread?
>
--Original Message--
From: Cirene [mailto:test@.test.com]
Posted At: Monday, November 26, 2007 4:21 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: VS2008 - how deploy a site?
Subject: VS2008 - how deploy a site?
>
What is the best way to deploy a website created with VS 2008? (Now
that
web deployment projects are delayed.)
>
I want to be able to modify the web.config file on the website.
>
Thanks!
>
>


Thanks alot Dave!

"Dave Bush" <davembush@.dmbcllc.comwrote in message
news:2A1C4EA9272545B4BBFE40D0A6047D75@.OfficeVista. ..

Quote:

Originally Posted by

For right now, you'll have to settle for old fashion xcopy/ftp or the
"Build Publish" menu item. Other than that, wait a week or so while
they get the deploy project working for us again.
>
--Original Message--
From: Cirene [mailto:test@.test.com]
Posted At: Monday, November 26, 2007 5:08 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: VS2008 - how deploy a site?
Subject: Re: VS2008 - how deploy a site?
>
Sorry. But, I think this is a new thread. I am wondering the best (or
standard/recommended) way to deploy a NEW website using VS 2008? (The
other
thread had to do with existing VS 2005 websites that are already
deployed.)
>
Thanks!
>
"Dave Bush" <davembush@.dmbcllc.comwrote in message
news:ABC18C3293BA4B3085C0F5FD372594D9@.OfficeVista. ..

Quote:

Originally Posted by

>How about keeping this to one thread?
>>
>--Original Message--
>From: Cirene [mailto:test@.test.com]
>Posted At: Monday, November 26, 2007 4:21 PM
>Posted To: microsoft.public.dotnet.framework.aspnet
>Conversation: VS2008 - how deploy a site?
>Subject: VS2008 - how deploy a site?
>>
>What is the best way to deploy a website created with VS 2008? (Now
>that
>web deployment projects are delayed.)
>>
>I want to be able to modify the web.config file on the website.
>>
>Thanks!
>>
>>


>
>

VS2008 Design view doesn't like LoginView!

It appears that if you have a ContentPlaceHolder within a LoginView
control on a masterpage that you will not be able to use the design
feature in VS2008.
To reproduce the problem simply place a LoginView control on a master
page and place the ContentPlaceHolder within the LoggedInTemplate.
Make another page using the master page you just created. In design
view none of the changes to this page will be visible. I assume this
is because we are not logged in. Although it is possible to change
the view on the master page to view the LoggedInTemplate I have not
found a way to view the LoggedInTemplate on the page using the
masterpage.
Is there a work around?The design of the logged in view is to show content based on conditions. The
norm is logged in/not logged in. It is designed to show either one template
or the other.
You can use it in a master page. You can also use it in a page. The pattern,
in general, is use it in a page if you need content for a single page, use
in a master page if you want content for all pages.
You would like to set it on a master page (all pages) and have it act like
it is on a page (single page), correct?
I view that as an anti-pattern. And, the reason it blows chunks is very
simple. The master page is actually a user control, when you look at it
underneath the hood. You are now placing controls, controlled by the page,
inside a master page control, which is controlled by the page. I know it
does not look like that, when you design, but that is what is happening when
it renders. In effect, you are creating an endless recusion loop in design
view, or at least potentially.
While it is a pain, the more correct manner is to place a Content region
where you want the LoginView and then set it up on each page. It is really
not much work, as you are placing a control on the master and then another
on the page in each instance. It is a bit different way of thinking about
it, however.
I know you may not like this answer, but the other option is to shoot blind
and hope the rendering engine for .NET always renders without recursing too
far and ending up in the same death spiral as Visual Studio.
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
****************************************
*********
| Think outside the box!
|
****************************************
*********
<dan@.logicsoft.biz> wrote in message
news:b4dc9239-2640-4de3-a2d0-858e586bbe98@.e6g2000prf.googlegroups.com...
> It appears that if you have a ContentPlaceHolder within a LoginView
> control on a masterpage that you will not be able to use the design
> feature in VS2008.
> To reproduce the problem simply place a LoginView control on a master
> page and place the ContentPlaceHolder within the LoggedInTemplate.
> Make another page using the master page you just created. In design
> view none of the changes to this page will be visible. I assume this
> is because we are not logged in. Although it is possible to change
> the view on the master page to view the LoggedInTemplate I have not
> found a way to view the LoggedInTemplate on the page using the
> masterpage.
> Is there a work around?

vs2008 deploy to localhost

thanks everyone for a plethora of replies. this is always helpful. it turned
out to be that ASP.NET was not enabled on the server. i had to go to
Add/Remove Programs and enable it from there.
thanks again to everyone. wow!!
"rodchar" wrote:

> hey all,
> i created a basic web app in vs2008 and deployed it to my localhost. when
i
> tried to browse the site, i get the iis message "page cannot be displayed.
"
> any iideas?
> thanks,
> rodcharThat's fine, but what you did was *install* it
from Add/Remove Programs, not "enable" it.
In W2K3, for example, you have to enable it *after* you install it.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"rodchar" <rodchar@.discussions.microsoft.com> wrote in message
news:2AF9A427-FAF2-4863-9917-A06193806739@.microsoft.com...
> thanks everyone for a plethora of replies. this is always helpful. it turn
ed
> out to be that ASP.NET was not enabled on the server. i had to go to
> Add/Remove Programs and enable it from there.
> thanks again to everyone. wow!!
> "rodchar" wrote:
>

vs2008 deploy to localhost

hey all,
i created a basic web app in vs2008 and deployed it to my localhost. when i
tried to browse the site, i get the iis message "page cannot be displayed."

any iideas?
thanks,
rodcharhttp://support.microsoft.com/kb/241344
"rodchar" <rodchar@.discussions.microsoft.comwrote in message
news:06339FF3-6065-4EB2-BC2D-AA69D5499861@.microsoft.com...

Quote:

Originally Posted by

hey all,
i created a basic web app in vs2008 and deployed it to my localhost. when
i
tried to browse the site, i get the iis message "page cannot be
displayed."
>
any iideas?
thanks,
rodchar


On Nov 7, 8:38 pm, rodchar <rodc...@.discussions.microsoft.comwrote:

Quote:

Originally Posted by

hey all,
i created a basic web app in vs2008 and deployed it to my localhost. when i
tried to browse the site, i get the iis message "page cannot be displayed."
>
any iideas?
thanks,
rodchar


try to disable IE friendly error messages (Tools - Internet Options -
Advanced...)
see what i'm talking about here:

http://www25.brinkster.com/rodchar/medtest.htm
"LVP" wrote:

Quote:

Originally Posted by

http://support.microsoft.com/kb/241344
>
>
"rodchar" <rodchar@.discussions.microsoft.comwrote in message
news:06339FF3-6065-4EB2-BC2D-AA69D5499861@.microsoft.com...

Quote:

Originally Posted by

hey all,
i created a basic web app in vs2008 and deployed it to my localhost. when
i
tried to browse the site, i get the iis message "page cannot be
displayed."

any iideas?
thanks,
rodchar


>
>
>


Try browsing to an HTML page not ASPX page if that works then you need to
configure ASP.Net on IIS.
Also check the ASP.Net version, wouldn't hurt to run
C:\WINDOWS\Microsoft.Net\Framework\v2.0.50727\aspn et_regiis.exe -i
You can also check the weblog to see if the page is actualy being hit, can
usualy be found at C:\WINDOWS\system32\LogFiles\W3SVC1.

Regards,
Brian K. Williams

"rodchar" <rodchar@.discussions.microsoft.comwrote in message
news:06339FF3-6065-4EB2-BC2D-AA69D5499861@.microsoft.com...

Quote:

Originally Posted by

hey all,
i created a basic web app in vs2008 and deployed it to my localhost. when
i
tried to browse the site, i get the iis message "page cannot be
displayed."
>
any iideas?
thanks,
rodchar


On Nov 7, 9:44 pm, rodchar <rodc...@.discussions.microsoft.comwrote:

Quote:

Originally Posted by

see what i'm talking about here:
>
http://www25.brinkster.com/rodchar/medtest.htm
>
>


Is Asp.net enabled in IIS? Check the web service extensions node
Have you tried to make sure that you web app is an application.
right click on the test2
Under Application Settings
next to Application name hit Remove then Create.

"LVP" <sql_agentman@.hotmail.comwrote in message
news:eNgIpxXIIHA.280@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

http://support.microsoft.com/kb/241344
>
>
"rodchar" <rodchar@.discussions.microsoft.comwrote in message
news:06339FF3-6065-4EB2-BC2D-AA69D5499861@.microsoft.com...

Quote:

Originally Posted by

>hey all,
>i created a basic web app in vs2008 and deployed it to my localhost. when
>i
>tried to browse the site, i get the iis message "page cannot be
>displayed."
>>
>any iideas?
>thanks,
>rodchar


>
>


That's a client issue.

He needs to reconfigure IE to enable enhanced security configuration.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Alexey Smirnov" <alexey.smirnov@.gmail.comwrote in message
news:1194469130.898282.252820@.o38g2000hse.googlegr oups.com...

Quote:

Originally Posted by

On Nov 7, 9:44 pm, rodchar <rodc...@.discussions.microsoft.comwrote:

Quote:

Originally Posted by

>see what i'm talking about here:
>>
>http://www25.brinkster.com/rodchar/medtest.htm
>>
>>


>
Is Asp.net enabled in IIS? Check the web service extensions node
>
>


On Nov 7, 11:03 pm, "Juan T. Llibre" <nomailrepl...@.nowhere.com>
wrote:

Quote:

Originally Posted by

That's a client issue.
>
He needs to reconfigure IE to enable enhanced security configuration.
>
Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en espaol :http://asp.net.do/foros/
======================================"Alexey Smirnov" <alexey.smir...@.gmail.comwrote in message
>
news:1194469130.898282.252820@.o38g2000hse.googlegr oups.com...
>
>
>

Quote:

Originally Posted by

On Nov 7, 9:44 pm, rodchar <rodc...@.discussions.microsoft.comwrote:

Quote:

Originally Posted by

see what i'm talking about here:


>

Quote:

Originally Posted by

Quote:

Originally Posted by

>http://www25.brinkster.com/rodchar/medtest.htm


>

Quote:

Originally Posted by

Is Asp.net enabled in IIS? Check the web service extensions node- Hide quoted text -


>
- Show quoted text -


HTTP 404 is a very common problem with IIS 6, because ASP.NET is
disabled by default.
re:
!HTTP 404 is a very common problem with IIS 6, because ASP.NET is disabled by default.

Check the screen previous to the 404...

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Alexey Smirnov" <alexey.smirnov@.gmail.comwrote in message
news:1194474760.681995.188040@.k79g2000hse.googlegr oups.com...
On Nov 7, 11:03 pm, "Juan T. Llibre" <nomailrepl...@.nowhere.com>
wrote:

Quote:

Originally Posted by

That's a client issue.
>
He needs to reconfigure IE to enable enhanced security configuration.
>
Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en espaol :http://asp.net.do/foros/
======================================"Alexey Smirnov" <alexey.smir...@.gmail.comwrote in message
>
news:1194469130.898282.252820@.o38g2000hse.googlegr oups.com...
>
>
>

Quote:

Originally Posted by

On Nov 7, 9:44 pm, rodchar <rodc...@.discussions.microsoft.comwrote:

Quote:

Originally Posted by

see what i'm talking about here:


>

Quote:

Originally Posted by

Quote:

Originally Posted by

>http://www25.brinkster.com/rodchar/medtest.htm


>

Quote:

Originally Posted by

Is Asp.net enabled in IIS? Check the web service extensions node- Hide quoted text -


>
- Show quoted text -


HTTP 404 is a very common problem with IIS 6, because ASP.NET is
disabled by default.
On Nov 8, 12:08 am, "Juan T. Llibre" <nomailrepl...@.nowhere.com>
wrote:

Quote:

Originally Posted by

re:
!HTTP 404 is a very common problem with IIS 6, because ASP.NET is disabled by default.
>
Check the screen previous to the 404...
>
Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en espaol :http://asp.net.do/foros/
======================================"Alexey Smirnov" <alexey.smir...@.gmail.comwrote in message
>
news:1194474760.681995.188040@.k79g2000hse.googlegr oups.com...
On Nov 7, 11:03 pm, "Juan T. Llibre" <nomailrepl...@.nowhere.com>
wrote:
>
>
>
>
>

Quote:

Originally Posted by

That's a client issue.


>

Quote:

Originally Posted by

He needs to reconfigure IE to enable enhanced security configuration.


>

Quote:

Originally Posted by

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en espaol :http://asp.net.do/foros/
======================================"Alexey Smirnov" <alexey.smir...@.gmail.comwrote in message


>

Quote:

Originally Posted by

news:1194469130.898282.252820@.o38g2000hse.googlegr oups.com...


>

Quote:

Originally Posted by

Quote:

Originally Posted by

On Nov 7, 9:44 pm, rodchar <rodc...@.discussions.microsoft.comwrote:
>see what i'm talking about here:


>

Quote:

Originally Posted by

Quote:

Originally Posted by

>>http://www25.brinkster.com/rodchar/medtest.htm


>

Quote:

Originally Posted by

Quote:

Originally Posted by

Is Asp.net enabled in IIS? Check the web service extensions node- Hide quoted text -


>

Quote:

Originally Posted by

- Show quoted text -


>
HTTP 404 is a very common problem with IIS 6, because ASP.NET is
disabled by default.- Hide quoted text -
>
- Show quoted text -


Hi Juan,

I made a test on my Win2003 server. I created a test website with
default.aspx in the root directory. First, I enabled Internet Explorer
Enhanced Security Configuration (IE ESC) by adding this component in
Add or Remove Programs. When starting Internet Explorer, I now had a
page from res://shdoclc.dll/hardAdmin.htm that is about "Internet
Explorer Enhanced Security Configuration is enabled". Then I disabled
IE ESC and on starting Internet Explorer, I got the page from
res://shdoclc.dll/softAdmin.htm (as per screen) telling me that
"Internet Explorer Enhanced Security Configuration is not enabled".
Now, when I typing http://localhost I see the test page.
re:
!Then I disabled IE ESC and on starting Internet Explorer, I got the page
! from res://shdoclc.dll/softAdmin.htm (as per screen) telling me that
!"Internet Explorer Enhanced Security Configuration is not enabled".
!Now, when I typing http://localhost I see the test page.

You could, also, have left it enabled, and configured localhost as a Trusted site.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Alexey Smirnov" <alexey.smirnov@.gmail.comwrote in message
news:1194527744.697259.213120@.q5g2000prf.googlegro ups.com...
On Nov 8, 12:08 am, "Juan T. Llibre" <nomailrepl...@.nowhere.com>
wrote:

Quote:

Originally Posted by

re:
!HTTP 404 is a very common problem with IIS 6, because ASP.NET is disabled by default.
>
Check the screen previous to the 404...
>
Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en espaol :http://asp.net.do/foros/
======================================"Alexey Smirnov" <alexey.smir...@.gmail.comwrote in message
>
news:1194474760.681995.188040@.k79g2000hse.googlegr oups.com...
On Nov 7, 11:03 pm, "Juan T. Llibre" <nomailrepl...@.nowhere.com>
wrote:
>
>
>
>
>

Quote:

Originally Posted by

That's a client issue.


>

Quote:

Originally Posted by

He needs to reconfigure IE to enable enhanced security configuration.


>

Quote:

Originally Posted by

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en espaol :http://asp.net.do/foros/
======================================"Alexey Smirnov" <alexey.smir...@.gmail.comwrote in message


>

Quote:

Originally Posted by

news:1194469130.898282.252820@.o38g2000hse.googlegr oups.com...


>

Quote:

Originally Posted by

Quote:

Originally Posted by

On Nov 7, 9:44 pm, rodchar <rodc...@.discussions.microsoft.comwrote:
>see what i'm talking about here:


>

Quote:

Originally Posted by

Quote:

Originally Posted by

>>http://www25.brinkster.com/rodchar/medtest.htm


>

Quote:

Originally Posted by

Quote:

Originally Posted by

Is Asp.net enabled in IIS? Check the web service extensions node- Hide quoted text -


>

Quote:

Originally Posted by

- Show quoted text -


>
HTTP 404 is a very common problem with IIS 6, because ASP.NET is
disabled by default.- Hide quoted text -
>
- Show quoted text -


Hi Juan,

I made a test on my Win2003 server. I created a test website with
default.aspx in the root directory. First, I enabled Internet Explorer
Enhanced Security Configuration (IE ESC) by adding this component in
Add or Remove Programs. When starting Internet Explorer, I now had a
page from res://shdoclc.dll/hardAdmin.htm that is about "Internet
Explorer Enhanced Security Configuration is enabled". Then I disabled
IE ESC and on starting Internet Explorer, I got the page from
res://shdoclc.dll/softAdmin.htm (as per screen) telling me that
"Internet Explorer Enhanced Security Configuration is not enabled".
Now, when I typing http://localhost I see the test page.
thanks everyone for a plethora of replies. this is always helpful. it turned
out to be that ASP.NET was not enabled on the server. i had to go to
Add/Remove Programs and enable it from there.

thanks again to everyone. wow!!

"rodchar" wrote:

Quote:

Originally Posted by

hey all,
i created a basic web app in vs2008 and deployed it to my localhost. when i
tried to browse the site, i get the iis message "page cannot be displayed."
>
any iideas?
thanks,
rodchar


That's fine, but what you did was *install* it
from Add/Remove Programs, not "enable" it.

In W2K3, for example, you have to enable it *after* you install it.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"rodchar" <rodchar@.discussions.microsoft.comwrote in message
news:2AF9A427-FAF2-4863-9917-A06193806739@.microsoft.com...

Quote:

Originally Posted by

thanks everyone for a plethora of replies. this is always helpful. it turned
out to be that ASP.NET was not enabled on the server. i had to go to
Add/Remove Programs and enable it from there.
>
thanks again to everyone. wow!!
>
"rodchar" wrote:
>

Quote:

Originally Posted by

>hey all,
>i created a basic web app in vs2008 and deployed it to my localhost. when i
>tried to browse the site, i get the iis message "page cannot be displayed."
>>
>any iideas?
>thanks,
>rodchar