Monday, March 26, 2012
Trouble getting the ASP.NET error page to appear remotely
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
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 debugger
Are there any differences between running remotely and local machine?
Error Message received:
Error while running the project, unable to start debugging on the web server. The debugger is not properly installed. Run setup to install or repair the debugger.
thanks,
LauraAre you using visual studio.net?
If so, start the project temporarily by hitting ctrl + F5, this will start it without debugging. it may be because the site path is incorrect in IIS.
If you need help with this let me know...
Saturday, March 24, 2012
Trouble with ASP.NET databasing on XP
I'm having a heck of a time getting some ASP.NET code to run locally on XP with MDAC/ADO talking to a local access db. I know the code runs fine on IIS on Win2000 and Win2003. When I move it to my local XP system it won't work.
Anybody dealt with these issues in terms of permissions.
I opened up the permissions on the /temp folders. The issue seems to be that an .ldb file is created as the database is locked but it never seems to release it. The asp.net code just sits there an hangs with no error message.
Oh, sorry, I need to add a few things that folks are going to suggest.
1. All database connections are closed. In fact, the code runs fine on a real IIS server...so there is no chance that this is the problem.
2. Permissions. ASPNET, IUSR, System, Admin and WADMNET, USERS, etc. have Full Control to the folder and all files underneath.
Yes XP permssions config is hidden so you have to enable it to run. Try the url below for the steps. Hope this helps.
http://whoozoo.co.uk/winxpFilePerms.htm
Try the link below to see the database permissions. Hope this helps.
http://duhnetnuke2.net/Default.aspx?tabid=64
No, unfortunately, the first link shows you how to enable the sharing dialog and the file security dialogs in XP. I already have them enabled...I have too since as I already stated, I have set the permissions correctly on the .mdb and folder. Thats how I set the ASPNET account to have Full Control and IUSR_machinename account to have full control of the .mdb as well as the folder where the .mdb is located.
The second link describes using a SQL database. I really need this to work with Access locally.
However, I have gone through all of the things is the article to make sure thats what I got and confirm that my computer is set this way.
I still have the same problem. The database is permantly and perpetually locked with any single and with the first asp.net ADO access to it. Its never released--and thats the issue.
Trouble with authentication in asp.net
* Created the user "testuser" on the local machine
* created the group "testgroup" on the local machine
* added testuser -> testgroup
* created an asp.net webapp in IIS and set it to windows authentication
* in explorer, I have added testgroup to read rights on the web app folder.
* Now I run the app, I enter the username and password and it let me in..
BUT when I write User.IsInRole("testgroup") I get "false"... why is that? I should get "true"...
so my problem is with the groups, everything else works fine!!!
whats the problem?
/HenrikHave you set identity impersonation to true?
Yes!! But im not sure it matters?
I have done something similar for a winforms app, but there I fetched the group info from the AD using system.directoryservices and then created genericprincipal and genericidentity... then it works to check Thread.User.IsInRole("wewwq"),,,
im not sure what to do with asp.net to get the same functionality...
/henrik
Maybe you need to disable "anonymous" in the IIS server.
It may be passing "anonymous" instead of the user id.
?
i have disabled anonymous login in the IIS, and set to windows authentication... and I get the correct username when using User.Identity.Name its the groups that dont work correct
/Henrik
Have you restarted the machine for the group changes to take effect? Or tried issuing iisreset at the command prompt?