Can't access ASP.net pages from outside

R

ree32

We have an intranet setup but when you try and connect from outside
the network using a windows login & the internet the ASP.net pages
(.aspx) on the intranet will not load but the old asp pages (.asp)
load. Whats more frustrating is the fact eventhe errors will not
show, I have even tried to change the customerrors to "off" from
"remote only", and still it won't show the errors. So does anyone have
an idea as to what is causing this problem.
 
Y

Yama

Try changing the IE setup...

Go to Tools
Internet Option...
Advanced tab
Uncheck "Show friendly HTTP error messages"

Make sure you have the following in the web.config root:
<customErrors mode="Off" />

Careful it is case-sensitive.



Yama
 
R

ree32

Jeff Dillon said:
What message do you get?
All that crap about custum errors should be set to off inorder to get
see the error message. I have set it to off too.
 
J

Jeff Dillon

Once again, what is the exact error message that you are getting. "Crap"
doesn't help me at all
 
R

ree32

Jeff Dillon said:
Once again, what is the exact error message that you are getting. "Crap"
doesn't help me at all

It just says the usual CustomErrors has to be turned off message I am
sure you have seen that by now?
 
R

ree32

Runtime Error
Description: An application error occurred on the server. The current
custom error settings for this application prevent the details of the
application error from being viewed remotely (for security reasons).
It could, however, be viewed by browsers running on the local server
machine.

Details: To enable the details of this specific error message to be
viewable on remote machines, please create a <customErrors> tag within
a "web.config" configuration file located in the root directory of the
current web application. This <customErrors> tag should then have its
"mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a
custom error page by modifying the "defaultRedirect" attribute of the
application's <customErrors> configuration tag to point to a custom
error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly"
defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
 
J

Jeff Dillon

Ok, I assume you've tried what the error says. Or obviously tried it from a
browser on the same machine. Is this correct, or am I missing something?

Jeff
 
R

ree32

Yama said:
Try changing the IE setup...

Go to Tools
Internet Option...
Advanced tab
Uncheck "Show friendly HTTP error messages"

I tried that still the same problems.
 
R

ree32

Jeff Dillon said:
Ok, I assume you've tried what the error says. Or obviously tried it from a
browser on the same machine. Is this correct, or am I missing something?

Jeff

Yep it all woks fine when you are "inside" ie. on the local host or
the network but when you connect from the outside I get the error I
posted. I have a feeling this has something to do with file
permissions, i.e. do you know more information as to what user a
person is connected as when they view the page from the internet.

Thanks
 
J

Jeff Dillon

Once again, did you do exactly as the error message instructs you to do??
This will give you more meaningful information on the client.

Jeff
 
R

ree32

Thats what I am saying I can't get the error message to show. Its
frustrating as this problem doesn't occur on the local host machine.
 
R

ree32

I managed to do some fiddling around got the Error message to show.
Now I am getting this Error message. Before you ask - Yes the
application has a virtual folder in IIS and it is running under an
application name.

Configuration Error
Description: An error occurred during the processing of a
configuration file required to service this request. Please review the
specific error details below and modify your configuration file
appropriately.

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS.

Source Error:


Line 37: by Microsoft that offers a single logon and core
profile services for member sites.
Line 38: -->
Line 39: <authentication mode="Windows" />
Line 40:
Line 41:
 
R

Ravichandran J.V.

Check if the Windows login that you are using to access your aspx pages
have the permission to access these pages. If not, you will have to use
impersonation. Set <identity impersonate=true userid= password=/> in the
web.config file.


with regards,


J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com
 
R

ree32

These logins are the logins they use on the network and when people
are accesing these pages from the intranet its all fine. But when they
are accessing from the internet the problem occurs.

As for permissons on the server don't the users all access the pages
by a common user account i.e. IUSR??
The old ASP pages have no problems. ITs just the .ASPX pages.
 
J

Jeff Dillon

As a test, add Network Server, ASPNET and/or IUSR/IWAM to the admin group.
See if it works. If it does, it's a permissions problem. Then "quickly" take
these accounts out of admin, and report your findings back here.

Jeff
 
R

ree32

Its running on windows 2000 I cannot access the Users in control
panel. IS there some way to do this?
 
R

ree32

Jeff Dillon said:
Control Panel/Administrative Tools

possibly then under Computer Managment

The problem is that the computer is a domain controller using active
server directory so I am not sure where to find the user account
names.
 
R

ree32

Jeff Dillon said:
Control Panel/Administrative Tools

possibly then under Computer Managment

I found the it in the active directory added ths accounts to the Admin
group and still no luck. Thanks for your help anyway.

Could this problem be caused by not having a web.config file in the
root folder on the intranet folder.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top