473,698 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webservice ASMX

72 New Member
hey peaple i whas looking on the internet for a solution but i cudent find any so i try it here

its about my ASMX file wich contains this rule

Expand|Select|Wrap|Line Numbers
  1. <%@ WebService Language="c#" Codebehind="DataConnection.asmx.cs" Class="DotNet.dbConnection" %> 
the error is : Could not create type 'DataConnection

the file dataconnection. asmx.cs is located at the root in the folder wsdataconnectio n. I tryd a lot my self and i know that my asp is configurated at 2.0, and also i tryd to do it like this but no results

Expand|Select|Wrap|Line Numbers
  1. <%@ WebService Language="c#" Codebehind="wsdataconnection\DataConnection.asmx.cs" Class="DotNet.dbConnection" %> 
hope somone can help me and tanks for the reaction

Tanx Guys
Sep 30 '08 #1
13 3752
DrBunchman
979 Recognized Expert Contributor
Hi asmx126453,

I moved your question to the .NET Forum where it belongs - one of our many experts in here should be able to help you :-)

Dr B
Sep 30 '08 #2
asmx126453
72 New Member
Oke Tanx for that i am srry i posted it at the wrong place
Sep 30 '08 #3
Curtis Rutland
3,256 Recognized Expert Specialist
What is the namespace you use in your .cs file?
Sep 30 '08 #4
asmx126453
72 New Member
the namespace from my DataConnection. asmx.cs file is DotNet
Sep 30 '08 #5
Curtis Rutland
3,256 Recognized Expert Specialist
OK, please post the code from the .cs file.
Sep 30 '08 #6
asmx126453
72 New Member
No Problem here is the beginning of the code i am not gonne put all in it its 2 mutch

( DataConnection. asmx.cs )
Expand|Select|Wrap|Line Numbers
  1. using System;
  2. using System.Collections;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Diagnostics;
  6. using System.Web;
  7. using System.Web.Services;
  8. using System.Data.SqlClient;
  9. using System.Windows.Forms;
  10. using Microsoft.Data.Odbc;
  11. using System.IO;
  12.  
  13. namespace DotNet
  14. {
  15.     /// <summary>
  16.     /// Web services voor gebruik in het klantinformatiesysteem.
  17.     /// </summary>
  18.     public class dbConnection : System.Web.Services.WebService
  19.     {
  20.         public dbConnection()
  21.         {
  22.             InitializeComponent();
  23.         }
  24.         private System.Data.SqlClient.SqlConnection dbConn;
  25.         private Microsoft.Data.Odbc.OdbcConnection OdbcConn;
  26. .
  27. .
  28. .
  29.  
the rest of the code are all methods to get information out a database

( DataConnection. asmx )

Expand|Select|Wrap|Line Numbers
  1. <%@ WebService Language="c#" Codebehind="DataConnection.asmx.cs" Class="DotNet.dbConnection" %>
And this is the other file i hope you can see the solution
Sep 30 '08 #7
Curtis Rutland
3,256 Recognized Expert Specialist
Try this link.

Hopefully this will help.
Sep 30 '08 #8
asmx126453
72 New Member
Nop still cant get it 2 run

the weird thing is that i can look at the properties of the page but i have Web File Properties there and i cant choose my build action lookt at it in VS 2005 and Visual Web Developer 2008 both nothing

and than the last thing is that i dont have a folder Web Service Extensions at IIS but i do have IIS installed ???

cud it be that it is not running becase the aplication whas build in Visual Studio 7 and i converted it to 2005 or in VWD 2008

Tanx for all the help hope somone else may has an idee
Sep 30 '08 #9
Curtis Rutland
3,256 Recognized Expert Specialist
cud it be that it is not running becase the aplication whas build in Visual Studio 7 and i converted it to 2005 or in VWD 2008
That could be it. Try to build a new service in 2005 or 2008 and copy the methods and see if that works.

Edit for clarification:
I've had nothing but problems upconverting projects. Every time I've tried, I've had to fix something or other.

One thing you might want to check:
Make sure that the service is being compiled as a Framework 2.0 app. I don't have VS in front of me, so I can't be sure, but there should be some setting in the Project properties from the Project menu that will let you set the target framework.
Sep 30 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1506
by: author | last post by:
Newbie Q... When I hit the "ws.asmx" in a browser, I get "Parser Error Message: Could not create type 'Service1'" ?? If I use the file "ws_ok.asmx" (without codebehind, but same code), I get no errors. Any 1 ??
4
3317
by: Tim Gallivan | last post by:
Hello group, I'm trying to develop a proof of concept webservice which asynchronously calls a function in a DLL. The function raises an event when it is finished, and works when used as part of a windows form. When I try to hook up the webservice to the event and call the WS, the CPU goes to 100% and I have to restart the WWW service. Does anyone have an idea as to how this can be done ... and if not, directions to a tall bridge would...
8
4188
by: Topper | last post by:
Hello. I have simple web folders structure: -ROOT - BIN WebService.dll WebService.asmx I need to use my WebService.dll not in bin folder - for example, in ROOT. How do i this? How can i do this without .config file only with some configuration
3
1971
by: ad | last post by:
I add a WebService (*.asmx) in a WebApplication. My web application use Form authentication. But when I open the .asmx in IE, it result in an error: No htmlform ! can't set MaintainScrollPositionOnPostback How can I do?
2
2571
by: rn5a | last post by:
I have created the following WebService named NConnect.asmx using which I want an ASPX page to first authenticate a user & after successful user validation, the ASPX page should display a few TextBoxes for users to enter some data in those TextBoxes which will finally be inserted in a SQL Server 2005 DB table: <%@ WebService Language="VB" Class="NConnect" %> Imports System Imports System.Data
2
6510
by: Big George | last post by:
Hello Experts ! I'm using: VS.NET 2003 I have a webservice1.Service1. I have installed it on IIS. No problem. I can access it through: http://localhost/WebService1/Service1.asmx or http://192.168.1.109/WebService1/Service1.asmx
0
2677
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi All, Problem in deploying my WebService developed using Asp.net WebServices 2005. I have designed simple WebService using Asp.net Webservices 2.0 , The webservice look this , using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols;
5
70498
by: =?Utf-8?B?a3Jpcw==?= | last post by:
I created a simple webservice .asmx on Visual Studio 2005. As I plan to deploy it to Sharepoint Portal 2003, I copied asmx to \web server extensions\60\ISAPI directory of the server, where all other general webservices reside. Everything is just fine - i can access the service with the browser, method list is displayed as well as help texts for them. my question is - how do I generate .wsdl and .disco files for the service? I read...
4
8048
by: =?Utf-8?B?QmlsbEF0V29yaw==?= | last post by:
Hi, We recently converted a 1.1 project to 2.0 and this included a webservice which accepted XML for one of the parameters. Since converting to 2.0 I am getting the following message: --- A potentially dangerous Request.Form value was detected from the client (myparam="<root><blah...."). --- The fix used for ASPX pages is to include the @Page directive with
8
3675
by: cj | last post by:
I've seen examples of web services written with <%@ WebService Language ="Vb" Class=".... at the top. Is it not used in VB 2008?
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8610
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8873
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7740
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.