Hi,
This is not a mojoPortal bug, this is an issue happening in your own custom code. In the future please post such issues in the developer forum not the bug forum.
You did not mention your server or operating system or whether this is happening in the Visual Studio web server?
Best,
Joe