I tried using the example wsAnyService and got the following error. Any ideas?

K

Katie

The browser returned this after i tried browsing to the asmx file.
Anyone know what the problem is?
Thanks ;)
Server Error in '/AnyService' Application.
----------------------------------------------------------------------------
----

Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not load type 'wsAnyTest.Global'.

Source Error:


Line 1: <%@ Application Codebehind="Global.asax.cs"
Inherits="wsAnyTest.Global" %>



Source File: C:\Inetpub\wwwroot\AnyService\global.asax Line: 1
 
K

Katie

This is related to the project mentioned at devbuzz.com for using a WSE for
Compact Framework. The link is below.

http://www.devbuzz.com/content/zinc_smartphone_wse_pg1.asp


I'm trying to get this solution (project files from the article) up and
running but have run into a problem.

I have the web service "AnyService" running.

However, when i try to open the VS solution file (spWse.sln) i get an error
"Unable to read the project file 'spWse.csdproj'".

VS did find the web service it just can't open the solution file.

The solution is for a smartphone but i dont know why its not openning.

Any ideas?
 
A

Alex Feinman [MVP]

Do you have SmartPhone 2003 SDK installed?

Katie said:
This is related to the project mentioned at devbuzz.com for using a WSE for
Compact Framework. The link is below.

http://www.devbuzz.com/content/zinc_smartphone_wse_pg1.asp


I'm trying to get this solution (project files from the article) up and
running but have run into a problem.

I have the web service "AnyService" running.

However, when i try to open the VS solution file (spWse.sln) i get an error
"Unable to read the project file 'spWse.csdproj'".

VS did find the web service it just can't open the solution file.

The solution is for a smartphone but i dont know why its not openning.

Any ideas?
 
C

casey chesnut

also, the /spWse directory should have a ppcWse.csdproj file, that is for
pocket pc.
Thanks,
casey

Alex Feinman said:
Do you have SmartPhone 2003 SDK installed?
 
K

Katie

To send a binary file as an attachment using DIME i think i need to open the
binary file and save it to a byte array encode as utf 8. Is there a simple
way to open a binary file and encode it utf 8 while dumping it in a byte
array?

something like a MIX of the next 2 lines

FileStream fs = File.Open("\\test.mp3", FileMode.Open, FileAccess.Read);

byte[] bytes = System.Text.Encoding.UTF8.GetBytes("client string");

thanx
 
A

Alex Feinman [MVP]

Why would you try to encode a binary file as UTF8?
Binary files are normally encoded as BASE64

Katie said:
To send a binary file as an attachment using DIME i think i need to open the
binary file and save it to a byte array encode as utf 8. Is there a simple
way to open a binary file and encode it utf 8 while dumping it in a byte
array?

something like a MIX of the next 2 lines

FileStream fs = File.Open("\\test.mp3", FileMode.Open, FileAccess.Read);

byte[] bytes = System.Text.Encoding.UTF8.GetBytes("client string");

thanx

also, the /spWse directory should have a ppcWse.csdproj file, that is for
pocket pc.
Thanks,
casey



--------------------------------------------------------------------------
Line:
 
C

casey chesnut

you want the raw bytes for DIME.
so you would do something like this:

string myFile = @"C:\blah.jpg";
FileInfo fi = new FileInfo(myFile);
FileStream fs = fi.OpenRead();
byte [] bytes = new byte[fs.Length];
int numRead = fs.Read(bytes, 0, (int)fs.Length);
fs.Close();
MemoryStream buffer = new MemoryStream(bytes);
DimeAttachment attachment = new DimeAttachment("image/jpeg",
TypeFormatEnum.MediaType, buffer);

Thanks,
casey

Alex Feinman said:
Why would you try to encode a binary file as UTF8?
Binary files are normally encoded as BASE64

Katie said:
To send a binary file as an attachment using DIME i think i need to open the
binary file and save it to a byte array encode as utf 8. Is there a simple
way to open a binary file and encode it utf 8 while dumping it in a byte
array?

something like a MIX of the next 2 lines

FileStream fs = File.Open("\\test.mp3", FileMode.Open, FileAccess.Read);

byte[] bytes = System.Text.Encoding.UTF8.GetBytes("client string");

thanx

also, the /spWse directory should have a ppcWse.csdproj file, that is for
pocket pc.
Thanks,
casey

Do you have SmartPhone 2003 SDK installed?

This is related to the project mentioned at devbuzz.com for using
a
WSE
for
Compact Framework. The link is below.

http://www.devbuzz.com/content/zinc_smartphone_wse_pg1.asp


I'm trying to get this solution (project files from the article)
up
and
running but have run into a problem.

I have the web service "AnyService" running.

However, when i try to open the VS solution file (spWse.sln) i get an
error
"Unable to read the project file 'spWse.csdproj'".

VS did find the web service it just can't open the solution file.

The solution is for a smartphone but i dont know why its not openning.

Any ideas?

Dahhhh! that got it :)

Thanks Alex

Have you compiled the web service project?

The browser returned this after i tried browsing to the asmx file.
Anyone know what the problem is?
Thanks ;)
Server Error in '/AnyService' Application.

--------------------------------------------------------------------------
--
----

Parser Error
Description: An error occurred during the parsing of a resource
required
to
service this request. Please review the following specific parse
error
details and modify your source file appropriately.

Parser Error Message: Could not load type 'wsAnyTest.Global'.

Source Error:


Line 1: <%@ Application Codebehind="Global.asax.cs"
Inherits="wsAnyTest.Global" %>



Source File: C:\Inetpub\wwwroot\AnyService\global.asax
Line:

--------------------------------------------------------------------------
--
----

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top