Showing posts with label aspnet. Show all posts
Showing posts with label aspnet. Show all posts

Wednesday, March 28, 2012

Trouble connecting to AS/400 with ASP.NET

Hello,

I am writing an ASP.NET application and trying to connect to an as400
using an ADODB connection. I recently completed a Windows application
that connects to the 400. My code works in the Windows world, so
theoretically, it should work for the ASP application as well. But it
doesn't. I keep getting the error CWBSY1006 - User ID is Invalid. I'm
using my Windows login information to automatically log into the 400,
so a userid and password is not required. It does work, however, if I
hard code my userid and password into the connection string. The
only problem with that is that the users need to log in with their
information for security purposes. Here is my code. Any ideas would
be greatly appreciated.

Thanks,
Amaryllis

AS400.Define("MyAS400")
AS400.Connect(cwbx.cwbcoServiceEnum.cwbcoServiceDa taQueues)
conn400 = New ADODB.Connection
conn400.ConnectionString = "Provider=IBMDA400.DataSource.1;" & _
"Data source=MyAS400"
conn400.Open()That is because ASP.NET runs under the ASPNET account. It does not run
under you. So of course, the ASPNET account does not have integrated
security access to your database.

You neither need to give that account rights to the database, or use a
username/password to log in.

"Amaryllis" <amy_hankins@.swn-dot-com.no-spam.invalid> wrote in message
news:410fe1bf$1_5@.Usenet.com...
> Hello,
> I am writing an ASP.NET application and trying to connect to an as400
> using an ADODB connection. I recently completed a Windows application
> that connects to the 400. My code works in the Windows world, so
> theoretically, it should work for the ASP application as well. But it
> doesn't. I keep getting the error CWBSY1006 - User ID is Invalid. I'm
> using my Windows login information to automatically log into the 400,
> so a userid and password is not required. It does work, however, if I
> hard code my userid and password into the connection string. The
> only problem with that is that the users need to log in with their
> information for security purposes. Here is my code. Any ideas would
> be greatly appreciated.
> Thanks,
> Amaryllis
> AS400.Define("MyAS400")
> AS400.Connect(cwbx.cwbcoServiceEnum.cwbcoServiceDa taQueues)
> conn400 = New ADODB.Connection
> conn400.ConnectionString = "Provider=IBMDA400.DataSource.1;" & _
> "Data source=MyAS400"
> conn400.Open()
I agree, but when you add <impersonate=TRUE /> to the web.config
file, it should pick up your information and use it rather than the
ASPNET account information. I've always been able to connect to SQL
Server using that approach. I'm just not sure what is different
about DB2 on the AS/400.

Amaryllis

Trouble connecting to AS/400 with ASP.NET

Hello,
I am writing an ASP.NET application and trying to connect to an as400
using an ADODB connection. I recently completed a Windows application
that connects to the 400. My code works in the Windows world, so
theoretically, it should work for the ASP application as well. But it
doesn't. I keep getting the error CWBSY1006 - User ID is Invalid. I'm
using my Windows login information to automatically log into the 400,
so a userid and password is not required. It does work, however, if I
hard code my userid and password into the connection string. The
only problem with that is that the users need to log in with their
information for security purposes. Here is my code. Any ideas would
be greatly appreciated.
Thanks,
Amaryllis
AS400.Define("MyAS400")
AS400.Connect(cwbx.cwbcoServiceEnum.cwbcoServiceDataQueues)
conn400 = New ADODB.Connection
conn400.ConnectionString = "Provider=IBMDA400.DataSource.1;" & _
"Data source=MyAS400"
conn400.Open()That is because ASP.NET runs under the ASPNET account. It does not run
under you. So of course, the ASPNET account does not have integrated
security access to your database.
You neither need to give that account rights to the database, or use a
username/password to log in.
"Amaryllis" <amy_hankins@.swn-dot-com.no-spam.invalid> wrote in message
news:410fe1bf$1_5@.mcse.ms...
> Hello,
> I am writing an ASP.NET application and trying to connect to an as400
> using an ADODB connection. I recently completed a Windows application
> that connects to the 400. My code works in the Windows world, so
> theoretically, it should work for the ASP application as well. But it
> doesn't. I keep getting the error CWBSY1006 - User ID is Invalid. I'm
> using my Windows login information to automatically log into the 400,
> so a userid and password is not required. It does work, however, if I
> hard code my userid and password into the connection string. The
> only problem with that is that the users need to log in with their
> information for security purposes. Here is my code. Any ideas would
> be greatly appreciated.
> Thanks,
> Amaryllis
> AS400.Define("MyAS400")
> AS400.Connect(cwbx.cwbcoServiceEnum.cwbcoServiceDataQueues)
> conn400 = New ADODB.Connection
> conn400.ConnectionString = "Provider=IBMDA400.DataSource.1;" & _
> "Data source=MyAS400"
> conn400.Open()
>
I agree, but when you add <impersonate=TRUE /> to the web.config
file, it should pick up your information and use it rather than the
ASPNET account information. I've always been able to connect to SQL
Server using that approach. I'm just not sure what is different
about DB2 on the AS/400.
Amaryllis

Trouble deploying ASP.NET application

Tried both FTP and frontpage extensions method to the host server.
Server has directory running as a ASP.NET application.

If I take out ...Inherits="quizengine.WebForm1"...the page loads but no
functionality... of course becuase I have code behind on it.

My problem is extreemly basic. Make an application on my machine, then
publish to host, fire application and I get the following error.
I am completely lost and totally stunned how hard it is to get information
on how to deploy a standard ASP.NET application with no odd settings or
database onto a host server!

Server Error in '/quiz' Application.
------------------------

The remote server returned an error: (404) Not Found.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned an
error: (404) Not Found.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:

[WebException: The remote server returned an error: (404) Not Found.]
System.Net.HttpWebRequest.CheckFinalStatus() +680
System.Net.HttpWebRequest.EndGetResponse(IAsyncRes ult asyncResult) +139
System.Net.HttpWebRequest.GetResponse() +249
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials) +65
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
ofObjectToReturn) +55
System.Xml.XmlTextReader.CreateScanner() +384
System.Xml.XmlTextReader.Init() +23
System.Xml.XmlTextReader.Read() +530
System.Xml.XmlReader.MoveToContent() +75
System.Data.DataSet.ReadXmlSchema(XmlReader reader, Boolean
denyResolving) +122
System.Data.DataSet.ReadXmlSchema(String fileName) +60
quizengine.WebForm1.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\quizengine\default.aspx.cs:25
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750

-
------------------------problem solved!

although I need to use a full path for my local host directory to access my
XML files for some bizare reason I thought I could just put the file name
only when I deployed it to the host. Once I put the full path name of my host
server..problem gone.

Now I can work on the other problems.

"Sean" wrote:

> Tried both FTP and frontpage extensions method to the host server.
> Server has directory running as a ASP.NET application.
> If I take out ...Inherits="quizengine.WebForm1"...the page loads but no
> functionality... of course becuase I have code behind on it.
> My problem is extreemly basic. Make an application on my machine, then
> publish to host, fire application and I get the following error.
> I am completely lost and totally stunned how hard it is to get information
> on how to deploy a standard ASP.NET application with no odd settings or
> database onto a host server!
>
> Server Error in '/quiz' Application.
> ------------------------
> The remote server returned an error: (404) Not Found.
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information about
> the error and where it originated in the code.
> Exception Details: System.Net.WebException: The remote server returned an
> error: (404) Not Found.
> Source Error:
> An unhandled exception was generated during the execution of the current web
> request. Information regarding the origin and location of the exception can
> be identified using the exception stack trace below.
> Stack Trace:
>
> [WebException: The remote server returned an error: (404) Not Found.]
> System.Net.HttpWebRequest.CheckFinalStatus() +680
> System.Net.HttpWebRequest.EndGetResponse(IAsyncRes ult asyncResult) +139
> System.Net.HttpWebRequest.GetResponse() +249
> System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
> credentials) +65
> System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
> credentials) +94
> System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
> ofObjectToReturn) +55
> System.Xml.XmlTextReader.CreateScanner() +384
> System.Xml.XmlTextReader.Init() +23
> System.Xml.XmlTextReader.Read() +530
> System.Xml.XmlReader.MoveToContent() +75
> System.Data.DataSet.ReadXmlSchema(XmlReader reader, Boolean
> denyResolving) +122
> System.Data.DataSet.ReadXmlSchema(String fileName) +60
> quizengine.WebForm1.Page_Load(Object sender, EventArgs e) in
> c:\inetpub\wwwroot\quizengine\default.aspx.cs:25
> System.Web.UI.Control.OnLoad(EventArgs e) +67
> System.Web.UI.Control.LoadRecursive() +35
> System.Web.UI.Page.ProcessRequestMain() +750
> -
> ------------------------
>

Trouble Deploying ASP.NET Application

Hi,

I'm new to ASP.NET and just finished up a small application.
Essentially it's just a form that writes data to a CSV file on the
server after a user fills in the form. The code compiles and runs on
my development machine (VS.NET 2002) but when I FTP all the files to
the server I get a "Server Error in '/' Application." error. I can't
figure out why it won't run. A couple notes:

~ I have no idea of the server settings. It's a clients machine and I
was only told it is a .NET machine.

~ I can't seem to change the Cusomt Error Message in web.config even
though I change the XML, recompile the code and FTP it to the server.

~ This code is residing in a sub-directory of the main web application.

~ I've tried deleteing web.config and Global.asax to see if that would
help but no luck.

Any help would be appreciated,

Justin@dotnet.itags.org.Cutroni.ComMan, you are in a true pickle, Justin.

Let me venture a guess. Under your circumstances, about the only thing you
could do would be a trace IN the page, which you might try, but I sure
wouldn't like to have all the constraints on me that you have, especially if
I was new to .Net!

You say it writes to a file. Therefore, the account under which it is
running must have permission to write to the folder in which the file
resides. My guess would be that it is running under an underpriveleged
account, but you will need to find this out somehow.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Sometimes you eat the elephant.
Sometimes the elephant eats you.

"fenway" <justin.cutroni@.gmail.com> wrote in message
news:1116593037.316248.68600@.g49g2000cwa.googlegro ups.com...
> Hi,
> I'm new to ASP.NET and just finished up a small application.
> Essentially it's just a form that writes data to a CSV file on the
> server after a user fills in the form. The code compiles and runs on
> my development machine (VS.NET 2002) but when I FTP all the files to
> the server I get a "Server Error in '/' Application." error. I can't
> figure out why it won't run. A couple notes:
> ~ I have no idea of the server settings. It's a clients machine and I
> was only told it is a .NET machine.
> ~ I can't seem to change the Cusomt Error Message in web.config even
> though I change the XML, recompile the code and FTP it to the server.
> ~ This code is residing in a sub-directory of the main web application.
> ~ I've tried deleteing web.config and Global.asax to see if that would
> help but no luck.
> Any help would be appreciated,
> Justin@.Cutroni.Com
Hi Kevin,

Thanks for your response. I'm in the process of stepping throught the
file line by line trying to find what's throwing the error.

I agree, it may be a permissions issue with the CSV file.
Unfortunately getting ahold of the sys admin is a time consuimg process
and the only access I have to the server is FTP access.

Justin
So I've been trying to debug a bit and I've found something
interesting. I added a blank ASPX page to my project. This file has
absolutely nothing in it excep a Response.write() call. But if I
compile the project, FTP it to the server and then try to load this
ASPX page I still get the generic "Server Error in '/' Application".

Any thoughts? I could really use a hand.

Thanks,

Justin
Is there anyone out there that can offer a little help re: this issue?
I have a small web app that compiles and runs on my machine but will
not run on the server after I FTP it to the server. Even the simplest
pages throw a "Server Error in '/' Application." error.

I've tried tweking web.config to display a more robust error but that
is not working.
First, if it is in a subdirectory off the main application you must make the
sub-directory it's own application. Otherwise the files in the bin directory
aren't paid attention to since they aren't in the bin directory for the main
application. To make a directory into an applicaton you open the IIS MMC and
select the properties for the particular directory and on the Directory tab
click the button that says Create Application.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"fenway" <justin.cutroni@.gmail.com> wrote in message
news:1116593037.316248.68600@.g49g2000cwa.googlegro ups.com...
> Hi,
> I'm new to ASP.NET and just finished up a small application.
> Essentially it's just a form that writes data to a CSV file on the
> server after a user fills in the form. The code compiles and runs on
> my development machine (VS.NET 2002) but when I FTP all the files to
> the server I get a "Server Error in '/' Application." error. I can't
> figure out why it won't run. A couple notes:
> ~ I have no idea of the server settings. It's a clients machine and I
> was only told it is a .NET machine.
> ~ I can't seem to change the Cusomt Error Message in web.config even
> though I change the XML, recompile the code and FTP it to the server.
> ~ This code is residing in a sub-directory of the main web application.
> ~ I've tried deleteing web.config and Global.asax to see if that would
> help but no luck.
> Any help would be appreciated,
> Justin@.Cutroni.Com
THANK YOU!!!! Once I get ahold of the sys admin that's what I'll tell
him to do. I had read some similar things but was unsure if I needed
to make this sub-directory it's own application. Now I know the
answer. Hopefully that works.

Question, is there a way to create ASP.NET code that plugs into the
existing application without having to modify any settings in IIS? It
would be great if I could just drop this code on the server and have it
run "inside" the current application.

Thanks,

justin
re:
> Now I know the answer. Hopefully that works.

Shouldn't you test that it works BEFORE saying that you know the answer ?

re:
> It would be great if I could just drop this code on the server
> and have it run "inside" the current application.

As long as you drop the code in a subdirectory of your
application's directory, everything should work fine.

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

"fenway" <justin.cutroni@.gmail.com> wrote in message
news:1116605577.929924.293220@.g14g2000cwa.googlegr oups.com...
> THANK YOU!!!! Once I get ahold of the sys admin that's what I'll tell
> him to do. I had read some similar things but was unsure if I needed
> to make this sub-directory it's own application. Now I know the
> answer. Hopefully that works.
> Question, is there a way to create ASP.NET code that plugs into the
> existing application without having to modify any settings in IIS? It
> would be great if I could just drop this code on the server and have it
> run "inside" the current application.
> Thanks,
> justin
True, I should test it before stating that it works.

So, If I'm reading your note correctly, I should be able to drop my
application in a sub-folder of an existing application and it should
run correctly? I tried that and got an error. Plus I tried to change
web.config to display a more verbose error message but it's still
display the friendly error message.
re:
> I should be able to drop my application in a sub-folder of an
> existing application and it should run correctly?

That's not what you asked.

You asked if you could drop *code* in a sub-folder
of an existing, and whether it would run correctly.

It *will* run correctly, if you drop it as *code*.

What you are attempting to do is *nest* applications, which since
ASP 1.0 has been *verboten* ( forbidden ), because it leads to
*kaput*, i.e., the end of your application.

If you want a different application, create a different application.

If you want a sub-application, just run it in a sub-directory of your main application.
You don't have to run a sub-application as a *different* application.

If you do, that application won't be able
to share any values with your main application

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

"fenway" <justin.cutroni@.gmail.com> wrote in message
news:1116606296.822178.125240@.z14g2000cwz.googlegr oups.com...
> True, I should test it before stating that it works.
> So, If I'm reading your note correctly, I should be able to drop my
> application in a sub-folder of an existing application and it should
> run correctly? I tried that and got an error. Plus I tried to change
> web.config to display a more verbose error message but it's still
> display the friendly error message.
One thing to note is that if you use VS.NET to create a ASP.NET web
application its forcing your project to become a virtual directory and it
treats is as 1 appliation. Now if you are uploading a folder to a already
working web app then you gotta check few things:

1. The .dll that VS.NET creates cannot be in the bin folder subdirectory
that you are uploading. The .dll file should be placed in the root directory
of your already working website. You can only place the .dll in the bin
folder within a sub directory if that directory is a virtual directory.

2. VS.NET creates a web.config file with standard elements that you would
find in a asp.net app defined as a virtual directory. Please be mindful that
there are certain elements that can only be declared at the machine level or
at the virtual level and NOT at the subdirectory level. So, check your
web.config file that vs.net creates for you and make sure elements like
<session>, <authentication>, I think thats it, are removed from the
web.config file since they can only be declared for a folder that is a
virtual directory..which your directory is not.

See if any of these helps. This is something I have to go through with
Virtual Hosting companies all the time.

"fenway" wrote:

> Is there anyone out there that can offer a little help re: this issue?
> I have a small web app that compiles and runs on my machine but will
> not run on the server after I FTP it to the server. Even the simplest
> pages throw a "Server Error in '/' Application." error.
> I've tried tweking web.config to display a more robust error but that
> is not working.
>

Trouble deploying an ASP.NET project that uses a SERVICE

Hi Group,
Please help ending my Nightmare! There's a Windows Service written in
VC++ and I have an ASP.NET project that uses this sevice as a COM
library. It just works fine in VS Internal Web Server and also in my
IIS. I can publish it on my computer easily, But CAN'T publish or
deploy it on other machines with almost same configuration. The Service
in working on all other machines too.
I've tried several ways to set all permissions and security rights to
all users and tried to put that service within the BIN directory but it
doesn't help. The Error message that I get in all situatuions is:
Retrieving the COM class factory for component with CLSID
{3304F12E-4A78-4F49-AF4E-C6E92617249E} failed due to the following
error: 80070005.
Please Help!
AfsharAre you sure the said Windows Service was installed and running (if set to
Automatically Start), either somehow by your publishing/deploying, or
someone did it manually, on the target web server computer? How did you get
the Windows Service installed and running?
"Afshar" <afshar.mohebbi@.gmail.com> wrote in message
news:1149922296.293862.140600@.m38g2000cwc.googlegroups.com...
> Hi Group,
> Please help ending my Nightmare! There's a Windows Service written in
> VC++ and I have an ASP.NET project that uses this sevice as a COM
> library. It just works fine in VS Internal Web Server and also in my
> IIS. I can publish it on my computer easily, But CAN'T publish or
> deploy it on other machines with almost same configuration. The Service
> in working on all other machines too.
> I've tried several ways to set all permissions and security rights to
> all users and tried to put that service within the BIN directory but it
> doesn't help. The Error message that I get in all situatuions is:
> Retrieving the COM class factory for component with CLSID
> {3304F12E-4A78-4F49-AF4E-C6E92617249E} failed due to the following
> error: 80070005.
> Please Help!
> Afshar
>
Dear Norman,
I've found the problem, that Service wasn't the problem It was working
and configured fine.
I enabled anonymous access in IIS and set an ASPNET user for it.
Granted administrative rights to ASPNET user and everything went OK!
Thanks for your help,
Afshar
If the project is not used only for test purpose, I strongly suggest you to
consider the security risk of that practice: just having to use that Windows
service, you have lift a web user's priviledge to Administator, that is
definitely not a good way.
"Afshar" <afshar.mohebbi@.gmail.com> wrote in message
news:1150006633.536650.156090@.h76g2000cwa.googlegroups.com...
> Dear Norman,
> I've found the problem, that Service wasn't the problem It was working
> and configured fine.
> I enabled anonymous access in IIS and set an ASPNET user for it.
> Granted administrative rights to ASPNET user and everything went OK!
> Thanks for your help,
> Afshar
>
But I don't know what rights to grant the anonymous user.
Norman Yuan wrote:
> If the project is not used only for test purpose, I strongly suggest you t
o
> consider the security risk of that practice: just having to use that Windo
ws
> service, you have lift a web user's priviledge to Administator, that is
> definitely not a good way.
>
> "Afshar" <afshar.mohebbi@.gmail.com> wrote in message
> news:1150006633.536650.156090@.h76g2000cwa.googlegroups.com...
re:
> But I don't know what rights to grant the anonymous user.
Please review this article :
http://msdn.microsoft.com/library/d... />
000009.asp
for instructions on how to create a service account for ASP.NET
and this article :
http://msdn.microsoft.com/library/d.../>
netht01.asp
for the list of directories to which the ASP.NET service account needs permi
ssions.
This last article is written for 1.1, but the directories haven't changed fo
r 2.0
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/
===================================
"Afshar" <afshar.mohebbi@.gmail.com> wrote in message
news:1150372901.156090.26710@.y41g2000cwy.googlegroups.com...
> But I don't know what rights to grant the anonymous user.
>
> Norman Yuan wrote:
>
Dear Juan
The first article is compeltely about Windows 2003 and the Second seems
to not be very realted with Services problem. I'm using Windows XP Pro,
ASP.NET 2.
Thanks:
Afshar Mohebbi
Juan T. Llibre wrote:
> re:
> Please review this article :
> http://msdn.microsoft.com/library/d...y/en-us/dnpag2=
/html/paght000009.asp
> for instructions on how to create a service account for ASP.NET
> and this article :
> http://msdn.microsoft.com/library/d...y/en-us/dnnets=
ec/html/secnetht01.asp
> for the list of directories to which the ASP.NET service account needs pe=
rmissions.
> This last article is written for 1.1, but the directories haven't changed=
for 2.0
>
> 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 espa=F1ol : http://asp.net.do/foros/
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D[color=
darkred]
> "Afshar" <afshar.mohebbi@.gmail.com> wrote in message
> news:1150372901.156090.26710@.y41g2000cwy.googlegroups.com...
ou to
indows
ng
re:
> The first article is compeltely about Windows 2003
Actually, it's about ASP.NET 2.0 running under Windows 2003 Server.
The only difference you'll find is in the Application Pool info.
You can ignore that. The rest is quite accurate for IIS 5.1.
re:
> the Second seems to not be very realted with Services problem.
The first article deals with ASP.NET 2.0 and the second one with ASP.NET 1.1
.
You can ignore the second one, but it has the correct list of directories to
which
you need to assign permissions to whichever account ASP.NET runs as.
The first article doesn't have them, because ASP.NET 2.0 has a nifty
command to assign permissions to all necessary directories :
aspnet_regiis -GA machinename\accountname
or
aspnet_regiis -GA domainname\accountname
re:
> I'm using Windows XP Pro, ASP.NET 2.
> I enabled anonymous access in IIS and set an ASPNET user for it.
OK...
re:
> Granted administrative rights to ASPNET user and everything went OK!
That may bite you in the future.
The ASPNET account should *not* have administrative rights.
What you should do is to *only* assign the rights the account needs.
The list of directories and the type of permissions the ASP.NET
account needs are listed in the second article I sent to you.
If you still have doubts, review this list of ACLS which ASP.NET (all versio
ns) requires :
http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx
If you assign those permissions to *any* account which ASP.NET is running as
,
ASP.NET will run just fine, including Web Services.
Don't expose your machine by giving administrative rights to the ASP.NET acc
ount.
That is easy to do, and does solve the problem, but it may bring you headach
es later on.
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/
===================================
"Afshar" <afshar.mohebbi@.gmail.com> wrote in message
news:1150622522.679335.249860@.r2g2000cwb.googlegroups.com...
Dear Juan
The first article is compeltely about Windows 2003 and the Second seems
to not be very realted with Services problem. I'm using Windows XP Pro,
ASP.NET 2.
Thanks:
Afshar Mohebbi
Juan T. Llibre wrote:
> re:
> Please review this article :
> http://msdn.microsoft.com/library/d...>
ht000009.asp
> for instructions on how to create a service account for ASP.NET
> and this article :
> http://msdn.microsoft.com/library/d...
ecnetht01.asp
> for the list of directories to which the ASP.NET service account needs per
missions.
> This last article is written for 1.1, but the directories haven't changed
for 2.0
>
> 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/
> ===================================
> "Afshar" <afshar.mohebbi@.gmail.com> wrote in message
> news:1150372901.156090.26710@.y41g2000cwy.googlegroups.com...
Dear Juan,
You're right: ASPNET user shouldn't be Administrator...

> If you still have doubts, review this list of ACLS which ASP.NET (all vers
ions) requires :
> http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx
This list is very helpfull and I've found many things that I didn't
know about it.
Thanks for your attention once again!
Afshar Mohebbi

Trouble deploying an ASP.NET project that uses a SERVICE

Hi Group,

Please help ending my Nightmare! There's a Windows Service written in
VC++ and I have an ASP.NET project that uses this sevice as a COM
library. It just works fine in VS Internal Web Server and also in my
IIS. I can publish it on my computer easily, But CAN'T publish or
deploy it on other machines with almost same configuration. The Service
in working on all other machines too.
I've tried several ways to set all permissions and security rights to
all users and tried to put that service within the BIN directory but it
doesn't help. The Error message that I get in all situatuions is:
Retrieving the COM class factory for component with CLSID
{3304F12E-4A78-4F49-AF4E-C6E92617249E} failed due to the following
error: 80070005.

Please Help!
AfsharAre you sure the said Windows Service was installed and running (if set to
Automatically Start), either somehow by your publishing/deploying, or
someone did it manually, on the target web server computer? How did you get
the Windows Service installed and running?

"Afshar" <afshar.mohebbi@.gmail.com> wrote in message
news:1149922296.293862.140600@.m38g2000cwc.googlegr oups.com...
> Hi Group,
> Please help ending my Nightmare! There's a Windows Service written in
> VC++ and I have an ASP.NET project that uses this sevice as a COM
> library. It just works fine in VS Internal Web Server and also in my
> IIS. I can publish it on my computer easily, But CAN'T publish or
> deploy it on other machines with almost same configuration. The Service
> in working on all other machines too.
> I've tried several ways to set all permissions and security rights to
> all users and tried to put that service within the BIN directory but it
> doesn't help. The Error message that I get in all situatuions is:
> Retrieving the COM class factory for component with CLSID
> {3304F12E-4A78-4F49-AF4E-C6E92617249E} failed due to the following
> error: 80070005.
> Please Help!
> Afshar
Dear Norman,
I've found the problem, that Service wasn't the problem It was working
and configured fine.

I enabled anonymous access in IIS and set an ASPNET user for it.
Granted administrative rights to ASPNET user and everything went OK!

Thanks for your help,
Afshar
If the project is not used only for test purpose, I strongly suggest you to
consider the security risk of that practice: just having to use that Windows
service, you have lift a web user's priviledge to Administator, that is
definitely not a good way.

"Afshar" <afshar.mohebbi@.gmail.com> wrote in message
news:1150006633.536650.156090@.h76g2000cwa.googlegr oups.com...
> Dear Norman,
> I've found the problem, that Service wasn't the problem It was working
> and configured fine.
> I enabled anonymous access in IIS and set an ASPNET user for it.
> Granted administrative rights to ASPNET user and everything went OK!
> Thanks for your help,
> Afshar
But I don't know what rights to grant the anonymous user.

Norman Yuan wrote:
> If the project is not used only for test purpose, I strongly suggest you to
> consider the security risk of that practice: just having to use that Windows
> service, you have lift a web user's priviledge to Administator, that is
> definitely not a good way.
>
> "Afshar" <afshar.mohebbi@.gmail.com> wrote in message
> news:1150006633.536650.156090@.h76g2000cwa.googlegr oups.com...
> > Dear Norman,
> > I've found the problem, that Service wasn't the problem It was working
> > and configured fine.
> > I enabled anonymous access in IIS and set an ASPNET user for it.
> > Granted administrative rights to ASPNET user and everything went OK!
> > Thanks for your help,
> > Afshar
re:
> But I don't know what rights to grant the anonymous user.

Please review this article :

http://msdn.microsoft.com/library/d...paght000009.asp
for instructions on how to create a service account for ASP.NET

and this article :
http://msdn.microsoft.com/library/d.../secnetht01.asp
for the list of directories to which the ASP.NET service account needs permissions.

This last article is written for 1.1, but the directories haven't changed for 2.0

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/
===================================
"Afshar" <afshar.mohebbi@.gmail.com> wrote in message
news:1150372901.156090.26710@.y41g2000cwy.googlegro ups.com...
> But I don't know what rights to grant the anonymous user.
>
> Norman Yuan wrote:
>> If the project is not used only for test purpose, I strongly suggest you to
>> consider the security risk of that practice: just having to use that Windows
>> service, you have lift a web user's priviledge to Administator, that is
>> definitely not a good way.
>>
>>
>> "Afshar" <afshar.mohebbi@.gmail.com> wrote in message
>> news:1150006633.536650.156090@.h76g2000cwa.googlegr oups.com...
>> > Dear Norman,
>> > I've found the problem, that Service wasn't the problem It was working
>> > and configured fine.
>>> > I enabled anonymous access in IIS and set an ASPNET user for it.
>> > Granted administrative rights to ASPNET user and everything went OK!
>>> > Thanks for your help,
>> > Afshar
>
Dear Juan
The first article is compeltely about Windows 2003 and the Second seems
to not be very realted with Services problem. I'm using Windows XP Pro,
ASP.NET 2.

Thanks:
Afshar Mohebbi

Juan T. Llibre wrote:
> re:
> > But I don't know what rights to grant the anonymous user.
> Please review this article :
> http://msdn.microsoft.com/library/d...paght000009.asp
> for instructions on how to create a service account for ASP.NET
> and this article :
> http://msdn.microsoft.com/library/d.../secnetht01.asp
> for the list of directories to which the ASP.NET service account needs permissions.
> This last article is written for 1.1, but the directories haven't changedfor 2.0
>
> 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/
> ===================================
> "Afshar" <afshar.mohebbi@.gmail.com> wrote in message
> news:1150372901.156090.26710@.y41g2000cwy.googlegro ups.com...
> > But I don't know what rights to grant the anonymous user.
> > Norman Yuan wrote:
> >> If the project is not used only for test purpose, I strongly suggest you to
> >> consider the security risk of that practice: just having to use that Windows
> >> service, you have lift a web user's priviledge to Administator, that is
> >> definitely not a good way.
> >>
> >>
> >> "Afshar" <afshar.mohebbi@.gmail.com> wrote in message
> >> news:1150006633.536650.156090@.h76g2000cwa.googlegr oups.com...
> >> > Dear Norman,
> >> > I've found the problem, that Service wasn't the problem It was working
> >> > and configured fine.
> >> >> > I enabled anonymous access in IIS and set an ASPNET user for it.
> >> > Granted administrative rights to ASPNET user and everything went OK!
> >> >> > Thanks for your help,
> >> > Afshar
> >
re:
> The first article is compeltely about Windows 2003

Actually, it's about ASP.NET 2.0 running under Windows 2003 Server.

The only difference you'll find is in the Application Pool info.
You can ignore that. The rest is quite accurate for IIS 5.1.

re:
> the Second seems to not be very realted with Services problem.

The first article deals with ASP.NET 2.0 and the second one with ASP.NET 1.1.

You can ignore the second one, but it has the correct list of directories to which
you need to assign permissions to whichever account ASP.NET runs as.

The first article doesn't have them, because ASP.NET 2.0 has a nifty
command to assign permissions to all necessary directories :

aspnet_regiis -GA machinename\accountname
or
aspnet_regiis -GA domainname\accountname

re:
> I'm using Windows XP Pro, ASP.NET 2.
> I enabled anonymous access in IIS and set an ASPNET user for it.

OK...

re:
> Granted administrative rights to ASPNET user and everything went OK!

That may bite you in the future.
The ASPNET account should *not* have administrative rights.

What you should do is to *only* assign the rights the account needs.

The list of directories and the type of permissions the ASP.NET
account needs are listed in the second article I sent to you.

If you still have doubts, review this list of ACLS which ASP.NET (all versions) requires :
http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx

If you assign those permissions to *any* account which ASP.NET is running as,
ASP.NET will run just fine, including Web Services.

Don't expose your machine by giving administrative rights to the ASP.NET account.
That is easy to do, and does solve the problem, but it may bring you headaches later on.

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/
===================================
"Afshar" <afshar.mohebbi@.gmail.com> wrote in message
news:1150622522.679335.249860@.r2g2000cwb.googlegro ups.com...
Dear Juan
The first article is compeltely about Windows 2003 and the Second seems
to not be very realted with Services problem. I'm using Windows XP Pro,
ASP.NET 2.

Thanks:
Afshar Mohebbi

Juan T. Llibre wrote:
> re:
> > But I don't know what rights to grant the anonymous user.
> Please review this article :
> http://msdn.microsoft.com/library/d...paght000009.asp
> for instructions on how to create a service account for ASP.NET
> and this article :
> http://msdn.microsoft.com/library/d.../secnetht01.asp
> for the list of directories to which the ASP.NET service account needs permissions.
> This last article is written for 1.1, but the directories haven't changed for 2.0
>
> 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/
> ===================================
> "Afshar" <afshar.mohebbi@.gmail.com> wrote in message
> news:1150372901.156090.26710@.y41g2000cwy.googlegro ups.com...
> > But I don't know what rights to grant the anonymous user.
> > Norman Yuan wrote:
> >> If the project is not used only for test purpose, I strongly suggest you to
> >> consider the security risk of that practice: just having to use that Windows
> >> service, you have lift a web user's priviledge to Administator, that is
> >> definitely not a good way.
> >>
> >>
> >> "Afshar" <afshar.mohebbi@.gmail.com> wrote in message
> >> news:1150006633.536650.156090@.h76g2000cwa.googlegr oups.com...
> >> > Dear Norman,
> >> > I've found the problem, that Service wasn't the problem It was working
> >> > and configured fine.
> >> >> > I enabled anonymous access in IIS and set an ASPNET user for it.
> >> > Granted administrative rights to ASPNET user and everything went OK!
> >> >> > Thanks for your help,
> >> > Afshar
> >
Dear Juan,

You're right: ASPNET user shouldn't be Administrator...

> If you still have doubts, review this list of ACLS which ASP.NET (all versions) requires :
> http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx
This list is very helpfull and I've found many things that I didn't
know about it.

Thanks for your attention once again!
Afshar Mohebbi

Trouble Deploying ASP.NET Application

Hi,
I'm new to ASP.NET and just finished up a small application.
Essentially it's just a form that writes data to a CSV file on the
server after a user fills in the form. The code compiles and runs on
my development machine (VS.NET 2002) but when I FTP all the files to
the server I get a "Server Error in '/' Application." error. I can't
figure out why it won't run. A couple notes:
~ I have no idea of the server settings. It's a clients machine and I
was only told it is a .NET machine.
~ I can't seem to change the Cusomt Error Message in web.config even
though I change the XML, recompile the code and FTP it to the server.
~ This code is residing in a sub-directory of the main web application.
~ I've tried deleteing web.config and Global.asax to see if that would
help but no luck.
Any help would be appreciated,
Justin@dotnet.itags.org.Cutroni.ComMan, you are in a true pickle, Justin.
Let me venture a guess. Under your circumstances, about the only thing you
could do would be a trace IN the page, which you might try, but I sure
wouldn't like to have all the constraints on me that you have, especially if
I was new to .Net!
You say it writes to a file. Therefore, the account under which it is
running must have permission to write to the folder in which the file
resides. My guess would be that it is running under an underpriveleged
account, but you will need to find this out somehow.
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
Sometimes you eat the elephant.
Sometimes the elephant eats you.
"fenway" <justin.cutroni@.gmail.com> wrote in message
news:1116593037.316248.68600@.g49g2000cwa.googlegroups.com...
> Hi,
> I'm new to ASP.NET and just finished up a small application.
> Essentially it's just a form that writes data to a CSV file on the
> server after a user fills in the form. The code compiles and runs on
> my development machine (VS.NET 2002) but when I FTP all the files to
> the server I get a "Server Error in '/' Application." error. I can't
> figure out why it won't run. A couple notes:
> ~ I have no idea of the server settings. It's a clients machine and I
> was only told it is a .NET machine.
> ~ I can't seem to change the Cusomt Error Message in web.config even
> though I change the XML, recompile the code and FTP it to the server.
> ~ This code is residing in a sub-directory of the main web application.
> ~ I've tried deleteing web.config and Global.asax to see if that would
> help but no luck.
> Any help would be appreciated,
> Justin@.Cutroni.Com
>
Hi Kevin,
Thanks for your response. I'm in the process of stepping throught the
file line by line trying to find what's throwing the error.
I agree, it may be a permissions issue with the CSV file.
Unfortunately getting ahold of the sys admin is a time consuimg process
and the only access I have to the server is FTP access.
Justin
So I've been trying to debug a bit and I've found something
interesting. I added a blank ASPX page to my project. This file has
absolutely nothing in it excep a Response.write() call. But if I
compile the project, FTP it to the server and then try to load this
ASPX page I still get the generic "Server Error in '/' Application".
Any thoughts? I could really use a hand.
Thanks,
Justin
Is there anyone out there that can offer a little help re: this issue?
I have a small web app that compiles and runs on my machine but will
not run on the server after I FTP it to the server. Even the simplest
pages throw a "Server Error in '/' Application." error.
I've tried tweking web.config to display a more robust error but that
is not working.
First, if it is in a subdirectory off the main application you must make the
sub-directory it's own application. Otherwise the files in the bin directory
aren't paid attention to since they aren't in the bin directory for the main
application. To make a directory into an applicaton you open the IIS MMC and
select the properties for the particular directory and on the Directory tab
click the button that says Create Application.
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
"fenway" <justin.cutroni@.gmail.com> wrote in message
news:1116593037.316248.68600@.g49g2000cwa.googlegroups.com...
> Hi,
> I'm new to ASP.NET and just finished up a small application.
> Essentially it's just a form that writes data to a CSV file on the
> server after a user fills in the form. The code compiles and runs on
> my development machine (VS.NET 2002) but when I FTP all the files to
> the server I get a "Server Error in '/' Application." error. I can't
> figure out why it won't run. A couple notes:
> ~ I have no idea of the server settings. It's a clients machine and I
> was only told it is a .NET machine.
> ~ I can't seem to change the Cusomt Error Message in web.config even
> though I change the XML, recompile the code and FTP it to the server.
> ~ This code is residing in a sub-directory of the main web application.
> ~ I've tried deleteing web.config and Global.asax to see if that would
> help but no luck.
> Any help would be appreciated,
> Justin@.Cutroni.Com
>
THANK YOU!!!! Once I get ahold of the sys admin that's what I'll tell
him to do. I had read some similar things but was unsure if I needed
to make this sub-directory it's own application. Now I know the
answer. Hopefully that works.
Question, is there a way to create ASP.NET code that plugs into the
existing application without having to modify any settings in IIS? It
would be great if I could just drop this code on the server and have it
run "inside" the current application.
Thanks,
justin
re:
> Now I know the answer. Hopefully that works.
Shouldn't you test that it works BEFORE saying that you know the answer ?
re:
> It would be great if I could just drop this code on the server
> and have it run "inside" the current application.
As long as you drop the code in a subdirectory of your
application's directory, everything should work fine.
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================
"fenway" <justin.cutroni@.gmail.com> wrote in message
news:1116605577.929924.293220@.g14g2000cwa.googlegroups.com...
> THANK YOU!!!! Once I get ahold of the sys admin that's what I'll tell
> him to do. I had read some similar things but was unsure if I needed
> to make this sub-directory it's own application. Now I know the
> answer. Hopefully that works.
> Question, is there a way to create ASP.NET code that plugs into the
> existing application without having to modify any settings in IIS? It
> would be great if I could just drop this code on the server and have it
> run "inside" the current application.
> Thanks,
> justin
>
True, I should test it before stating that it works.
So, If I'm reading your note correctly, I should be able to drop my
application in a sub-folder of an existing application and it should
run correctly? I tried that and got an error. Plus I tried to change
web.config to display a more verbose error message but it's still
display the friendly error message.
re:
> I should be able to drop my application in a sub-folder of an
> existing application and it should run correctly?
That's not what you asked.
You asked if you could drop *code* in a sub-folder
of an existing, and whether it would run correctly.
It *will* run correctly, if you drop it as *code*.
What you are attempting to do is *nest* applications, which since
ASP 1.0 has been *verboten* ( forbidden ), because it leads to
*kaput*, i.e., the end of your application.
If you want a different application, create a different application.
If you want a sub-application, just run it in a sub-directory of your main a
pplication.
You don't have to run a sub-application as a *different* application.
If you do, that application won't be able
to share any values with your main application
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================
"fenway" <justin.cutroni@.gmail.com> wrote in message
news:1116606296.822178.125240@.z14g2000cwz.googlegroups.com...
> True, I should test it before stating that it works.
> So, If I'm reading your note correctly, I should be able to drop my
> application in a sub-folder of an existing application and it should
> run correctly? I tried that and got an error. Plus I tried to change
> web.config to display a more verbose error message but it's still
> display the friendly error message.
>

Trouble deploying ASP.NET application

Tried both FTP and frontpage extensions method to the host server.
Server has directory running as a ASP.NET application.
If I take out ...Inherits="quizengine.WebForm1"...the page loads but no
functionality... of course becuase I have code behind on it.
My problem is extreemly basic. Make an application on my machine, then
publish to host, fire application and I get the following error.
I am completely lost and totally stunned how hard it is to get information
on how to deploy a standard ASP.NET application with no odd settings or
database onto a host server!
Server Error in '/quiz' Application.
----
--
The remote server returned an error: (404) Not Found.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information abou
t
the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote server returned an
error: (404) Not Found.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[WebException: The remote server returned an error: (404) Not Found.]
System.Net.HttpWebRequest.CheckFinalStatus() +680
System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +139
System.Net.HttpWebRequest.GetResponse() +249
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials) +65
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
ofObjectToReturn) +55
System.Xml.XmlTextReader.CreateScanner() +384
System.Xml.XmlTextReader.Init() +23
System.Xml.XmlTextReader.Read() +530
System.Xml.XmlReader.MoveToContent() +75
System.Data.DataSet.ReadXmlSchema(XmlReader reader, Boolean
denyResolving) +122
System.Data.DataSet.ReadXmlSchema(String fileName) +60
quizengine.WebForm1.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\quizengine\default.aspx.cs:25
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
-
----
--problem solved!
although I need to use a full path for my local host directory to access my
XML files for some bizare reason I thought I could just put the file name
only when I deployed it to the host. Once I put the full path name of my hos
t
server..problem gone.
Now I can work on the other problems.
"Sean" wrote:

> Tried both FTP and frontpage extensions method to the host server.
> Server has directory running as a ASP.NET application.
> If I take out ...Inherits="quizengine.WebForm1"...the page loads but no
> functionality... of course becuase I have code behind on it.
> My problem is extreemly basic. Make an application on my machine, then
> publish to host, fire application and I get the following error.
> I am completely lost and totally stunned how hard it is to get informatio
n
> on how to deploy a standard ASP.NET application with no odd settings or
> database onto a host server!
>
> Server Error in '/quiz' Application.
> ----
--
> The remote server returned an error: (404) Not Found.
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information ab
out
> the error and where it originated in the code.
> Exception Details: System.Net.WebException: The remote server returned an
> error: (404) Not Found.
> Source Error:
> An unhandled exception was generated during the execution of the current w
eb
> request. Information regarding the origin and location of the exception ca
n
> be identified using the exception stack trace below.
> Stack Trace:
>
> [WebException: The remote server returned an error: (404) Not Found.]
> System.Net.HttpWebRequest.CheckFinalStatus() +680
> System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +139
> System.Net.HttpWebRequest.GetResponse() +249
> System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
> credentials) +65
> System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
> credentials) +94
> System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
> ofObjectToReturn) +55
> System.Xml.XmlTextReader.CreateScanner() +384
> System.Xml.XmlTextReader.Init() +23
> System.Xml.XmlTextReader.Read() +530
> System.Xml.XmlReader.MoveToContent() +75
> System.Data.DataSet.ReadXmlSchema(XmlReader reader, Boolean
> denyResolving) +122
> System.Data.DataSet.ReadXmlSchema(String fileName) +60
> quizengine.WebForm1.Page_Load(Object sender, EventArgs e) in
> c:\inetpub\wwwroot\quizengine\default.aspx.cs:25
> System.Web.UI.Control.OnLoad(EventArgs e) +67
> System.Web.UI.Control.LoadRecursive() +35
> System.Web.UI.Page.ProcessRequestMain() +750
> -
> ----
--
>
>

Monday, March 26, 2012

Trouble getting the ASP.NET error page to appear remotely

I have been developing a web application on a local host and then
using 'Copy Project' to copy all the files up to the ISP location.
When I run the application locally then all is OK. When I run the
application from the ISP site I get an runtime error.
Because the default page does not givem me any indication as to what
the actual problem is, then I change the web.config file using the
recommended custom error tags as follows:
<customErrors mode= "Off" />
This did not result in me getting the detailed page that would have
been displayed at the server on the ISP. So I tried to create a custom
page by creating a HTML file 'mycustompage.htm' and the modifying the
tag to give:
<customErrors mode= "RemoteOnly" defaultRedirect="mycustompage.htm" />
But the result is still the default page with no indication of error.
It is as if the application is not reading the web.config file.
The tag above had been entered inside the existing <system.web> tag.
Any help would be appreciated.
John L"John Lundrigan" <jonel@.glenavon1.demon.co.uk> wrote in message
news:gkqac05vk2ctuc2bchs18iru81muov4q21@.
4ax.com...
> I have been developing a web application on a local host and then
> using 'Copy Project' to copy all the files up to the ISP location.
> When I run the application locally then all is OK. When I run the
> application from the ISP site I get an runtime error.
...

> But the result is still the default page with no indication of error.
> It is as if the application is not reading the web.config file.
Maybe it isn't reading it. Try introducing a syntax error into the
web.config file and see if the syntax error is caught.
Are you sure your ISP has your app set up as an application in IIS?
--
John Saunders
johnwsaundersiii at hotmail

Trouble getting the ASP.NET error page to appear remotely

I have been developing a web application on a local host and then
using 'Copy Project' to copy all the files up to the ISP location.
When I run the application locally then all is OK. When I run the
application from the ISP site I get an runtime error.

Because the default page does not givem me any indication as to what
the actual problem is, then I change the web.config file using the
recommended custom error tags as follows:

<customErrors mode= "Off" /
This did not result in me getting the detailed page that would have
been displayed at the server on the ISP. So I tried to create a custom
page by creating a HTML file 'mycustompage.htm' and the modifying the
tag to give:

<customErrors mode= "RemoteOnly" defaultRedirect="mycustompage.htm" /
But the result is still the default page with no indication of error.
It is as if the application is not reading the web.config file.

The tag above had been entered inside the existing <system.web> tag.

Any help would be appreciated.

John L"John Lundrigan" <jonel@.glenavon1.demon.co.uk> wrote in message
news:gkqac05vk2ctuc2bchs18iru81muov4q21@.4ax.com...
> I have been developing a web application on a local host and then
> using 'Copy Project' to copy all the files up to the ISP location.
> When I run the application locally then all is OK. When I run the
> application from the ISP site I get an runtime error.
...

> But the result is still the default page with no indication of error.
> It is as if the application is not reading the web.config file.

Maybe it isn't reading it. Try introducing a syntax error into the
web.config file and see if the syntax error is caught.

Are you sure your ISP has your app set up as an application in IIS?
--
John Saunders
johnwsaundersiii at hotmail

Trouble installing ASP.Net app on 2003 enterprise server (404's)

I have a problem deploying a ASP.Net app on a 2003 Enterprise server.
After installing the application I get 404's when I try to access the
aspx pages on the server (not other pages like html or stylesheets).
I installed IIS after the .Net runtime and ran aspnet_regiis
afterwards. I checked, that the .aspx extension is mapped to the
aspnet_isapi.dll for all verbs. Still no luck.
An example W3C log entry is:
""2004-08-10 17:30:52 127.0.0.1 GET
/SolutionsLicensing/ProductSelect.aspx - 80 TESTLAB\Stefan 127.0.0.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322)
404 2 1260""
My environment is IIS 6.0 on Windows Server 2003 Enterpise Edition.
CLR version is 1.1.4322.
I don't quite know where to go from here. Can somebody help me out
here?
Thanks!
-StefanIs the root directory of your ASP.Net app marked as an application?
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Stefan" <kieseltest@.hotmail.com> wrote in message
news:7765139c.0408101101.28a573d5@.posting.google.com...
> I have a problem deploying a ASP.Net app on a 2003 Enterprise server.
> After installing the application I get 404's when I try to access the
> aspx pages on the server (not other pages like html or stylesheets).
> I installed IIS after the .Net runtime and ran aspnet_regiis
> afterwards. I checked, that the .aspx extension is mapped to the
> aspnet_isapi.dll for all verbs. Still no luck.
> An example W3C log entry is:
> ""2004-08-10 17:30:52 127.0.0.1 GET
> /SolutionsLicensing/ProductSelect.aspx - 80 TESTLAB\Stefan 127.0.0.1
> Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322)
> 404 2 1260""
> My environment is IIS 6.0 on Windows Server 2003 Enterpise Edition.
> CLR version is 1.1.4322.
> I don't quite know where to go from here. Can somebody help me out
> here?
> Thanks!
> -Stefan
Kevin,
I'm new to IIS6, so how do you mark the app as application? It's
configured to use the default application pool with execution
permissions on scripts only.
Thanks
-Stefan
"Kevin Spencer" <kspencer@.takempis.com> wrote in message news:<O2jc5KxfEHA.3544@.TK2MSFTNGP1
0.phx.gbl>...
> Is the root directory of your ASP.Net app marked as an application?
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
> "Stefan" <kieseltest@.hotmail.com> wrote in message
> news:7765139c.0408101101.28a573d5@.posting.google.com...

Trouble installing ASP.Net app on 2003 enterprise server (404s)

I have a problem deploying a ASP.Net app on a 2003 Enterprise server.
After installing the application I get 404's when I try to access the
aspx pages on the server (not other pages like html or stylesheets).

I installed IIS after the .Net runtime and ran aspnet_regiis
afterwards. I checked, that the .aspx extension is mapped to the
aspnet_isapi.dll for all verbs. Still no luck.

An example W3C log entry is:

""2004-08-10 17:30:52 127.0.0.1 GET
/SolutionsLicensing/ProductSelect.aspx - 80 TESTLAB\Stefan 127.0.0.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+.NET+CL R+1.1.4322)
404 2 1260""

My environment is IIS 6.0 on Windows Server 2003 Enterpise Edition.
CLR version is 1.1.4322.

I don't quite know where to go from here. Can somebody help me out
here?
Thanks!
-StefanIs the root directory of your ASP.Net app marked as an application?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Stefan" <kieseltest@.hotmail.com> wrote in message
news:7765139c.0408101101.28a573d5@.posting.google.c om...
> I have a problem deploying a ASP.Net app on a 2003 Enterprise server.
> After installing the application I get 404's when I try to access the
> aspx pages on the server (not other pages like html or stylesheets).
> I installed IIS after the .Net runtime and ran aspnet_regiis
> afterwards. I checked, that the .aspx extension is mapped to the
> aspnet_isapi.dll for all verbs. Still no luck.
> An example W3C log entry is:
> ""2004-08-10 17:30:52 127.0.0.1 GET
> /SolutionsLicensing/ProductSelect.aspx - 80 TESTLAB\Stefan 127.0.0.1
> Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+.NET+CL R+1.1.4322)
> 404 2 1260""
> My environment is IIS 6.0 on Windows Server 2003 Enterpise Edition.
> CLR version is 1.1.4322.
> I don't quite know where to go from here. Can somebody help me out
> here?
> Thanks!
> -Stefan
Kevin,

I'm new to IIS6, so how do you mark the app as application? It's
configured to use the default application pool with execution
permissions on scripts only.

Thanks
-Stefan

"Kevin Spencer" <kspencer@.takempis.com> wrote in message news:<O2jc5KxfEHA.3544@.TK2MSFTNGP10.phx.gbl>...
> Is the root directory of your ASP.Net app marked as an application?
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
> "Stefan" <kieseltest@.hotmail.com> wrote in message
> news:7765139c.0408101101.28a573d5@.posting.google.c om...
> > I have a problem deploying a ASP.Net app on a 2003 Enterprise server.
> > After installing the application I get 404's when I try to access the
> > aspx pages on the server (not other pages like html or stylesheets).
> > I installed IIS after the .Net runtime and ran aspnet_regiis
> > afterwards. I checked, that the .aspx extension is mapped to the
> > aspnet_isapi.dll for all verbs. Still no luck.
> > An example W3C log entry is:
> > ""2004-08-10 17:30:52 127.0.0.1 GET
> > /SolutionsLicensing/ProductSelect.aspx - 80 TESTLAB\Stefan 127.0.0.1
> > Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+.NET+CL R+1.1.4322)
> > 404 2 1260""
> > My environment is IIS 6.0 on Windows Server 2003 Enterpise Edition.
> > CLR version is 1.1.4322.
> > I don't quite know where to go from here. Can somebody help me out
> > here?
> > Thanks!
> > -Stefan

Trouble moving servers with asp.net

In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6 server,
we are having trouble with what appears to be ASP.NET server side includes
in the .shtml files. I did not set up the old server or code the site and
have just been brought onto this project so I'm hoping someone out there
with a tad more experience can help me.

The code in the shtml file looks like this:

<%@dotnet.itags.org. Page language="c#" AutoEventWireup="false"
Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@dotnet.itags.org. Register
TagPrefix="MS" TagName="Header" src="http://pics.10026.com/?src=~/Controls/BasePagesl/Header.ascx" %>
<%@dotnet.itags.org. Register TagPrefix="MS" TagName="Footer"
Src="~/Controls/BasePages/Footer.ascx" %
I have mapped the .shtml files on the site to use the aspnet_isapi dll which
matches the settings on the old server. Once I did this, I got an error:

"Server cannot access application directory <my directory>. The directory
does not exist or is not accessable due to security settings".

Fine. I went and granted rights to the folder to my ASPNET account as per
documentation. Still same error. Then I looked at the old server and noticed
that the Everyone account has access to the web folders. Fine. I granted
that permission. When I did that, the server dumps the the whole file to the
browser and does not interpret anything. Its just like it read it like a
text file.

Any ideas?

- RonSo on a whim, I renamed the page to have a .aspx extension and it works fine
that way!! But the page with
the .shtml extension does not, even though it *should* be mapped to execute
using the .NET framework. The
application extension mapping is the same as the .aspx pages. Seems that the
mapping is not working correctly?

"Ron Weldy" <ronweldy@.msn.com> wrote in message
news:ukY7gkK2EHA.2788@.TK2MSFTNGP15.phx.gbl...
> In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6 server,
> we are having trouble with what appears to be ASP.NET server side includes
> in the .shtml files. I did not set up the old server or code the site and
> have just been brought onto this project so I'm hoping someone out there
> with a tad more experience can help me.
> The code in the shtml file looks like this:
> <%@. Page language="c#" AutoEventWireup="false"
> Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@. Register
> TagPrefix="MS" TagName="Header" src="http://pics.10026.com/?src=~/Controls/BasePagesl/Header.ascx" %>
> <%@. Register TagPrefix="MS" TagName="Footer"
> src="http://pics.10026.com/?src=~/Controls/BasePages/Footer.ascx" %>
>
> I have mapped the .shtml files on the site to use the aspnet_isapi dll
> which matches the settings on the old server. Once I did this, I got an
> error:
> "Server cannot access application directory <my directory>. The directory
> does not exist or is not accessable due to security settings".
> Fine. I went and granted rights to the folder to my ASPNET account as per
> documentation. Still same error. Then I looked at the old server and
> noticed that the Everyone account has access to the web folders. Fine. I
> granted that permission. When I did that, the server dumps the the whole
> file to the browser and does not interpret anything. Its just like it read
> it like a text file.
> Any ideas?
> - Ron
So on a whim, I renamed the page to have a .aspx extension and it works fine
that way!! But the page with
the .shtml extension does not, even though it *should* be mapped to execute
using the .NET framework. The
application extension mapping is the same as the .aspx pages. Seems that the
mapping is not working correctly?

"Ron Weldy" <ronweldy@.msn.com> wrote in message
news:ukY7gkK2EHA.2788@.TK2MSFTNGP15.phx.gbl...
> In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6 server,
> we are having trouble with what appears to be ASP.NET server side includes
> in the .shtml files. I did not set up the old server or code the site and
> have just been brought onto this project so I'm hoping someone out there
> with a tad more experience can help me.
> The code in the shtml file looks like this:
> <%@. Page language="c#" AutoEventWireup="false"
> Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@. Register
> TagPrefix="MS" TagName="Header" src="http://pics.10026.com/?src=~/Controls/BasePagesl/Header.ascx" %>
> <%@. Register TagPrefix="MS" TagName="Footer"
> src="http://pics.10026.com/?src=~/Controls/BasePages/Footer.ascx" %>
>
> I have mapped the .shtml files on the site to use the aspnet_isapi dll
> which matches the settings on the old server. Once I did this, I got an
> error:
> "Server cannot access application directory <my directory>. The directory
> does not exist or is not accessable due to security settings".
> Fine. I went and granted rights to the folder to my ASPNET account as per
> documentation. Still same error. Then I looked at the old server and
> noticed that the Everyone account has access to the web folders. Fine. I
> granted that permission. When I did that, the server dumps the the whole
> file to the browser and does not interpret anything. Its just like it read
> it like a text file.
> Any ideas?
> - Ron
Hi Ron..
U can try checking:-
http://www.microsoft.com/india/msdn/articles/57.aspx
It shoud hELP u..
Patrick

"Ron Weldy" wrote:

> So on a whim, I renamed the page to have a .aspx extension and it works fine
> that way!! But the page with
> the .shtml extension does not, even though it *should* be mapped to execute
> using the .NET framework. The
> application extension mapping is the same as the .aspx pages. Seems that the
> mapping is not working correctly?
>
> "Ron Weldy" <ronweldy@.msn.com> wrote in message
> news:ukY7gkK2EHA.2788@.TK2MSFTNGP15.phx.gbl...
> > In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6 server,
> > we are having trouble with what appears to be ASP.NET server side includes
> > in the .shtml files. I did not set up the old server or code the site and
> > have just been brought onto this project so I'm hoping someone out there
> > with a tad more experience can help me.
> > The code in the shtml file looks like this:
> > <%@. Page language="c#" AutoEventWireup="false"
> > Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@. Register
> > TagPrefix="MS" TagName="Header" src="http://pics.10026.com/?src=~/Controls/BasePagesl/Header.ascx" %>
> > <%@. Register TagPrefix="MS" TagName="Footer"
> > src="http://pics.10026.com/?src=~/Controls/BasePages/Footer.ascx" %>
> > I have mapped the .shtml files on the site to use the aspnet_isapi dll
> > which matches the settings on the old server. Once I did this, I got an
> > error:
> > "Server cannot access application directory <my directory>. The directory
> > does not exist or is not accessable due to security settings".
> > Fine. I went and granted rights to the folder to my ASPNET account as per
> > documentation. Still same error. Then I looked at the old server and
> > noticed that the Everyone account has access to the web folders. Fine. I
> > granted that permission. When I did that, the server dumps the the whole
> > file to the browser and does not interpret anything. Its just like it read
> > it like a text file.
> > Any ideas?
> > - Ron
>
Thanks. Great article. Unless I'm missing something, it's implying that I
need to create a http handler for this extension as well. I checked the
web.config file on the old server and I don't see anything in there like
this, and the .shtml files serve up correctly from there, so that makes me
somewhat suspicious.

Now there are several web sites hosted on the server although this site is
the only one where the original techie had overridden the mapping for the
..shtml files. I suppose it could be in a global configuration file... but I
am not sure where that is at. I would place a handler in the local file just
to see if that works but I am not sure of the correct class to use. I guess
it would be just System.Web?

- Ron

"Patrick.O.Ige" <PatrickOIge@.discussions.microsoft.com> wrote in message
news:AFB8138E-11FB-4C99-AC55-873CB94CFDAD@.microsoft.com...
> Hi Ron..
> U can try checking:-
> http://www.microsoft.com/india/msdn/articles/57.aspx
> It shoud hELP u..
> Patrick
> "Ron Weldy" wrote:
>> So on a whim, I renamed the page to have a .aspx extension and it works
>> fine
>> that way!! But the page with
>> the .shtml extension does not, even though it *should* be mapped to
>> execute
>> using the .NET framework. The
>> application extension mapping is the same as the .aspx pages. Seems that
>> the
>> mapping is not working correctly?
>>
>>
>> "Ron Weldy" <ronweldy@.msn.com> wrote in message
>> news:ukY7gkK2EHA.2788@.TK2MSFTNGP15.phx.gbl...
>> > In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6
>> > server,
>> > we are having trouble with what appears to be ASP.NET server side
>> > includes
>> > in the .shtml files. I did not set up the old server or code the site
>> > and
>> > have just been brought onto this project so I'm hoping someone out
>> > there
>> > with a tad more experience can help me.
>>> > The code in the shtml file looks like this:
>>> > <%@. Page language="c#" AutoEventWireup="false"
>> > Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@. Register
>> > TagPrefix="MS" TagName="Header" src="http://pics.10026.com/?src=~/Controls/BasePagesl/Header.ascx"
>> > %>
>> > <%@. Register TagPrefix="MS" TagName="Footer"
>> > src="http://pics.10026.com/?src=~/Controls/BasePages/Footer.ascx" %>
>>>> > I have mapped the .shtml files on the site to use the aspnet_isapi dll
>> > which matches the settings on the old server. Once I did this, I got an
>> > error:
>>> > "Server cannot access application directory <my directory>. The
>> > directory
>> > does not exist or is not accessable due to security settings".
>>> > Fine. I went and granted rights to the folder to my ASPNET account as
>> > per
>> > documentation. Still same error. Then I looked at the old server and
>> > noticed that the Everyone account has access to the web folders. Fine.
>> > I
>> > granted that permission. When I did that, the server dumps the the
>> > whole
>> > file to the browser and does not interpret anything. Its just like it
>> > read
>> > it like a text file.
>>> > Any ideas?
>>> > - Ron
>>>
>>
>
That was it. It was in the machine.config file. The class was
System.Web.UI.PageHandlerFactory.

Patrick, you are the man!

Thanks!

- Ron

"Ron Weldy" <ronweldy@.msn.com> wrote in message
news:%23vHQuON2EHA.3092@.TK2MSFTNGP10.phx.gbl...
> Thanks. Great article. Unless I'm missing something, it's implying that I
> need to create a http handler for this extension as well. I checked the
> web.config file on the old server and I don't see anything in there like
> this, and the .shtml files serve up correctly from there, so that makes me
> somewhat suspicious.
> Now there are several web sites hosted on the server although this site is
> the only one where the original techie had overridden the mapping for the
> .shtml files. I suppose it could be in a global configuration file... but
> I am not sure where that is at. I would place a handler in the local file
> just to see if that works but I am not sure of the correct class to use. I
> guess it would be just System.Web?
> - Ron
>
> "Patrick.O.Ige" <PatrickOIge@.discussions.microsoft.com> wrote in message
> news:AFB8138E-11FB-4C99-AC55-873CB94CFDAD@.microsoft.com...
>> Hi Ron..
>> U can try checking:-
>> http://www.microsoft.com/india/msdn/articles/57.aspx
>> It shoud hELP u..
>> Patrick
>>
>> "Ron Weldy" wrote:
>>
>>> So on a whim, I renamed the page to have a .aspx extension and it works
>>> fine
>>> that way!! But the page with
>>> the .shtml extension does not, even though it *should* be mapped to
>>> execute
>>> using the .NET framework. The
>>> application extension mapping is the same as the .aspx pages. Seems that
>>> the
>>> mapping is not working correctly?
>>>
>>>
>>> "Ron Weldy" <ronweldy@.msn.com> wrote in message
>>> news:ukY7gkK2EHA.2788@.TK2MSFTNGP15.phx.gbl...
>>> > In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6
>>> > server,
>>> > we are having trouble with what appears to be ASP.NET server side
>>> > includes
>>> > in the .shtml files. I did not set up the old server or code the site
>>> > and
>>> > have just been brought onto this project so I'm hoping someone out
>>> > there
>>> > with a tad more experience can help me.
>>>>> > The code in the shtml file looks like this:
>>>>> > <%@. Page language="c#" AutoEventWireup="false"
>>> > Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@. Register
>>> > TagPrefix="MS" TagName="Header"
>>> > src="http://pics.10026.com/?src=~/Controls/BasePagesl/Header.ascx" %>
>>> > <%@. Register TagPrefix="MS" TagName="Footer"
>>> > src="http://pics.10026.com/?src=~/Controls/BasePages/Footer.ascx" %>
>>>>>>> > I have mapped the .shtml files on the site to use the aspnet_isapi dll
>>> > which matches the settings on the old server. Once I did this, I got
>>> > an
>>> > error:
>>>>> > "Server cannot access application directory <my directory>. The
>>> > directory
>>> > does not exist or is not accessable due to security settings".
>>>>> > Fine. I went and granted rights to the folder to my ASPNET account as
>>> > per
>>> > documentation. Still same error. Then I looked at the old server and
>>> > noticed that the Everyone account has access to the web folders. Fine.
>>> > I
>>> > granted that permission. When I did that, the server dumps the the
>>> > whole
>>> > file to the browser and does not interpret anything. Its just like it
>>> > read
>>> > it like a text file.
>>>>> > Any ideas?
>>>>> > - Ron
>>>>>
>>>
>>>

Trouble moving servers with asp.net

In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6 server,
we are having trouble with what appears to be ASP.NET server side includes
in the .shtml files. I did not set up the old server or code the site and
have just been brought onto this project so I'm hoping someone out there
with a tad more experience can help me.
The code in the shtml file looks like this:
<%@dotnet.itags.org. Page language="c#" AutoEventWireup="false"
Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@dotnet.itags.org. Register
TagPrefix="MS" TagName="Header" src="http://pics.10026.com/?src=~/Controls/BasePagesl/Header.ascx" %>
<%@dotnet.itags.org. Register TagPrefix="MS" TagName="Footer"
Src="~/Controls/BasePages/Footer.ascx" %>
I have mapped the .shtml files on the site to use the aspnet_isapi dll which
matches the settings on the old server. Once I did this, I got an error:
"Server cannot access application directory <my directory>. The directory
does not exist or is not accessable due to security settings".
Fine. I went and granted rights to the folder to my ASPNET account as per
documentation. Still same error. Then I looked at the old server and noticed
that the Everyone account has access to the web folders. Fine. I granted
that permission. When I did that, the server dumps the the whole file to the
browser and does not interpret anything. Its just like it read it like a
text file.
Any ideas?
- RonSo on a whim, I renamed the page to have a .aspx extension and it works fine
that way!! But the page with
the .shtml extension does not, even though it *should* be mapped to execute
using the .NET framework. The
application extension mapping is the same as the .aspx pages. Seems that the
mapping is not working correctly?
"Ron Weldy" <ronweldy@.msn.com> wrote in message
news:ukY7gkK2EHA.2788@.TK2MSFTNGP15.phx.gbl...
> In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6 server,
> we are having trouble with what appears to be ASP.NET server side includes
> in the .shtml files. I did not set up the old server or code the site and
> have just been brought onto this project so I'm hoping someone out there
> with a tad more experience can help me.
> The code in the shtml file looks like this:
> <%@. Page language="c#" AutoEventWireup="false"
> Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@. Register
> TagPrefix="MS" TagName="Header" src="http://pics.10026.com/?src=~/Controls/BasePagesl/Header.ascx" %>
> <%@. Register TagPrefix="MS" TagName="Footer"
> src="http://pics.10026.com/?src=~/Controls/BasePages/Footer.ascx" %>
>
> I have mapped the .shtml files on the site to use the aspnet_isapi dll
> which matches the settings on the old server. Once I did this, I got an
> error:
> "Server cannot access application directory <my directory>. The directory
> does not exist or is not accessable due to security settings".
> Fine. I went and granted rights to the folder to my ASPNET account as per
> documentation. Still same error. Then I looked at the old server and
> noticed that the Everyone account has access to the web folders. Fine. I
> granted that permission. When I did that, the server dumps the the whole
> file to the browser and does not interpret anything. Its just like it read
> it like a text file.
> Any ideas?
> - Ron
>
So on a whim, I renamed the page to have a .aspx extension and it works fine
that way!! But the page with
the .shtml extension does not, even though it *should* be mapped to execute
using the .NET framework. The
application extension mapping is the same as the .aspx pages. Seems that the
mapping is not working correctly?
"Ron Weldy" <ronweldy@.msn.com> wrote in message
news:ukY7gkK2EHA.2788@.TK2MSFTNGP15.phx.gbl...
> In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6 server,
> we are having trouble with what appears to be ASP.NET server side includes
> in the .shtml files. I did not set up the old server or code the site and
> have just been brought onto this project so I'm hoping someone out there
> with a tad more experience can help me.
> The code in the shtml file looks like this:
> <%@. Page language="c#" AutoEventWireup="false"
> Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@. Register
> TagPrefix="MS" TagName="Header" src="http://pics.10026.com/?src=~/Controls/BasePagesl/Header.ascx" %>
> <%@. Register TagPrefix="MS" TagName="Footer"
> src="http://pics.10026.com/?src=~/Controls/BasePages/Footer.ascx" %>
>
> I have mapped the .shtml files on the site to use the aspnet_isapi dll
> which matches the settings on the old server. Once I did this, I got an
> error:
> "Server cannot access application directory <my directory>. The directory
> does not exist or is not accessable due to security settings".
> Fine. I went and granted rights to the folder to my ASPNET account as per
> documentation. Still same error. Then I looked at the old server and
> noticed that the Everyone account has access to the web folders. Fine. I
> granted that permission. When I did that, the server dumps the the whole
> file to the browser and does not interpret anything. Its just like it read
> it like a text file.
> Any ideas?
> - Ron
>
Hi Ron..
U can try checking:-
http://www.microsoft.com/india/msdn/articles/57.aspx
It shoud hELP u..
Patrick
"Ron Weldy" wrote:

> So on a whim, I renamed the page to have a .aspx extension and it works fi
ne
> that way!! But the page with
> the .shtml extension does not, even though it *should* be mapped to execut
e
> using the .NET framework. The
> application extension mapping is the same as the .aspx pages. Seems that t
he
> mapping is not working correctly?
>
> "Ron Weldy" <ronweldy@.msn.com> wrote in message
> news:ukY7gkK2EHA.2788@.TK2MSFTNGP15.phx.gbl...
>
>
Thanks. Great article. Unless I'm missing something, it's implying that I
need to create a http handler for this extension as well. I checked the
web.config file on the old server and I don't see anything in there like
this, and the .shtml files serve up correctly from there, so that makes me
somewhat suspicious.
Now there are several web sites hosted on the server although this site is
the only one where the original techie had overridden the mapping for the
.shtml files. I suppose it could be in a global configuration file... but I
am not sure where that is at. I would place a handler in the local file just
to see if that works but I am not sure of the correct class to use. I guess
it would be just System.Web?
- Ron
"Patrick.O.Ige" <PatrickOIge@.discussions.microsoft.com> wrote in message
news:AFB8138E-11FB-4C99-AC55-873CB94CFDAD@.microsoft.com...
> Hi Ron..
> U can try checking:-
> http://www.microsoft.com/india/msdn/articles/57.aspx
> It shoud hELP u..
> Patrick
> "Ron Weldy" wrote:
>
That was it. It was in the machine.config file. The class was
System.Web.UI.PageHandlerFactory.
Patrick, you are the man!
Thanks!
- Ron
"Ron Weldy" <ronweldy@.msn.com> wrote in message
news:%23vHQuON2EHA.3092@.TK2MSFTNGP10.phx.gbl...
> Thanks. Great article. Unless I'm missing something, it's implying that I
> need to create a http handler for this extension as well. I checked the
> web.config file on the old server and I don't see anything in there like
> this, and the .shtml files serve up correctly from there, so that makes me
> somewhat suspicious.
> Now there are several web sites hosted on the server although this site is
> the only one where the original techie had overridden the mapping for the
> .shtml files. I suppose it could be in a global configuration file... but
> I am not sure where that is at. I would place a handler in the local file
> just to see if that works but I am not sure of the correct class to use. I
> guess it would be just System.Web?
> - Ron
>
> "Patrick.O.Ige" <PatrickOIge@.discussions.microsoft.com> wrote in message
> news:AFB8138E-11FB-4C99-AC55-873CB94CFDAD@.microsoft.com...
>

Trouble opening a asp.net project

Hello,

I've inherited an vs2003 asp.net project from a fellow that had Windows
2000 advanced server as his development machine. As a result he mapped
the project to a web site (mapped to a non-standard port, 87 I think)
instead of mapping it to a virtual directory.

My dev machine is winxppro and my IIS doesn't allow me to create new web
sites. I've tried various techniques to be able to map it to a virtual
directory, but to no avail. I keep getting the error that "The file
path '[Physical Project Path]' does not correspond to the URL '[Project
URL]'. The two need to map to the same server location. HTTP Error 404:
File Not Found."

Is there a definitive guide somewhere that can walk me through the
process of moving the project to a state where I can work on it in
Windows XP?

Or any other advice would also be highly appreciated.

Regards,
RobertLook into the solution and project files and manually change the paths
within each.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Frank Rizzo" <none@.none.com> wrote in message
news:%230xUfbMjGHA.1324@.TK2MSFTNGP04.phx.gbl...
> Hello,
> I've inherited an vs2003 asp.net project from a fellow that had Windows
> 2000 advanced server as his development machine. As a result he mapped
> the project to a web site (mapped to a non-standard port, 87 I think)
> instead of mapping it to a virtual directory.
> My dev machine is winxppro and my IIS doesn't allow me to create new web
> sites. I've tried various techniques to be able to map it to a virtual
> directory, but to no avail. I keep getting the error that "The file path
> '[Physical Project Path]' does not correspond to the URL '[Project URL]'.
> The two need to map to the same server location. HTTP Error 404: File Not
> Found."
> Is there a definitive guide somewhere that can walk me through the process
> of moving the project to a state where I can work on it in Windows XP?
> Or any other advice would also be highly appreciated.
> Regards,
> Robert

Trouble opening a asp.net project

Hello,
I've inherited an vs2003 asp.net project from a fellow that had Windows
2000 advanced server as his development machine. As a result he mapped
the project to a web site (mapped to a non-standard port, 87 I think)
instead of mapping it to a virtual directory.
My dev machine is winxppro and my IIS doesn't allow me to create new web
sites. I've tried various techniques to be able to map it to a virtual
directory, but to no avail. I keep getting the error that "The file
path '[Physical Project Path]' does not correspond to the URL '[Project
URL]'. The two need to map to the same server location. HTTP Error 404:
File Not Found."
Is there a definitive guide somewhere that can walk me through the
process of moving the project to a state where I can work on it in
Windows XP?
Or any other advice would also be highly appreciated.
Regards,
RobertLook into the solution and project files and manually change the paths
within each.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."
"Frank Rizzo" <none@.none.com> wrote in message
news:%230xUfbMjGHA.1324@.TK2MSFTNGP04.phx.gbl...
> Hello,
> I've inherited an vs2003 asp.net project from a fellow that had Windows
> 2000 advanced server as his development machine. As a result he mapped
> the project to a web site (mapped to a non-standard port, 87 I think)
> instead of mapping it to a virtual directory.
> My dev machine is winxppro and my IIS doesn't allow me to create new web
> sites. I've tried various techniques to be able to map it to a virtual
> directory, but to no avail. I keep getting the error that "The file path
> '[Physical Project Path]' does not correspond to the URL '[Project URL]'.
> The two need to map to the same server location. HTTP Error 404: File Not
> Found."
> Is there a definitive guide somewhere that can walk me through the process
> of moving the project to a state where I can work on it in Windows XP?
> Or any other advice would also be highly appreciated.
> Regards,
> Robert