Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Inconsistent Login Problem
Peter Katsoulas
#1 Posted : Thursday, August 20, 2009 10:16:58 AM(UTC)
Groups: Member
Joined: 8/20/2009(UTC)
Posts: 9

We have an ASP.NET 3.5 application which we are trying to get to work using the Cassini web server. When the application is launched, the login page correctly appears. However, when a correct username and password are entered and the Log In butten is pressed, the following error is generated:


Server Error in '/' Application.


The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /Default.aspx



Version Information: Microsoft .NET Framework Version:2.0.50727.4016; ASP.NET Version:2.0.50727.4016



If however I launch the application and at the login page I press another button which takes me directly to another page (recover password) without loging in and then use a menu entry that sends me back to the login page and then enter the very same username and password and press the Log In button, it works fine.

Also, if I launch the application from the Cassinin Web Server Explorer, it works fine.

We are using the ASP.NET authorization mechanism. The startup page is default.aspx and the application is configured to always go to the login page if there is no authorized user. The one exception to this is that as mentioned above, the recover password page can be gone to from the login page without a user being authorized.

The log in page has the following setting:
DestinationPageUrl="~/Src/Default.aspx"

The application's main folder is C:\Program Files\Software Productivity Research LLC\KnowledgePLAN and the aspx files are in C:\Program Files\Software Productivity Research LLC\KnowledgePLAN\src.

When I registered the application in the Cassini Web Server Explorer, I made the Physical Location C:\Program Files\Software Productivity Research LLC\KnowledgePLAN\ and the Default Document \src.

Any thoughts on this?
Ultidev Team
#2 Posted : Thursday, August 20, 2009 4:23:22 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hello, Peter.

Thank you for using UltiDev products.

We'll do our best to help you troubleshooting this one out. You seem to have registered your app's physical location folder correctly, but default document set to "Src\Default.aspx" might be a cleaner approach.

We suspect that when you launch the app, the incorrect default document is requested, but preempted by login page. To verify whether it's a correct theory please see whether the URL in the address bar of the browser looks something like login.aspx?ReturnUrl=%2fDefault.aspx. If so, then DestinationPageUrl setting in web.config does not play any role and after logging in you get redirected to the original default document location that was probably incorrect in the first place.

Please let us know if this information has helped.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Peter Katsoulas
#3 Posted : Friday, August 21, 2009 6:40:39 AM(UTC)
Groups: Member
Joined: 8/20/2009(UTC)
Posts: 9

Thanks for the response. My Default Document setting is src\default.aspx. I guess I did not proof read my question to you well enough (typo). However, I did what you suggested and in fact the url when the login page is up is:

http://localhost:31454/src/login.aspx?ReturnUrl=%2fDefault.aspx

Which explains why it is looking for \Default.aspx instead of src\Default.aspx.

When I use the described roundabout way thru our Recover Password page and then go back to the login page, the url is correctly:

http://localhost:31454/Src/Login.aspx?ReturnUrl=%2fSrc%2fDefault.aspx

This started me thinking why is the initial url incorrect when the Cassini Default Document setting is src\default.aspx. Well, it turns out, for some reason, that although I entered what is the correct registration information when there were no other registration entries, when I exit the Cassini Web Server Explorer and then launch it again, a second entry was there with the Default Document setting set to \default.aspx. When I changed the Default Document to src\default.aspx in this additional (magic) entry, everything worked fine.

I had played around with a few registrations before I got it right and most certainly one of the incorrect ones had the Default Document as \default.aspx. I definitely unregistered all the incorrect ones but for some reason it re-appeared when I added the good one.

Any thoughts on this?
Ultidev Team
#4 Posted : Friday, August 21, 2009 7:40:55 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Peter,

Do we understand the problem correctly that Cassini Explorer creates incorrect/duplicate registration entries? If so, could you please list the steps you take to reproduce the error with some degree of consistency?

Just FYI, every time you save registration info, CassiniMetabase.xml file in "C:\Documents and Settings\All Users\Application Data\UltiDev\Cassini" folder gets updated. You can open the file to see whether it indeed has wrong or duplicate entries.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Peter Katsoulas
#5 Posted : Friday, August 21, 2009 10:52:32 AM(UTC)
Groups: Member
Joined: 8/20/2009(UTC)
Posts: 9

I could not find CassiniMetabase.xml on my Vista machine. However, I did the following:

1. I unregistered everything and exited the Cassini Web Server Explorer.
2. I uninstalled my application.
3. I reinstalled my application.
4. I ran the application and it launched successfully but my login problem existed. It seems strange that it launched since in theory the application was not registereed with Cassini.
5. I went into the Cassini Explorer and the application entry was once again there. Magic. I simply then changed the Default Document setting from \default.aspx to src\default.aspx.
6. I ran my application and all was well.

It appears that the first entry I put into the Cassini Explorer when I first installed the web server will not go away.

This is not doing me any harm but it would be nice to know what is going on.
Ultidev Team
#6 Posted : Monday, August 24, 2009 8:25:54 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Peter,

Do you have "C:\Documents and Settings\All Users\Application Data\UltiDev\Cassini" folder on your system? Are there any files in the folder? The only way to determine what is going on is to track changes made to CassiniConfiguration.xml file by registrations and unregistrations. CassiniConfiguration.xml file has to be there for the Cassini Server to function.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Peter Katsoulas
#7 Posted : Monday, August 31, 2009 4:59:56 AM(UTC)
Groups: Member
Joined: 8/20/2009(UTC)
Posts: 9

Sorry I disappeared. I was on vacation last week. I found CassiniMetabase.xml in c:\programdata\ultidev. Apparently I needed to incude non-indexed and hidden files in my Windows Explorer search. It looks as follows:

<?xml version="1.0" encoding="utf-8" ?>
- <CassiningMetabase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <Application FrameworkVersion="2.0" KeepRunning="true">
<PhysicalPath>C:\Program Files\Software Productivity Research LLC\KnowledgePLAN\</PhysicalPath>
<Port>2722</Port>
<Name>KnowledgePLAN</Name>
<Description>KnowledgePLAN Setup</Description>
<DefaultDocument>src\Default.aspx</DefaultDocument>
<ApplicationID>62eafccb-81c0-41dd-bb67-11cf0f1e400c</ApplicationID>
</Application>
- <Application FrameworkVersion="1.1" KeepRunning="true">
<PhysicalPath>C:\Program Files\UltiDev\Cassini Web Server Explorer</PhysicalPath>
<Port>7756</Port>
<Name>UltiDev Cassini Web Server Explorer</Name>
<Description>Cassini Web Server configuration utility</Description>
<DefaultDocument />
<ApplicationID>4fd8b3f7-bc73-4583-95fe-e7b69b10a3ae</ApplicationID>
</Application>
</CassiningMetabase>

I do not have the time today to play around with it but I will as soon as I can.
Ultidev Team
#8 Posted : Monday, August 31, 2009 6:32:14 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Peter,

On Vista you should still be able to navigate to "C:\Documents and Settings\All Users\Application Data\UltiDev\Cassini" folder by doing Start | Run and then pasting this path into the command bar and hitting enter. If you can't do that, then your Vista's "junction points" could be messed up. Vista normally has "C:\Documents and Settings\All Users\Application Data" junction point for "c:\programdata" folder.

Anyway, they prescription is still the same: please monitor changes "CassiniMetabase.xml" from c:\programdata\ultidev as you register and unregister applications.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Peter Katsoulas
#9 Posted : Wednesday, September 2, 2009 10:00:05 AM(UTC)
Groups: Member
Joined: 8/20/2009(UTC)
Posts: 9

When I unregister my application, the XML file is as follows:

<?xml version="1.0" encoding="utf-8" ?>
- <CassiningMetabase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <Application FrameworkVersion="1.1" KeepRunning="true">
<PhysicalPath>C:\Program Files\UltiDev\Cassini Web Server Explorer</PhysicalPath>
<Port>7756</Port>
<Name>UltiDev Cassini Web Server Explorer</Name>
<Description>Cassini Web Server configuration utility</Description>
<DefaultDocument />
<ApplicationID>4fd8b3f7-bc73-4583-95fe-e7b69b10a3ae</ApplicationID>
</Application>
</CassiningMetabase>

I then uninstall my application and the XML file is as follows:

<?xml version="1.0" encoding="utf-8" ?>
- <CassiningMetabase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <Application FrameworkVersion="1.1" KeepRunning="true">
<PhysicalPath>C:\Program Files\UltiDev\Cassini Web Server Explorer</PhysicalPath>
<Port>7756</Port>
<Name>UltiDev Cassini Web Server Explorer</Name>
<Description>Cassini Web Server configuration utility</Description>
<DefaultDocument />
<ApplicationID>4fd8b3f7-bc73-4583-95fe-e7b69b10a3ae</ApplicationID>
</Application>
</CassiningMetabase>

I then re-install my application and the XML file is as follows:

<?xml version="1.0" encoding="utf-8" ?>
- <CassiningMetabase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <Application FrameworkVersion="2.0" KeepRunning="true">
<PhysicalPath>C:\Program Files\Software Productivity Research LLC\KnowledgePLAN\</PhysicalPath>
<Port>1612</Port>
<Name>KnowledgePLAN</Name>
<Description>KnowledgePLAN Setup</Description>
<DefaultDocument>Default.aspx</DefaultDocument>
<ApplicationID>62eafccb-81c0-41dd-bb67-11cf0f1e400c</ApplicationID>
</Application>
- <Application FrameworkVersion="1.1" KeepRunning="true">
<PhysicalPath>C:\Program Files\UltiDev\Cassini Web Server Explorer</PhysicalPath>
<Port>7756</Port>
<Name>UltiDev Cassini Web Server Explorer</Name>
<Description>Cassini Web Server configuration utility</Description>
<DefaultDocument />
<ApplicationID>4fd8b3f7-bc73-4583-95fe-e7b69b10a3ae</ApplicationID>
</Application>
</CassiningMetabase>

Note that even though my application is unregistered, the entry is back in the XML file. Also note that the DefaultDocument is Default.aspx which was what I used when I first started playing with Cassini. If I change it to src\default.aspx all is well as indicated below:

<?xml version="1.0" encoding="utf-8" ?>
- <CassiningMetabase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <Application FrameworkVersion="2.0" KeepRunning="true">
<PhysicalPath>C:\Program Files\Software Productivity Research LLC\KnowledgePLAN\</PhysicalPath>
<Port>1612</Port>
<Name>KnowledgePLAN</Name>
<Description>KnowledgePLAN Setup</Description>
<DefaultDocument>src\Default.aspx</DefaultDocument>
<ApplicationID>62eafccb-81c0-41dd-bb67-11cf0f1e400c</ApplicationID>
</Application>
- <Application FrameworkVersion="1.1" KeepRunning="true">
<PhysicalPath>C:\Program Files\UltiDev\Cassini Web Server Explorer</PhysicalPath>
<Port>7756</Port>
<Name>UltiDev Cassini Web Server Explorer</Name>
<Description>Cassini Web Server configuration utility</Description>
<DefaultDocument />
<ApplicationID>4fd8b3f7-bc73-4583-95fe-e7b69b10a3ae</ApplicationID>
</Application>
</CassiningMetabase>

This is not causing me a problem but it would be nice to know what causes this.
Ultidev Team
#10 Posted : Wednesday, September 2, 2009 4:58:19 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Peter,

First three snippets are exactly the way it is designed to be:
- You unregister your app, then only one (Cassini Explorer) remains registered.
- You uninstall the app - nothing changes, only Cassini Explorer remains, because the installer of your app probably attempts to unregister, but it's not there already.
- You re-install the app, and it re-registers itself during the installation process, right?

Please let us know what you expect to see vs. what you are seeing at every of these steps.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Peter Katsoulas
#11 Posted : Friday, September 4, 2009 7:29:22 AM(UTC)
Groups: Member
Joined: 8/20/2009(UTC)
Posts: 9

I did not know that when I re-installed my application, it would re-register itself. The fact that the DefaultDocument gets set to Default.aspx instead of src\Default.aspx makes sense. All that I need to do is to edit the registration entry to correct this. Thanks for your help.
Ultidev Team
#12 Posted : Friday, September 4, 2009 5:39:12 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Peter,

Your application's installer logic is what is probably registering your app with Cassini. Cassini itself has no ability to register your application. But if your installer does it, you should be able to modify its logic to put correct default document in.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.