Saturday, March 31, 2012
web server is not running ASP.NET version 1.1
'VS.NET has detected that the web server is not running ASP.NET version
1.1. You will be unable to run ASP.NET web applications or services.'
I have been running VS.NET and working on my project in it for over a
month. What is going on with this?
Any help would be really appreciated!
Cheers,
Mike
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!I think you use Visual studio 2003 to develop under framework 1.0
If you can't upgrade the web server with dotnet 1.1 you have to use Visual
studio 2002 (I think)
Regards
LJ
"Mike P" <mrp@.telcoelectronics.co.uk> a crit dans le message de news:
eXJD#ZqAEHA.2308@.tk2msftngp13.phx.gbl...
> I tried to open my web project today and I get the following error :
> 'VS.NET has detected that the web server is not running ASP.NET version
> 1.1. You will be unable to run ASP.NET web applications or services.'
> I have been running VS.NET and working on my project in it for over a
> month. What is going on with this?
>
> Any help would be really appreciated!
>
> Cheers,
> Mike
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
Check the ISAPI mappings for your web site. In IIS Admin, right-click the
web site and select "Properties" from the context menu. You can find the
ISPI mappings under the "Home Directory" tab by clicking the "Configuration"
button and going to the "Mappings" tab.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Mike P" <mrp@.telcoelectronics.co.uk> wrote in message
news:eXJD#ZqAEHA.2308@.tk2msftngp13.phx.gbl...
> I tried to open my web project today and I get the following error :
> 'VS.NET has detected that the web server is not running ASP.NET version
> 1.1. You will be unable to run ASP.NET web applications or services.'
> I have been running VS.NET and working on my project in it for over a
> month. What is going on with this?
>
> Any help would be really appreciated!
>
> Cheers,
> Mike
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
I got the same message, i checked everything in IIS but did not find the
error, but than I realized thet I had installed Apache Webserver
which caused this Error. Maybe you did the same.
Ci@.o Jens
"Mike P" <mrp@.telcoelectronics.co.uk> schrieb im Newsbeitrag
news:eXJD%23ZqAEHA.2308@.tk2msftngp13.phx.gbl...
> I tried to open my web project today and I get the following error :
> 'VS.NET has detected that the web server is not running ASP.NET version
> 1.1. You will be unable to run ASP.NET web applications or services.'
> I have been running VS.NET and working on my project in it for over a
> month. What is going on with this?
>
> Any help would be really appreciated!
>
> Cheers,
> Mike
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
web server not installed?
I can't start working on asp.net site as it won't even open in Visual Studio.NET 2003. I am getting the following message " Visual Studio.NET cannot create or open the application because no Web server was detected at this URL: http://localhost/WebApplication1 . Make sure your web server is installed and running"
Can anyone explain to me how to solve this problem. Thanks a lot.Did you install IIS on you manche?
No, I have not. I was going to install along with the Windows Server 2003, but that's a little more complicated installation since it's a whole new operating system.
Is there an easier way to install IIS for now? Thanks
Asp.net app. needs to run with IIS installed, if your current OS is Win. 2k pro. or Win. XP pro., you can install the IIS from the system disk.
I am running Windows XP Home Edition. By the way, I am trying to resize my C drive with Partition Magic, so I can add Windows Server 2003. However, the minimum resize is 11 GB. So once I have 2 partitions with 2 OS's, how's that going to affect Windows XP. For example, if on windows start up, I choose to start Windows Server, can I still access the applications and things I have on another partition or I will just have a server on that partition and nothing else. I am asking because my hard drive size is not that large (30 GB) so I would like to know how's that going to affect everything before I make a disc partition. Thanks a lot.
No you will not be able to run apps installed on the XP system when you are booted up in 2003.
A couple ways around this.. multiboot with 2003 AND install VS2003 there - do all work there.
or get rid of XP home altogether and run everything from 2003
or get XP pro and run all from there.
Hope that helps
You need :
1- windows xp professional
or
2- windows 2000/server
3- windows 2003/server
to install IIS, and then work with ASP.NET
regards
All good ideas guys. Thanks.
But let's say I want to get rid of Win XP Home and want to install Win XP Pro. I am guessing all the applications and files are going to naturally be deleted when I take down XP Home. However, what would be the safest way for me to make that OS exchange?
You can do an upgrade from XP home to XP Professional, you wont loose any of your applications, only system files will be upgraded.
regards
Wednesday, March 28, 2012
Web server not running ASP.NET version 1.1 *RESOLVED*
Visual Studio .NET has detected that the specified web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services.
IIS 5.1 is installed on my local machine and so is VS.NET 2003.
I am running XP Pro.
When I go into control panel->Add or Remove programms I can see Microsoft .NET Framework 1.1 there in the list.
Do any of you have any ideas.Don't Panic!!!!
I managed to fix it.
I pressed the Help button and the answer was there.
Web server reported following error... HTTP/1.1 500 Internal Server Error
working fine but when I try to create a project from VS.NET 2003 I get the
"Web server reported following error... HTTP/1.1 500 Internal Server Error"
message.
I have already read a bunch of posts from others saying to run
aspnet_regiis.exe -i and the like but none of this has worked. Here's what I
have found:
BTW: Each website has its own IUSR account associated with it (i.e.
IUSR_websitename). This may or may not be relevant.
If I run FileMon while I try to create the project, I see that w3wp.exe
tries to access the root directory of the web as follows:
OPEN c:\Domains\website.com - SUCCESS
Then a few lines later I see this:
OPEN c:\Domains\website.com\ - ACCESS DENIED
Note the only difference is the slash. I have made the ASPNET worker process
part of the admin group for the sake of argument but still get the same
results.
Any help is appreciated.I found that if I go to IIS
IIS->Application Pools->DefaultAppPool
which is the app pool my app is sitting in, and change the identity from
Network Service to Local Service, I am able to create my app. However, I
would like to know how to fix this problem without compromising the security
of my server.
Thanks
I ran into the same problem a few weeks ago. Nothing seemed to work
for me, but I finally deleted the ASPNET account using Computer
Management and went through the steps listed here:
http://support.microsoft.com/?id=306005
I hope this helps.
Amaryllis
Web Service
I'm new in aspx an new in web services. i made a few web services as test and works fine. I have the following situation :
I have a process that needs 30 min to run. I launch the process using asp.net in a web page. This process consist in charge a table in a SQL database from a TXT file, and make some actions.
My question is : can i use a web service as batch procesing to do that charge and let the browser free so the usr can do other task?
Thk's
:thumb:not sure but one suggestion, a poor one, would be to use frames in the browser.
you could do threading but do not think ASP.NET has that, unless im mistaken :)
Do you mean you need an Asynchronous Web Service? Does the web service need to return a result to the user?
Monday, March 26, 2012
Web Service Error
client found response content type of 'text/html; charset=utf-8' but expected 'text/xml'
What might this mean?
It's written in visual basic .net.You faced this problem in 2002 i think you must have been over it by now .... as am facing it badly and need its solution as sooon as possible ... Kindly help me out ... you are my last hope...
harris_moin@.hotmail.com
Wow, that was a while ago. I've run into alot of things with web services since then so I'm not sure what my fix was. Describe to me how your system is set up and what you're doing to get that error. I may be able to help from there.
Hmmm ...
Actually i am using asp.net and visual c# in the first page am using popchart control which is working fine in the second page am using snowflake control there its giving me this problem.
Client found response content type of 'text/html', but expected 'text/xml'
On my machine where i have the whole vs.net installed its working fine. But am trying to run it on a machine where i have just installed vs.net framework 1.1 ,,,, with the other softwares i need ... everything seems to be working fine but at snowflake page it gives me this error.
I have xml sdk,popcharts,snowflakes,iis, and a few more things installed on my system to run this application.
Hope this info helps. :)
I actually just duplicated the error. I have an appSettings tag in my Web.Config file that contains a connection string that I use throughout my application. I was able to duplicate the error by removing a double quote from my connectionstring:
<appSettings><add key="ConnectString" value="Server=MyServer;Uid=sa;pwd=;database=MyDatabase"/>
</appSettings>
In this case I removed the double quote after the word 'MyDatabase'. When I tried to run my app I got the same error you're getting. My first instinct without seeing your code is to say that you've got something wrong with your web.config file.
I hope that helps a little.
still no luck :mad: :mad: :mad: :mad: :confused:
Saturday, March 24, 2012
Web Service Problem
it does the job of checking up the unchecked checkboxes and viceversa
inside the grid .
[WebMethod]
public void GetAllCheckBoxesChecked(CheckBox chkCheckAll, DataGrid
dgDetails,string chkItem)
{
if (chkCheckAll.Checked==true)
{
foreach(DataGridItem dgi in dgDetails.Items)
{
CheckBox checkedRowItem =(CheckBox)dgi.FindControl(chkItem);
if(checkedRowItem.Checked!=true)
{
checkedRowItem.Checked=true;
}
}
}
else
{
foreach(DataGridItem dgi in dgDetails.Items)
{
CheckBox checkedRowItem =(CheckBox)dgi.FindControl(chkItem);
if(checkedRowItem.Checked!=false)
{
checkedRowItem.Checked=false;
}
}
}
}
but it gives me the error when i try to reference in my project as,
The property 'ClientID' on type 'System.Web.UI.Control' cannot be
serialized because it is decorated with declarative security permission
attributes. Consider using imperative asserts or demands in the
property accessors.
please can u tell me how to avoid this error...
Thanks
Prasad.Yes, don't try to create a WebMethod that takes UI elements as parameters.
Create one that takes the values from those elements instead.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Hard work is a medication for which
there is no placebo.
<prasadrmarathe@.gmail.com> wrote in message
news:1145888003.104750.227650@.t31g2000cwb.googlegr oups.com...
> Hi i have Following webmethod inside my webservice
> it does the job of checking up the unchecked checkboxes and viceversa
> inside the grid .
>
> [WebMethod]
> public void GetAllCheckBoxesChecked(CheckBox chkCheckAll, DataGrid
> dgDetails,string chkItem)
> {
> if (chkCheckAll.Checked==true)
> {
> foreach(DataGridItem dgi in dgDetails.Items)
> {
> CheckBox checkedRowItem =(CheckBox)dgi.FindControl(chkItem);
> if(checkedRowItem.Checked!=true)
> {
> checkedRowItem.Checked=true;
> }
> }
> }
> else
> {
> foreach(DataGridItem dgi in dgDetails.Items)
> {
> CheckBox checkedRowItem =(CheckBox)dgi.FindControl(chkItem);
> if(checkedRowItem.Checked!=false)
> {
> checkedRowItem.Checked=false;
> }
> }
> }
> }
>
> but it gives me the error when i try to reference in my project as,
>
> The property 'ClientID' on type 'System.Web.UI.Control' cannot be
> serialized because it is decorated with declarative security permission
> attributes. Consider using imperative asserts or demands in the
> property accessors.
>
> please can u tell me how to avoid this error...
>
> Thanks
> Prasad.
Web Service Problem
it does the job of checking up the unchecked checkboxes and viceversa
inside the grid .
[WebMethod]
public void GetAllCheckBoxesChecked(CheckBox chkCheckAll, DataGrid
dgDetails,string chkItem)
{
if (chkCheckAll.Checked==true)
{
foreach(DataGridItem dgi in dgDetails.Items)
{
CheckBox checkedRowItem =(CheckBox)dgi.FindControl(chkItem);
if(checkedRowItem.Checked!=true)
{
checkedRowItem.Checked=true;
}
}
}
else
{
foreach(DataGridItem dgi in dgDetails.Items)
{
CheckBox checkedRowItem =(CheckBox)dgi.FindControl(chkItem);
if(checkedRowItem.Checked!=false)
{
checkedRowItem.Checked=false;
}
}
}
}
but it gives me the error when i try to reference in my project as,
The property 'ClientID' on type 'System.Web.UI.Control' cannot be
serialized because it is decorated with declarative security permission
attributes. Consider using imperative asserts or demands in the
property accessors.
please can u tell me how to avoid this error...
Thanks
Pra
.Yes, don't try to create a WebMethod that takes UI elements as parameters.Create one that takes the values from those elements instead.
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Hard work is a medication for which
there is no placebo.
<pra
rmarathe@.gmail.com> wrote in messagenews:1145888003.104750.227650@.t31g2000cwb.googlegroups.com...
> Hi i have Following webmethod inside my webservice
> it does the job of checking up the unchecked checkboxes and viceversa
> inside the grid .
>
> [WebMethod]
> public void GetAllCheckBoxesChecked(CheckBox chkCheckAll, DataGrid
> dgDetails,string chkItem)
> {
> if (chkCheckAll.Checked==true)
> {
> foreach(DataGridItem dgi in dgDetails.Items)
> {
> CheckBox checkedRowItem =(CheckBox)dgi.FindControl(chkItem);
> if(checkedRowItem.Checked!=true)
> {
> checkedRowItem.Checked=true;
> }
> }
> }
> else
> {
> foreach(DataGridItem dgi in dgDetails.Items)
> {
> CheckBox checkedRowItem =(CheckBox)dgi.FindControl(chkItem);
> if(checkedRowItem.Checked!=false)
> {
> checkedRowItem.Checked=false;
> }
> }
> }
> }
>
> but it gives me the error when i try to reference in my project as,
>
> The property 'ClientID' on type 'System.Web.UI.Control' cannot be
> serialized because it is decorated with declarative security permission
> attributes. Consider using imperative asserts or demands in the
> property accessors.
>
> please can u tell me how to avoid this error...
>
> Thanks
> Pra
.>
Web service problem
I have another question regarding webservices. I have one set up to access the active directory. As a test i have put in the following code as a method to see if it works.
[WebMethod(Description="Test function to test AD access")]
public string testFunction(string username, string pwd)
{
string testStr = string.Empty;
DirectoryEntry de = new DirectoryEntry("LDAP://DC=optos,DC=eye" ,username ,pwd);
foreach(DirectoryEntry child in de.Children)
{
testStr = testStr + "<BR>" + child.Name.ToString();
}
return testStr;
}
I have a similar piece of code on the form where i call the web service for, and this is where the problem lies.
The code runs fine on the form which calls the web service. When i call the web service however i get the following error:
<i>"Server was unable to process request. --> The specified domain either does not exist or could not be contacted"</i>
The security on the main form is set to impersonate=true and anonymous access has been removed from the IIS properties for the app. On the web service, again impersonte=true but this time anonymous is checked. When it is unchecked i get Access denied errors.
Does anyone have any ideas why this is happening.
Thanks,
GrantWeb services don't run under the context of the logged in user. They run under the context of the caller. This means that you will need to pass credentials to the web service.
http://support.microsoft.com/default.aspx?scid=kb;en-us;813834
Hi Mendhak,
That was a seriously quick response, thank you.
I'll look over the link and see if i can't get something working. I'll post back either way to let you know.
Cheers
Grant
Thanks Mendhak, that worked perfectly.
Monday, March 12, 2012
Web Services - Unauthorized
I am attempting to create my first web service. I am now stuck at the following error.
Exception Details:System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
I believe I have included the necessary code for assistance. If anything else is needed please let me know and I will reply ASAP.
Test.asmx<%@dotnet.itags.org. WebService Language="VB" CodeBehind="~/App_Code/Test.vb"Class="Test" %>
/App_Code/Test.vbImports System.WebImports System.Web.ServicesImports System.Web.Services.Protocols<WebService( _Namespace:="http://serverName.dev.intranet/")> _Public Class TestInherits System.Web.Services.WebService <WebMethod()> _Public Function PI()As Double Return System.Math.PIEnd Function <WebMethod()> _Public Function HelloWorld()As String Return"Hello World"End FunctionEnd Class
Client.aspx.vb...Sub btn1_Click( _ByVal senderAs Object, _ByVal eAs EventArgs)Dim srvAs New intranet.dev.serverName.Test srv.Credentials = System.Net.CredentialCache.DefaultCredentials lblTest.Text = srv.PIEnd Sub...web.config...<authentication mode="Windows"/><identity impersonate="false"/>...Thank you for your help.
Update -
When I run this on the development server (http://serverName.dev.intranet) it fails. When I run it on my local machine (http://localhost:port/...) it works. I hope that helps pinpoint the problem.
Thank you again for all of your help.
Usually this error means that the client application is not sending any credentials or the credentials are wrong. But I think you are setting the credentials correctly in your btn1_Click event handler. Most likely the permissions on the folder where the web service is located are not properly setup for IUSR_xxx.
Can you provide a description of your serverName.dev.intranet environment? Is it a shared hosting plan? Do you have full access to a dedicated server? etc.
It is an shared hosting environment on a corporate intranet. I do not have full access to the server settings.
You are probably correct about the folder permissions. Without having access to the server how can I get this to work?
If you know a network username andpassword that is guaranteed to have permissions to that folder you can try using aNetworkCredential.
See if the following article helps:How to: Configure an XML Web Service for Windows Authentication
I have attempted the Network Credential option and it also did not work. I have read/write permissions so I assumed my credentials would work but that was incorrect.
I will try it on another server and see if that works.