| When you are trying to publish InfoPath form to SharePoint’s site and the above error is driving you nuts because you have confirmed that that the site is being opening from browser and the URL you are providing is valid then what the is happening, the site is up as well then where you made mistake, where things went wrong. |
| These are the same questions; this is the same feeling I had when I was facing this issue. After searching over internet I figured out that this is happening because I dint created site at the root level. |
| Which would be at this http://servrname:port#/ location. |
| The resolution of this issue is to create root site means creating site at this http://servrname:port#/ level. |
| Try it and get your InfoPath published. Have a nice day J. |
Thursday, November 4, 2010
InfoPath: ‘The following URL is not valid: http://servername:portnumber/sites/sitename’ error
ASP.NET: VIEWSTATE ERROR
This error comes when you are trying to save some object in ViewState. The solution is fairly easy and straight forward. |
| Solution: Mark the class Serializable, the object of which you want to store in ViewState, for instance you want to save the object of the class TestClass in ViewState. So inorder to get this done you need to marked it as Serializable. Following is the code snippet. |
| [Serializable] public class TestClass { .... } |
| But why do you need to mark the class/ type as Serializable, did you ever thought about it. In order to understand this we need to know what Serialization is. |
| Serialization is the process of changing data (object) representation to binary or XLM. |
| But still the questions are there, why I need to serialize data in order to save it in ViewState. For this we need to understand when we do serialization. |
| Whenever we need to send data (object) on wire (means to some other client) we does serialization, because data can only be sent in binary or xml (using soap protocol). |
| OK! I understand that serialization is used when we need to send data (object) over the wire. But still picture is not clear, what does saving data in ViewState have to do with sending data over the wire. |
| Actually when we need to store data in ViewState we write following code: |
| ViewState["Key"] = MyObject; |
| Right! This is server side code written C#, it runs on server not on the client and ViewState is maintained at client side in a hidden field __VIEWSTATE. |
| Now we server tries to save data in ViewState (means it will send that data to the client) what happens at backend is server need to send that data back to the client and because of the fact that ViewState is maintained at client side class need to be Serializeable. |
| Hope this post will help you. Have a nice day :). |
Tuesday, October 5, 2010
HOW TO DISABLE SYSTEM RESTORE IN WINDOWS XP
WHAT IS SYSTEM RESTORE ?
System Restore helps you restore your computer's system files to an earlier point in time. It's a way to undo system changes to your computer without affecting your personal files, such as e‑mail, documents, or photos.
System Restore helps you restore your computer's system files to an earlier point in time. It's a way to undo system changes to your computer without affecting your personal files, such as e‑mail, documents, or photos.
WARNING :
- When you turn off System Restore, Windows will removes all the restore points saved in your Hard Disk. After that, you will no longer be able to restore Windows to an earlier time.
1. Click on start, right click on "My Computer" and than click on properties.
2. Now goto "System Restore" tab.
3. Now put check mark on "Turn off System Restore on all drives", and click on Apply
4.Windows will ask for confirmation for deletion of restore points, click on Yes
YOU HAVE NOW SUCCESSFULLY TURNED OFF SYSTEM RESTORE POINTS
Sunday, October 3, 2010
HOW TO LOAD WINDOWS FASTER
If you think that your windows is taking a long time to load at start-up, than there is a trick to reduce that time.
MSCONFIG
basically Msconfig allows us to modify our start-up items, it has other options too, but here we are focusing on start-up
1. Click on "START" and "RUN"
2. Type msconfig and press OK button
3. A window will open like this
4. Click on the last tab "Startup"
5.Now here we will disable all those programs which be don't want windows to load automatically. To disable any program un-check it.
For instance, In my case.... I will disable
1. GoogleUpdate (Because I can update manually, so no need for me to set it to Auto)
2. Jusched ( Related to Java, Because I can manually start it so no need to set it Auto)
3.GrooveMonitor (It is a tool that can be used to work collaboratively with your colleagues)
But I will not disable programs like
1. Shstat (Required for my Antivirus,so it is important to keep it on Auto)
2. Zlclient (Required for my firewall, Important to keep it Auto as well)
3. UpdateUI (It Automatically update my Antivirus, Important)
4. SuperAntispyware (Spware detector, I also keep it on Auto)
If you get confused about any program, than you should do a google about it, you will get plenty of ideas about it.
So all those programs which were not essential, I disable them so that they wont auto start at startup. We can still use these programs, but for this we have to start them manually.
6. After you have made changes, Click on "Apply" and than "OK"
7. You will be required to restart you windows, for the changes to apply. Click on Restart
Next time when your windows start you will observed a difference in startup time.
MSCONFIG
basically Msconfig allows us to modify our start-up items, it has other options too, but here we are focusing on start-up
1. Click on "START" and "RUN"
2. Type msconfig and press OK button
3. A window will open like this
4. Click on the last tab "Startup"
5.Now here we will disable all those programs which be don't want windows to load automatically. To disable any program un-check it.
CAUTION: BEFORE DISABLING ANY PROGRAM, MAKE SURE YOU KNOW ABOUT THAT PROGRAM.
For instance, In my case.... I will disable
1. GoogleUpdate (Because I can update manually, so no need for me to set it to Auto)
2. Jusched ( Related to Java, Because I can manually start it so no need to set it Auto)
3.GrooveMonitor (It is a tool that can be used to work collaboratively with your colleagues)
But I will not disable programs like
1. Shstat (Required for my Antivirus,so it is important to keep it on Auto)
2. Zlclient (Required for my firewall, Important to keep it Auto as well)
3. UpdateUI (It Automatically update my Antivirus, Important)
4. SuperAntispyware (Spware detector, I also keep it on Auto)
If you get confused about any program, than you should do a google about it, you will get plenty of ideas about it.
So all those programs which were not essential, I disable them so that they wont auto start at startup. We can still use these programs, but for this we have to start them manually.
6. After you have made changes, Click on "Apply" and than "OK"
7. You will be required to restart you windows, for the changes to apply. Click on Restart
Next time when your windows start you will observed a difference in startup time.
Saturday, October 2, 2010
HOW TO USE WIRELESS IN WINDOWS SERVER 2008 R2
Did you notice that in windows server 2008 R2 wireless is not available, even after installing its driver.
This is because in windows server 2008 R2 wireless is disabled by default.
So, in order to use it, we have to enable it first
To enable wireless in Windows server 2008 R2, follow these simple steps.
1. Type "Server Manager" in search area and press enter
2. A window will open like this, Click on "Add features"
4. A wizard will open :
5. Now Scroll down and check mark "Wireless LAN service", than click on Next
6. Now it will confirm the changes that you have made. Click on Next
7. After you click on Next your installing will start.
8. After your Wireless is successfully installed, you will see a window like this :
9. Click on Close, you will be require to restart your windows, for the changes to apply. After restarting you should be able to use your wireless.
If you have any problem, than please ask here.
This is because in windows server 2008 R2 wireless is disabled by default.
So, in order to use it, we have to enable it first
To enable wireless in Windows server 2008 R2, follow these simple steps.
1. Type "Server Manager" in search area and press enter
2. A window will open like this, Click on "Add features"
4. A wizard will open :
5. Now Scroll down and check mark "Wireless LAN service", than click on Next
6. Now it will confirm the changes that you have made. Click on Next
7. After you click on Next your installing will start.
8. After your Wireless is successfully installed, you will see a window like this :
9. Click on Close, you will be require to restart your windows, for the changes to apply. After restarting you should be able to use your wireless.
If you have any problem, than please ask here.
Subscribe to:
Posts (Atom)





