HighTechTalks DotNet Forums  

Application execution problem

ASP.net Mobile microsoft.public.dotnet.framework.aspnet.mobile


Discuss Application execution problem in the ASP.net Mobile forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Rich
 
Posts: n/a

Default Application execution problem - 03-23-2007 , 03:08 PM






I am attempting to just demonstrate some basic mobile ASP.NET app
capabilities. I have created a new web application and inserted the
following demo code in the default.aspx page, which clearly does
nothing extraordinary:

<%@ Page language="c#"
Inherits="System.Web.UI.MobileControls.MobilePage" %>
<%@ Register TagPrefix="Mobile"
Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile"
%>
<mobile:Form id=Form1 runat="server">
<mobile:Label id=Test Runat="Server">Hello, Mobile World</
mobile:Label>
</mobile:Form>

I can build this site without problem but when I attempt to browse it
I get the following error:

Parser Error Message: The type
'System.Web.UI.MobileControls.MobilePage' is ambiguous: it could come
from assembly 'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile
\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll' or from assembly 'C:
\Documents and Settings\[username]\My Documents\Visual Studio
2005\Projects\mobile_demo\mobile_demo\bin\mobile_d emo.DLL'. Please
specify the assembly explicitly in the type name.

Any ideas? I'm sure I'm doing something stupid but I can't figure it
out and 30 minutes of poking around the boards has yet to yield any
resolutions.

Thanks,
Rich


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.