|
I have developed an ASP.NET Mobile Web project using Visual Studio .NET
2003.
When I connect to the page using Internet Explorer, it receives the correct
HTML page, also i test it with openwave simulator and its ok.
but we when put it on the web server and test it online with a cell phone emulator I get this error:
"Wrong mime-type, I got text/html; charset=utf-8, but I want
text/vnd.wap.wml.
This error occurs when you request a page that is not a WAP page, or when
the webserver isn't set up correctly for hosting WAP sites "
so whats wrong ??
thank you all
Tamimi - Code
|
|
|
|
|
TypeLoadException
Could not load type OpenNETCF.Web.Services2.Dime.DimeAttachmentCollection from assembly OpenNETCF.Web.Services2, Version=1.4.50804.0, Culture=neutral, PublicKeyToken=30C767B29D52D6E6.
This the error i get when i try running my application on the HP Ipaq out of three Pocket PC just one of them is facing this problem
After installing the application Cab file i am getting a msgbox
"Requires the installation of OpenNETCF.SDF.ppc3.ARM.CAB for it to run properly. Install the Cab file before running this application"
Can some one help?
-- modified at 9:11 Tuesday 4th July, 2006
|
|
|
|
|
Hi, I created a couple of dialogs for my application with group boxes, radio buttons & check boxes. When I run it the group boxes are there but the radio buttons & check boxes are missing!
I'm using Visual Studio 2005. I created the diaplogs using the wizard just like I would for a non mobile app, and when I run test dialog they are visible. Any ideas what I may be doing wrong?
Many Thanks,
Ali
|
|
|
|
|
Update: - I have found that my group boxes were covering the radio buttons & check boxes, which is why I couldn't see them. I guess I need to make the group boxes transaparent or put them 'behind the buttons' - any one know how I do that?
I don't understand because group boxes are normally transparent anyway! What use are they if they obliterate the controls inside them?
Thanks for any ideas,
Ali
|
|
|
|
|
You need to set the tab order so that the check boxes appear earlier in the tab order than the group box. The tab order determines the order that the controls are created in and therefore their Z-order.
Group boxes aren't generally used very often in Pocket PC applications - the .NET Compact Framework doesn't even have a group box control.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Thanks Mike,
I didn't realise that. I even went and changed the tab order to put the group box first
It seemed like a good idea to my foggy Monday morning brain!!!
Thanks Again,
Ali
|
|
|
|
|
I have to have form2 inheriting all the methods and variable in form1. but I don't want to have the graphical stuff from form1. how to by pass that? because when i specify form2 inherit from form1 and run the program, it shows on the graphical components of form1 on form2.
Im using C# with VS2005
Donkaiser
|
|
|
|
|
All controls are created in code in C#. The forms designer places the control declarations in the FormName.Designer.cs file, which you can see when you click the [+] next to your class in the Solution Explorer. This file contains the InitializeComponent method, which is called by the class constructor. Form2 's constructor calls Form1 's constructor, which calls Form1.InitializeComponent ; then Form2 's constructor calls Form2.InitializeComponent . You'll have to come up with a way of stopping Form1 's InitializeComponent being called.
I would recommend moving the data manipulation methods and variables out of the Form1 class into a different class, making Form1 and Form2 use that new class, and removing the inheritence link between Form1 and Form2.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
can some one help me out for writting a c++ program in BREW application in
helloworld applet.i got the string "HelloWorld" in helloworld applet but i want to write a C++ program to expand the helloworld applet.under that string i want to pass another string with text box so how can i go for it.
if you me the idea how to write the C++ program.please help me out for that.
Thanks.........
Nitin Dalal.
nitin
|
|
|
|
|
Hi there. Is there any chance of making a CListCtrl or CListBox with a transparent background?
Regards,
FG.
A polar bear is a bear whose coordinates has been changed in terms of sine and cosine.
|
|
|
|
|
You can handle the WM_CTLCOLORLISTBOX message for the CListBox. Use GetStockObject to get a NULL_BRUSH and return that. Note that MFC, for legacy reasons, uses OnCtlColor instead - Windows 3.x used WM_CTLCOLOR but this was replaced by the new messages in 32-bit Windows because there was no longer room for all the parameters. Call your base class's implementation to get it to set up the other colours appropriately.
For a CListCtrl, you should be able to use SetBkColor(CLR_NONE). If that doesn't work you should handle the NM_CUSTOMDRAW notification.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I want to start a connection to the Internet from within my application. How do I do this?
|
|
|
|
|
Well, you can do one of the following:
a) Just make a HTTP-Webrequest, the default internet connection will be made when starting the request.
b) Use the connectionmanager: get OpenNETCF[^]. Add a Reference to the OpenNETCF.Net library.
the code for the connectionmanager is something like this:
<br />
cmManager = new ConnectionManager();<br />
cmManager.Timeout = 120000;<br />
<br />
try<br />
{<br />
<br />
cmManager.Connect(<br />
new System.Guid("436ef144-b4fb-4863-a041-8f905a62c572")
, false, ConnectionMode.Synchronous);<br />
log.Info("CONNECTION MADE IN " + i + " ATTEMPTS");<br />
break;<br />
}<br />
catch (InvalidOperationException e)<br />
{<br />
log.Debug("oeps, unable to make connection");<br />
log.Error(e.Message);<br />
log.Error(cmManager.Status.ToString());<br />
}<br />
}<br />
As you see, the connectionmanager is called with a 'guid'. This points to a certain connection in the system. The one I use above is for 'The Internet' connection, found on every ppc/wm5-device. For a list of possible guid's use the following code:
<br />
string dests = "";<br />
DestinationInfoCollection dInfoCol = cmManager.EnumDestinations();<br />
foreach (DestinationInfo dInfo in dInfoCol)<br />
{<br />
dests += " \n" + dInfo.guid + " :: " + dInfo.description; ;<br />
}<br />
MessageBox.show(dests);<br />
|
|
|
|
|
Hi,
Can any one explain me the difference between the ASP.NET Web Mobile Application and the Smart Device Application, and it's purpose with an basic example or tutorial, plz
Thank You
-- modified at 5:57 Wednesday 28th June, 2006
|
|
|
|
|
I was working on an app with couple thread running. After deploying my app to the pocket pc and I run the app. but somehow after this action i was not able to delete or over the app. Every times the pocket pc say that my .exe is being used by another program. but i close all the running program in memory. take off the battery, turn off the device. you name it. It should shut down all the resource even some hidden threads. but apparently not.
Anybody have an idea about this?
Donkaiser
|
|
|
|
|
Might be deadlock.
or Your program doesn't exit.
If show the snap of your code for the abouve cases.
I might can help u
Urs,
-Pons
-----------------------
The greatest of faults, I should say, is to be conscious of none.
|
|
|
|
|
Hi all,
I have a general question:
I would like to use the multipart/mixed MIME type in my xhtml web application for xhtml mobile browsers (as a substitution for WML cards) and I was wondering if anybody could tell me what kind of browser support is there for multipart messages in mobile browsers?
I have been searching the web for a while already and I have had a look in the WURFL xml file but I couldnt get a representative result, so I was wondering if anybody here could help me and answer my question?
Thanks a lot!
-Sommarafton-
|
|
|
|
|
how do i can read user data files(for example and etc.) in a mobile with j2me programming platform(.jar executable files) pleas send me the code.thank you.
|
|
|
|
|
You open a file as you'd normally do in j2me...
Plus, I guess you're a little bit on the wrong forum.
http://www.code.ae - where technology meets insanity
|
|
|
|
|
Hi,
I am new to mobile tech. I am trying to install MMIT for VS2005 in XP platform, while installing i am getting an error "Setup cannot be run because of incompatable Framework version.........". I am in an confusion ,how to overcome this problem.?
Plz guide me how to install the MMIT and overcome this problem
Regards
Sarathy
|
|
|
|
|
Microsoft Mobile Internet Toolkit was renamed to ASP.NET Mobile Controls in later versions. It's compatible with .NET 1.x only.
ASP.NET 2.0, part of .NET 2.0 which accompanies VS2005, includes changes to the base controls to control rendering on downlevel and mobile browsers.
See Microsoft's mobile roadmap[^].
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Thkz very much Mr.Mike Dimmick, now i can able to open the windows smart device application in VS2003, but still i am having an problem. While running the system i am getting an error that:
"One or More files from the Emulator for Windows CE installtion is missing. Please reinstall Emulator for windows CE and try again."
Where shall i found an the exe to download, and how to install it? Is there an procedure to install it???
Plz give me an idea to overcome this problem
Regards.
Parthasarathy.S
|
|
|
|
|
www.packetforum.org is a place for eternal "networkers".
It also contains many categories dedicated to network and security programming.
Have fun
-- modified at 5:52 Sunday 25th June, 2006
|
|
|
|
|
hi!!
I am trying to build an application using .net and C# which will allow me to push objects from my desktop to all nearby devices. Its like a program to alert all nearby devices.
I have been trying to find ways to access the bluetooth stack on my desktop using .net but havent been able to do so.
Can any one tell me how can i achieve this?
thanks
p.s :I am eagerly waiting a reply ..its kinda urgent!!
|
|
|
|
|
if your still looking for a solution, you can use Peter Foot's library.
www.32feet.net
Although you are limited to using only he Microsoft Bluetooth stack.
|
|
|
|