I want to create a simle Exe Or Dll file which just execute some keys. I do not want to create a form. What kind of project I have to create?
Thanks
ShafiqConsole Application (creates an EXE without forms)
I want to create a simle Exe Or Dll file which just execute some keys. I do not want to create a form. What kind of project I have to create?
Thanks
ShafiqConsole Application (creates an EXE without forms)
I've been working on some differnt projects for a while and I just got back to an ASP.NET 2.0 (VB) project and I seem to have forgotten (screwed up?) some basics. I created a new form (using a master page) and I simply want to read and use an integer value from a SQL Table (see code below). In this code, "conn" gets flagged as "Declaration expected" in the Open and Close statements (but it is OK in the Dim cmd1... statement?). I want to retrieve the residentid integer value from the table and pass it as a query parameter in the link to residentfeature.aspx - I can't find the correct syntax to accomplish that either.
I know I must be missing something very basic here but I can't see it?
================ Code ================
<%
@dotnet.itags.org.ImportNamespace="System.Data" %><%
@dotnet.itags.org.ImportNamespace="System.Data.SQLClient" %><%@dotnet.itags.org. Page Language="VB" MasterPageFile="~/Default.master" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
Dim residentid As Integer
<script runat="server">
Dim conn As New SqlConnection(ConfigurationManager.ConnectionStrings("GoodSamSiteDB").ConnectionString)
Dim cmd1 As New SqlCommand("SELECT resident From Features", conn)
conn.Open()
residentid = cmd1.ExecuteScalar()
conn.Close()
</script>
<div id="body">
<div class="fullwidth">
<h2>Weekly Features</h2>
<h3>Featured Resident</h3>
<a href="http://links.10026.com/?link=residentfeature.aspx?id=" + residentid + >Meet Mary Jones</a>
</div>
</div>
</asp:Content>
Dim connAs SqlConnection =New SqlConnection(ConfigurationManager.ConnectionStrings("GoodSamSiteDB").ConnectionString)Dim cmd1As SqlCommand =New SqlCommand("SELECT resident From Features", conn)Kevin;
Thanks for the response but that change had no effect?
<asp:HyperLink id=HyperLink1 Text="Meet Mary Jones" NavigateUrl='<%# "detailspage_vb.aspx?id=" + residentid%>' runat="server"/>you needed to wrap the code in an event
if you want to add a code-behind class for global.asax, you do it by adding
a class to App_Code (or into external class library) which derives from
HttpApplication and then associate this class with global.asax by specifying
CodeFile and Inherits attributes in @.Application directive.
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"Larry Epn" <larryepn@.noemail.noemailwrote in message
news:4F16F9B8-3CD2-480E-8FF9-5911014EFF98@.microsoft.com...
Quote:
Originally Posted by
Simple question: I have a c# asp.net project that was given to me. It
has
the c# code within the <scriptsection of the global.asax file. I would
rather have it in separate files; e.g., global.asax.cs; So, I deleted the
existing global.asax file (there was nothing important in it yet), and
went
to add a new one through VS2005. I chose the "Global Application Class"
(Global.asax) item from the list of new items. The "Place code in
separate
file" checkbox option is DISABLED! WHY?
Thanks.
"Teemu Keiski" wrote:
Quote:
Originally Posted by
Hi,
>
if you want to add a code-behind class for global.asax, you do it by adding
a class to App_Code (or into external class library) which derives from
HttpApplication and then associate this class with global.asax by specifying
CodeFile and Inherits attributes in @.Application directive.
>
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
>
"Larry Epn" <larryepn@.noemail.noemailwrote in message
news:4F16F9B8-3CD2-480E-8FF9-5911014EFF98@.microsoft.com...
Quote:
Originally Posted by
Simple question: I have a c# asp.net project that was given to me. It
has
the c# code within the <scriptsection of the global.asax file. I would
rather have it in separate files; e.g., global.asax.cs; So, I deleted the
existing global.asax file (there was nothing important in it yet), and
went
to add a new one through VS2005. I chose the "Global Application Class"
(Global.asax) item from the list of new items. The "Place code in
separate
file" checkbox option is DISABLED! WHY?
Thanks.
See. http://dallas.sark.com/SarkBlog/cbo...11/14/2234.aspx
and
http://groups.google.com/group/micr...9acb5c0fbd1bc54
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"Larry Epn" <larryepn@.noemail.noemailwrote in message
news:BDD1A75B-64E9-4BCB-BAAE-3DEDFD1A60CC@.microsoft.com...
Quote:
Originally Posted by
Thanks for the reply. I know this construct and have manually put this
into
some files; however, I just don't know why VS2005 is being so stubborn.
Is
there a project or environment configuration setting that I can use to
turn
this on? The thing is that the option is ENABLED when I add a new web
page,
but not when I want to add a global.asax. It makes no sense.
>
"Teemu Keiski" wrote:
>
Quote:
Originally Posted by
>Hi,
>>
>if you want to add a code-behind class for global.asax, you do it by
>adding
>a class to App_Code (or into external class library) which derives from
>HttpApplication and then associate this class with global.asax by
>specifying
>CodeFile and Inherits attributes in @.Application directive.
>>
>--
>Teemu Keiski
>ASP.NET MVP, AspInsider
>Finland, EU
>http://blogs.aspadvice.com/joteke
>>
>"Larry Epn" <larryepn@.noemail.noemailwrote in message
>news:4F16F9B8-3CD2-480E-8FF9-5911014EFF98@.microsoft.com...
Quote:
Originally Posted by
Simple question: I have a c# asp.net project that was given to me. It
has
the c# code within the <scriptsection of the global.asax file. I
would
rather have it in separate files; e.g., global.asax.cs; So, I deleted
the
existing global.asax file (there was nothing important in it yet), and
went
to add a new one through VS2005. I chose the "Global Application
Class"
(Global.asax) item from the list of new items. The "Place code in
separate
file" checkbox option is DISABLED! WHY?
Thanks.
Besides Teemu's input, you can also find related feedback here:
https://connect.microsoft.com/Visua...ack.aspx?Feedba
ckID=104811. According to Visual Studio Product team, it will be considered
in future version of Visual Studio. Thank you for your understanding.
Sincerely,
Walter Wang (wawang@.online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...rt/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Apologies for this simple question. Would be grateful if you share your
opinion on this.
I've written a web application, compiling all classes into one project
DLL. Now I wonder if there are performance / resource advantages if I
compile some classes into separate DLLs and reference them instead. Any
articles, information on this? Advantages, Disadvantages? Will it slow
down the application if it has to reference a DLL?
Thanks very much for your help & efforts!
MartinPerformance isn't a factor...Disadvantage? You have 2+ dlls floating around
which might make it harder to maintain (assuming you are shipping a product,
which you likely aren't). Advantages? Better organization, reuse, less
bloat...
There's really no reason not to...but you shouldn't just do it for the sake
of it...hopefully there's some reasoning behind why they don't belong
together...
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
<theintrepidfox@.hotmail.com> wrote in message
news:1112238300.593113.237330@.f14g2000cwb.googlegr oups.com...
> Dear Group
> Apologies for this simple question. Would be grateful if you share your
> opinion on this.
> I've written a web application, compiling all classes into one project
> DLL. Now I wonder if there are performance / resource advantages if I
> compile some classes into separate DLLs and reference them instead. Any
> articles, information on this? Advantages, Disadvantages? Will it slow
> down the application if it has to reference a DLL?
> Thanks very much for your help & efforts!
> Martin
It is not a matter of performance. It is a matter of your system design. For
example, if you organize your application in presentation, business and data
access layers, you might have all forms in one project, business classes in
another project and data access classes in another project. 3 projects, 3
dlls.
Eliyahu
<theintrepidfox@.hotmail.com> wrote in message
news:1112238300.593113.237330@.f14g2000cwb.googlegr oups.com...
> Dear Group
> Apologies for this simple question. Would be grateful if you share your
> opinion on this.
> I've written a web application, compiling all classes into one project
> DLL. Now I wonder if there are performance / resource advantages if I
> compile some classes into separate DLLs and reference them instead. Any
> articles, information on this? Advantages, Disadvantages? Will it slow
> down the application if it has to reference a DLL?
> Thanks very much for your help & efforts!
> Martin
Please. helpIf you are remoting, set up a source repository (SourceSafe, CVS,
Subversion, Team System). Each developer checks out to a different spot on
the machine. Everyone remotes in and has code in a different directory.
NOTE: Only one person can debug at a time if you are on one machine, ulnless
you set up independent app pools (or use file based webs if using Visual
Studio 2005).
To set up independent app pools, you go into IIS and create the app pools.
After having each developer pull code to a specific location, you set up the
applications as web applications and set their pool.
Open IIS Manager
Create pools
Have developers get code to a directory
Set each developers directory in IIS by creating new virtual directories
Right click each application directory in IIS Mgr and go to properties
Under home directory, set the application pool for this application
Once again, you CAN go to file based webs, which require no setup.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
*************************************************
Think outside of the box!
*************************************************
<alexey.yakovlev@.gmail.comwrote in message
news:1158064382.308774.159710@.i42g2000cwa.googlegr oups.com...
Quote:
Originally Posted by
Hi, please read this before
http://groups.google.ru/group/micro...-JaaxaeIKyXy0Eg
>
I need to organize the same structure in my solution. This means to
have 1 Web Application Project or Web Site Project. But when developers
get solution from VSS and start them they should have their own
WebFolder to be opened. That means dev1 should have web project in
remotehost\dev1webfolder, dev in remotehost\dev2webfolder.
And i don't want developers to change project file in vss on their own
computers to reach this.
>
Please. help
>
Hi ya,
i am working on a project which includes dll's of many projects
Now i want to seperate my app , because whenever a change is made in any of the included project , i have to recompile my project.
so can anyone suggest me ....how to seperate my application.
Thanks
one Solution file for One Project file is probably the best way to do it.
But maybe i dont understand you properly.
if you have one project, and you reference say, 5 .dll files from other projects. When those projects change, all you have to do is re-compile them, your project that references those ones should not need to be re-compilled, just the new .dll should overwrite the old one.
Creating a Solution with Project Dependancies can also simplify the process, that way if you need to mod a .dll your referencing, you already have the project in your solution.
HTH,
mcm
Hi,
I have a page "Project Folder\Customers\Products.aspx" which I want to inherit from another page "Project Folder\Product.aspx". As mentioned both files are in seperate folder.
In the customer specific Product.aspx page I want to use some code of the main product page. How can I do this? How can I inherit from page in a different folder?
Thanks in advance.
I have a RCW class that was generated by the VS.NET2003 IDE when I added a
COM dll reference to my project. This all works fine when I call methods on
it. My initial problem is that in ASP.NET I would like to add this to the
Session object whilst using SQLServer as the session storage. Unfortunately,
as this required the RCW class to be serializable, this won't work, and
throws an exception saying you can't Serialize the Session state if it
contains objects that are MarshalByRef and the session state mode is
SQLServer.
So question 1 - Is there an easy way to make an RCW class serializable? (I'm
expecting this to be "No", but if you don't ask you don't get)
Question 2 - My COM dll is capable of storing its own state, via its
implementation of IPersistStream. After a lot of Googling I've added C#
definitions of IPersist and IPersistStream. If I have a class AAA which
contains an instance of MyLib::IRCWClass which is marked as
NonSerializable, then I've set AAA to implement ISerializable, and in
GetObjectData() I have
MemoryStream memstream = new MemoryStream();
ComStream cstream = new ComStream(memstream);
IPersistStream pStream = (IPersistStream)m_RCWClass;
if ( pStream != null )
pStream.Save( cstream, false );
else
Trace.WriteLine( "No IPersistStream" );
This throws the same exception when it calls Save. However if I change the
third line to
IPersistStream pStream = m_RCWClass as IPersistStream;
This also throws the same exception. Is there any way to gain access to the
IPersistStream methods, and then serialize the contents of my stream?
Question 3 - As an alternative approach, I've tried to get the bytes out of
the IPersistStream another way, with a view to storing this byte array
separately in the Session object. A first attempt is
IPersistStream p = m_AAAClass.RCWClass as IPersistStream;
if ( p != null )
{
System.IO.MemoryStream memstream = new System.IO.MemoryStream();
ComStream cstream = new ComStream(memstream);
if ( p != null )
{
p.Save( cstream, false );
System.IO.MemoryStream mem = cstream.stream as
System.IO.MemoryStream;
return mem.GetBuffer();
}
else
return null;
}
return null;
This time the pointer to IPersistStream is null the first time, but after
that always throws a COMException with the message "The server threw an
exception". Am I barking up the wrong tree?
Fundamentally wanting to store an RCW class in the Session object doesn't
seem to be a strange thing to want to do, but after Googling myself into a
frenzy, it seems that very few people have asked about it. Those that have
have been told to set the sesseion state to InProc, but this isn't really an
option, as this means you can't run on a web farm. Any ideas please?
Cheers,
ChrisWell, when you think of what RCW stands for, its simply a wrapper for
another class. In this case, its a wrapper to a com instance which may or
may not me serializable (remember that could be looking at a c++ 6.0 on the
other side of a wrapper.
Secondly, the COM+ paradigm focuses on a service oriented architecture
where your COM+ components are stateless, or maintain a transient state. So
if you have a COM+ class that does need to maintain sone sort of state, then
your might need to re-architect your solution.
Now, there is no reason that a serializable class can not call a COM+
instance to perform some kind of action. That might be something that can
help you out. Also you can pass serializable classes to COM+ components by
reference.
You'll really want to take a lok at your state management strategy as a
whole and see if there os some way of bringing it down to a single point.
In the traditional approach to web applications, this has meant that state
was always managed through the use of relational databases (e.g. the famous
Shopping cart). I'm not recommenting this as a target architecture, but it
you can take a look at your user state from the standpoint of creating a
single "thing" database, class, session object, etc, that represents your
state, it might clear things up
"Chris Puncher" <chrisNOSPAMdotPuncher@.NOdocumationSPAM.co.uk> wrote in
message news:eAXk1pk$EHA.3256@.TK2MSFTNGP11.phx.gbl...
> Hi.
> I have a RCW class that was generated by the VS.NET2003 IDE when I added a
> COM dll reference to my project. This all works fine when I call methods
on
> it. My initial problem is that in ASP.NET I would like to add this to the
> Session object whilst using SQLServer as the session storage.
Unfortunately,
> as this required the RCW class to be serializable, this won't work, and
> throws an exception saying you can't Serialize the Session state if it
> contains objects that are MarshalByRef and the session state mode is
> SQLServer.
> So question 1 - Is there an easy way to make an RCW class serializable?
(I'm
> expecting this to be "No", but if you don't ask you don't get)
> Question 2 - My COM dll is capable of storing its own state, via its
> implementation of IPersistStream. After a lot of Googling I've added C#
> definitions of IPersist and IPersistStream. If I have a class AAA which
> contains an instance of MyLib::IRCWClass which is marked as
> NonSerializable, then I've set AAA to implement ISerializable, and in
> GetObjectData() I have
> MemoryStream memstream = new MemoryStream();
> ComStream cstream = new ComStream(memstream);
>
> IPersistStream pStream = (IPersistStream)m_RCWClass;
> if ( pStream != null )
> pStream.Save( cstream, false );
> else
> Trace.WriteLine( "No IPersistStream" );
> This throws the same exception when it calls Save. However if I change the
> third line to
> IPersistStream pStream = m_RCWClass as IPersistStream;
> This also throws the same exception. Is there any way to gain access to
the
> IPersistStream methods, and then serialize the contents of my stream?
> Question 3 - As an alternative approach, I've tried to get the bytes out
of
> the IPersistStream another way, with a view to storing this byte array
> separately in the Session object. A first attempt is
> IPersistStream p = m_AAAClass.RCWClass as IPersistStream;
> if ( p != null )
> {
> System.IO.MemoryStream memstream = new System.IO.MemoryStream();
> ComStream cstream = new ComStream(memstream);
> if ( p != null )
> {
> p.Save( cstream, false );
> System.IO.MemoryStream mem = cstream.stream as
> System.IO.MemoryStream;
> return mem.GetBuffer();
> }
> else
> return null;
> }
> return null;
> This time the pointer to IPersistStream is null the first time, but after
> that always throws a COMException with the message "The server threw an
> exception". Am I barking up the wrong tree?
> Fundamentally wanting to store an RCW class in the Session object doesn't
> seem to be a strange thing to want to do, but after Googling myself into a
> frenzy, it seems that very few people have asked about it. Those that have
> have been told to set the sesseion state to InProc, but this isn't really
an
> option, as this means you can't run on a web farm. Any ideas please?
> Cheers,
> Chris
David,
Thanks for your reply. The posistion I'm in is that the company I work for
has a successful web product (ASP/C++ ATL COM). This is gradually being
moved to ASP.NET, but in the process many of the underlying COM components
will still be used, albeit with thin C# .NET wrappers on top. The COM
component that I'm having problems with is our existing session state
object, hence its ability to stream itself (where in the old product it is
written to a SQLServer database). This object is then deserialised and
passed into many of the other COM components which are required to perform
business functionality.
So what I am trying to do is put the RCW class instance for the existing
session state object into ASP.NET's Session object, and hence to SQLServer.
Failing this then if I can get at the byte stream that represents the old
session state object, I'll be happy to stick that in Session.
I hope this clears up my question a bit.
Cheers,
Chris
"David Jessee" <djessee@.houston.rr.com> wrote in message
news:usp0VGs$EHA.1400@.TK2MSFTNGP11.phx.gbl...
> Well, when you think of what RCW stands for, its simply a wrapper for
> another class. In this case, its a wrapper to a com instance which may or
> may not me serializable (remember that could be looking at a c++ 6.0 on
the
> other side of a wrapper.
> Secondly, the COM+ paradigm focuses on a service oriented architecture
> where your COM+ components are stateless, or maintain a transient state.
So
> if you have a COM+ class that does need to maintain sone sort of state,
then
> your might need to re-architect your solution.
> Now, there is no reason that a serializable class can not call a COM+
> instance to perform some kind of action. That might be something that can
> help you out. Also you can pass serializable classes to COM+ components
by
> reference.
> You'll really want to take a lok at your state management strategy as a
> whole and see if there os some way of bringing it down to a single point.
> In the traditional approach to web applications, this has meant that state
> was always managed through the use of relational databases (e.g. the
famous
> Shopping cart). I'm not recommenting this as a target architecture, but it
> you can take a look at your user state from the standpoint of creating a
> single "thing" database, class, session object, etc, that represents your
> state, it might clear things up
> "Chris Puncher" <chrisNOSPAMdotPuncher@.NOdocumationSPAM.co.uk> wrote in
> message news:eAXk1pk$EHA.3256@.TK2MSFTNGP11.phx.gbl...
> > Hi.
> > I have a RCW class that was generated by the VS.NET2003 IDE when I added
a
> > COM dll reference to my project. This all works fine when I call methods
> on
> > it. My initial problem is that in ASP.NET I would like to add this to
the
> > Session object whilst using SQLServer as the session storage.
> Unfortunately,
> > as this required the RCW class to be serializable, this won't work, and
> > throws an exception saying you can't Serialize the Session state if it
> > contains objects that are MarshalByRef and the session state mode is
> > SQLServer.
> > So question 1 - Is there an easy way to make an RCW class serializable?
> (I'm
> > expecting this to be "No", but if you don't ask you don't get)
> > Question 2 - My COM dll is capable of storing its own state, via its
> > implementation of IPersistStream. After a lot of Googling I've added C#
> > definitions of IPersist and IPersistStream. If I have a class AAA which
> > contains an instance of MyLib::IRCWClass which is marked as
> > NonSerializable, then I've set AAA to implement ISerializable, and in
> > GetObjectData() I have
> > MemoryStream memstream = new MemoryStream();
> > ComStream cstream = new ComStream(memstream);
> > IPersistStream pStream = (IPersistStream)m_RCWClass;
> > if ( pStream != null )
> > pStream.Save( cstream, false );
> > else
> > Trace.WriteLine( "No IPersistStream" );
> > This throws the same exception when it calls Save. However if I change
the
> > third line to
> > IPersistStream pStream = m_RCWClass as IPersistStream;
> > This also throws the same exception. Is there any way to gain access to
> the
> > IPersistStream methods, and then serialize the contents of my stream?
> > Question 3 - As an alternative approach, I've tried to get the bytes out
> of
> > the IPersistStream another way, with a view to storing this byte array
> > separately in the Session object. A first attempt is
> > IPersistStream p = m_AAAClass.RCWClass as IPersistStream;
> > if ( p != null )
> > {
> > System.IO.MemoryStream memstream = new System.IO.MemoryStream();
> > ComStream cstream = new ComStream(memstream);
> > if ( p != null )
> > {
> > p.Save( cstream, false );
> > System.IO.MemoryStream mem = cstream.stream as
> > System.IO.MemoryStream;
> > return mem.GetBuffer();
> > }
> > else
> > return null;
> > }
> > return null;
> > This time the pointer to IPersistStream is null the first time, but
after
> > that always throws a COMException with the message "The server threw an
> > exception". Am I barking up the wrong tree?
> > Fundamentally wanting to store an RCW class in the Session object
doesn't
> > seem to be a strange thing to want to do, but after Googling myself into
a
> > frenzy, it seems that very few people have asked about it. Those that
have
> > have been told to set the sesseion state to InProc, but this isn't
really
> an
> > option, as this means you can't run on a web farm. Any ideas please?
> > Cheers,
> > Chris
I want to know more about serialization and how actually it is implemented in this project.
I want to have a realtime sample for using serialization
can any one give the relavant information
ganesh@dotnet.itags.org.nilgris
Depends on what you're trying to do, but theres a nice tutorial with sourcecode over at CodeProject on serialization:
http://www.codeproject.com/csharp/objserial.asp
I have fair knowledge about the serialization.
But when we talk about large scale application serialization plays a vital roles in the project.
can i have a real time scenerio about this concept.
any help would be appreciated.
Any help would be more appreciated . It is pretty Urgent.
Any solutions for using serialization with a real time samples
Help is more appericated. pretty urgent
Paulnot sure what is going on but would suggest select clear all brake points,
rebuild and then
close .net and restart the computer, and restart .net and verify all brake
points are cleared. Then try to add one and see if it works.--
Paul G
Software engineer.
"PJ6" wrote:
> When debugging codebehind in a test ASP.NET project, when I put a breakpoint
> in a certain class, other breakpoints are automatically generated in another
> file not in the project. This other file is part of a different project that
> isn't even referenced in the first! What's up with that?
> Paul
>
Thanks
YousriMake sure you have <compilation debug="true" /> in web.config and IIS is
set to allow integrated auth.
-Brock
DevelopMentor
http://staff.develop.com/ballen
> Hi All,
> While I was trying to start ASP.Net Web Application I got this error:
> " Error while trying to run project. Unable to start debugging on the
> web
> server. The server does not support debugging of ASP.Net or ATL server
> applications."
> Thanks
> Yousri
I will try that.
Thanks
Yousri
"Brock Allen" <ballen@.NOSPAMdevelop.com> wrote in message
news:1081257632589526856718750@.msnews.microsoft.co m...
> Make sure you have <compilation debug="true" /> in web.config and IIS is
> set to allow integrated auth.
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>> Hi All,
>> While I was trying to start ASP.Net Web Application I got this error:
>> " Error while trying to run project. Unable to start debugging on the
>> web
>> server. The server does not support debugging of ASP.Net or ATL server
>> applications."
>> Thanks
>> Yousri
I did that, and the problem still there.
Yousri
"Yousri" <yahmdad@.cfl.rr.com> wrote in message
news:%23qXTnFumFHA.420@.TK2MSFTNGP09.phx.gbl...
>I will try that.
> Thanks
> Yousri
>
> "Brock Allen" <ballen@.NOSPAMdevelop.com> wrote in message
> news:1081257632589526856718750@.msnews.microsoft.co m...
>> Make sure you have <compilation debug="true" /> in web.config and IIS is
>> set to allow integrated auth.
>>
>> -Brock
>> DevelopMentor
>> http://staff.develop.com/ballen
>>
>>
>>
>>> Hi All,
>>> While I was trying to start ASP.Net Web Application I got this error:
>>> " Error while trying to run project. Unable to start debugging on the
>>> web
>>> server. The server does not support debugging of ASP.Net or ATL server
>>> applications."
>>> Thanks
>>> Yousri
>>
>>
>>
I have my machine, where i develop my applications (ASPNET), and run well. but...
When i copy the project to other server, this message appear "Server Application Unavailable"....
-In this server, exist old applications, so i can't re-install the IIS.
So...
-I installed the framework 1.1, after IIS.
Please, somebody help me.....Hi,
Maybe the reason is security. So try doing to IIS and click on the folder which has your applicattion. I think you have to right click and choose some property to make the web application Public. Try it maybe it will work.
Thanks,
But, the site, is like Application and it has all the extensions.
And, don't run......:(
Someone, had the same problem?
I did. It had me scratching my head for a bit I must confess but it turned out to be the result of a stack overflow. Check your code carefully--you may be unexpectedly encountering recursion that probably wouldn't have shown up on your test server because of fairly subtle configuration differences between it and your production server. The easiest way to track this down and fix it is to single step using the Visual Studio .net debugger, particularly if you are able to debug remotely on your other server.
It records "Server application unavailable" because a stack overflow crashes your aspnet_wp.exe process and it has to restart.
This is where programming becomes like solving the cryptic crossword in the Daily Telegraph...
Hope this guides you in the right direction.
This did not resolve the problem. I've given the account that the worker process is using admin privs just to make sure its not a security issue. Any other suggestions?
I don't think it is a security issue. Something got turned off. Check your processes to make sure everything is turend on.
I had a similar problem yesterday when I installed the .NET framework SP2. I tried a bunch of different things and eventually got it to work again, and here are the steps that (I think) solved the problem:
The assumptions:
- I'm not sure if I'm using the latest and greatest version of ASP.NET. I believe the version I am using is 1.0.3705.288.
- I'm running IIS 5.1 on WinXP Pro SP1
The steps:
- Open %systemroot%\Microsoft.NET\Framework\v1.0.3705\config\machine.config in the text editor of your choice.
- find the attribute userName="machine" in the <processModel> tag.
- change that attribute to userName="SYSTEM". Save.
- Restart IIS by running iisreset.exe from the command prompt.
Notes:
- Changing the username to SYSTEM is a security downgrade, so maybe if it's a production server you'll need to figure out why "machine" wasn't working.
- in the Framwork\ directory there will also be a never version (v1.1.4322 for me). I'm pretty sure it was changing the earlier version that finally did the trick for me, but if that doesn't work you might want to try changing the machine.config in the newer version as well.
Hope that helps!
I am having the same problem. It seems to have started after installing visual studio.net.
What does userName="machine" or userName="SYSTEM" do?
You changed it can you tell me why you even tried that.
I had trouble finding iis to set a virtual directory and then when I set virtual directory my asp page work.
That same day I installed visual studio.net and the next day and I got this error ( Server Application Unavailable).
Checked eventlog last day before the day with error was last week (week earlier) and next entry was 2 hours after finding error.
The asp.net quickstarts won't even work.
I am only one who has used this computer.
Windows xp professional
512MB RAM
2.8GHz
Tim.
I'm hardly an ASP.NET expert (I'm a PHP whiz writing my first ASP.NET app), but here's how I arrived at my solution. A lot of this was/is guesswork, so caveat emptor:
ASP.NET was working fine for me until I installed .NET SP2 (which may ship with the newer Visual Studio.NET?), and it was pretty obvious to me that SP2 broke my ASP.NET. I checked my IIS logs (in %systemroot%\system32\Logfiles\W3SVC1 if you're curious where they are) and saw that my requests were generating 500 errors. Not very informative.
So I starting googling to find out what SP2 changed. Turns out that one of the major parts of SP2 was locking down security. Some post on google groups made me take a look at the machine.config file, and while reading the documentation I came accross this:
userName="[user]" - Windows user to run the process as.
Special users: "SYSTEM": run as localsystem (high privilege admin) account.
"machine": run as low privilege user account named "ASPNET".
Other users: If domain is not specified, current machine name is assumed to be the domain name.
I scrolled down, and sure enough, my userName="machine". Perhaps this was one of the security changes that had been made by SP2? Figured it was worth a try, and low and behold changing the userName to "SYSTEM" (and restarting IIS) made the error go away. The better thing to do would have been to check out the ASPNET account and see what permission it was missing (and it's entirely possible that the problem is elsewhere but running with high privaledge hides it somehow), but I was being lazy and it's a dev box that's not exposed to the Internet.
Not sure if that helps you any, but that's "why [I] even tried that."
Good information to know in case I install SP2. I haven't heard of this problem and Microsoft should have notified users of the change when installing SP2.
I am the one that had the server application unavailable error after installing visual studio.net.
I solved my problem by un-installing the .net frameworkand then going to Windows update where it informed me to install the update for Windows xp professional. Now I think I install the sdk.
Thanks spiralOut for your tip, and you solved my problem.
I don't know if i'm right but this is very strange. I had in this computer both Wserver 2003 with full updates (ASP 1.0 SP2, ASP 1.1) and WinXP PRo equal, in both my applications and webservices runned OK. Stange is that when I reinstall my winXP I had this problem even without the sp2, I tried to install it next, and then I repaired my FrameWork to the original from VS.NET 2002. It seems to me that this isn't a simple error... For years I thought that if microsoft had coded hiden games in Office, then how can I be sure that they don't know when I'm going to the Bathroom???
Sorry for my english, I'm portuguese.
Please follow thefollowing thread for details on description of the problem and the way to fix it.
Hope that helps
Kashif